emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Exponential numbers in latex table export


From: Carsten Dominik
Subject: Re: [O] Exponential numbers in latex table export
Date: Thu, 29 Mar 2018 10:37:22 +0200



On Wed, Mar 28, 2018 at 1:55 PM, Nicolas Goaziou <address@hidden> wrote:
Hello,

Günter Lichtenberg <address@hidden> 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 character
> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]