From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Exponential numbers in latex table export Date: Thu, 29 Mar 2018 10:37:22 +0200 Message-ID: References: <17107066.dRKVHBuYob@krailli.fritz.box> <87fu4kqusq.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f4030438e29c7d52300568890939" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1T45-0003W5-CJ for emacs-orgmode@gnu.org; Thu, 29 Mar 2018 04:37:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f1T44-0001nZ-8u for emacs-orgmode@gnu.org; Thu, 29 Mar 2018 04:37:45 -0400 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:36805) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f1T43-0001nP-V0 for emacs-orgmode@gnu.org; Thu, 29 Mar 2018 04:37:44 -0400 Received: by mail-wm0-x22c.google.com with SMTP id x82so9992462wmg.1 for ; Thu, 29 Mar 2018 01:37:43 -0700 (PDT) In-Reply-To: <87fu4kqusq.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: org-mode list , =?UTF-8?Q?G=C3=BCnter_Lichtenberg?= --f4030438e29c7d52300568890939 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Mar 28, 2018 at 1:55 PM, Nicolas Goaziou wrote: > Hello, > > G=C3=BCnter Lichtenberg writes: > > > I have a document with many automatically generated tables that contain > > numbers in exponential Format, e.g. 2e09. When I export the tables to > LaTeX > > and pdf I get something like 2 (-09) in the pdf, if there is no charact= er > > after the number in the table > > > > Minimal Example: > > |--------------| > > | 1.2e09 (abs) | > > | 2.3e-09 | > > | 3.4e09 | > > |--------------| > > > > exports to a latex table as > > > > \begin{center} > > \begin{tabular}{r} > > \hline > > 1.2e09 (abs)\\ > > 2.3\,(-09)\\ > > 3.4\,(09)\\ > > \hline > > \end{tabular} > > > > Note that in the first line the number is an exponential, the following > 2 are > > not. I could not find anything in the documentation. What am I missing? > > > > orgmode version is 9.1.4, but the same happens with emacs 25.3 built-in > > version 8.3. > > See `org-latex-table-scientific-notation'. I also find the default value > a bit surprising. I believe it is what Carsten uses. > Hi, I believe I ended up using this because I wanted something that is not dependent on having math-mode in the table column. What I would have really preferred is "%s\times10^{%s}", but that is less stable because you need then to know if the column will have math-mode or not. I agree that it is a bit odd and non-standard - so maybe using nil as default would be fine. Carsten > > Regards, > > -- > Nicolas Goaziou > > --f4030438e29c7d52300568890939 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Wed, Mar 28, 2018 at 1:55 PM, Nicolas Goaziou <= mail@nicolasgoa= ziou.fr> wrote:
Hello,

G=C3=BCnter Lichtenberg <m= ail@guenterlichtenberg.de> writes:

> I have a document with many automatically generated tables that contai= n
> numbers in exponential Format, e.g. 2e09. When I export the tables to = LaTeX
> and pdf I get something like 2 (-09) in the pdf, if there is no charac= ter
> after the number in the table
>
> Minimal Example:
> |--------------|
> | 1.2e09 (abs) |
> |=C2=A0 =C2=A0 =C2=A0 2.3e-09 |
> |=C2=A0 =C2=A0 =C2=A0 =C2=A03.4e09 |
> |--------------|
>
> exports to a latex table as
>
> \begin{center}
> \begin{tabular}{r}
> \hline
> 1.2e09 (abs)\\
> 2.3\,(-09)\\
> 3.4\,(09)\\
> \hline
> \end{tabular}
>
> Note that in the first line the number is an exponential, the followin= g 2 are
> not. I could not find anything in the documentation. What am I missing= ?
>
> orgmode version is 9.1.4, but the same happens with emacs 25.3 built-i= n
> version 8.3.

See `org-latex-table-scientific-notation'. I also find the = default value
a bit surprising. I believe it is what Carsten uses.
<= br>
Hi,

I believe I ended up using this = because I wanted something that is not dependent on having math-mode in the= table column.=C2=A0 What I would have really preferred is "%s\times10= ^{%s}", but that is less stable because you need then to know if the c= olumn will have math-mode or not.

I agree that it = is a bit odd and non-standard - so maybe using nil as default would be fine= .

Carsten
=C2=A0

Regards,

--
Nicolas Goaziou


--f4030438e29c7d52300568890939--