Re: [O] Exponential numbers in latex table export

2018-03-30 Thread Nicolas Goaziou
Hello,

Carsten Dominik  writes:

> Hi Nicolas,
>
> let's make it nil.

Done.

Regards,
-- 
Nicolas Goaziou0x80A93738



Re: [O] Exponential numbers in latex table export

2018-03-30 Thread Carsten Dominik
Hi Nicolas,

let's make it nil.

- Carsten

On Thu, Mar 29, 2018 at 10:14 PM, Nicolas Goaziou 
wrote:

> Hello,
>
> Carsten Dominik  writes:
>
> > On Thu, Mar 29, 2018 at 5:51 PM, Julius Dittmar 
> > wrote:
> >
> >>
> >> On 29.03.2018 10:37, Carsten Dominik wrote:
> >>
> >>> 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.
> >>>
> >>
> >> How about \ensuremath{%s\times10^{%s}} ?
> >
> >
> > That would do the trick, yes.
>
> So, what should be the default value :
>
>   \ensuremath{%s\times10^{%s}}
>
> or
>
>   nil
>
> I don't mind either way.
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: [O] Exponential numbers in latex table export

2018-03-29 Thread Nicolas Goaziou
Hello,

Carsten Dominik  writes:

> On Thu, Mar 29, 2018 at 5:51 PM, Julius Dittmar 
> wrote:
>
>>
>> On 29.03.2018 10:37, Carsten Dominik wrote:
>>
>>> 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.
>>>
>>
>> How about \ensuremath{%s\times10^{%s}} ?
>
>
> That would do the trick, yes.

So, what should be the default value :

  \ensuremath{%s\times10^{%s}}

or

  nil

I don't mind either way.

Regards,

-- 
Nicolas Goaziou



Re: [O] Exponential numbers in latex table export

2018-03-29 Thread Carsten Dominik
On Thu, Mar 29, 2018 at 5:51 PM, Julius Dittmar 
wrote:

>
> On 29.03.2018 10:37, Carsten Dominik wrote:
>
>> 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.
>>
>
> How about \ensuremath{%s\times10^{%s}} ?


That would do the trick, yes.

Carsten

>
>
> Julius
>
>


Re: [O] Exponential numbers in latex table export

2018-03-29 Thread Julius Dittmar


On 29.03.2018 10:37, Carsten Dominik wrote:
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.


How about \ensuremath{%s\times10^{%s}} ?

Julius



Re: [O] Exponential numbers in latex table export

2018-03-29 Thread Carsten Dominik
On Wed, Mar 28, 2018 at 1:55 PM, Nicolas Goaziou 
wrote:

> Hello,
>
> Günter 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 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
>
>


Re: [O] Exponential numbers in latex table export

2018-03-28 Thread Günter Lichtenberg
On Wednesday, 28 March 2018 13:55:01 CEST Nicolas Goaziou wrote:

 > > 
> > \begin{center}
> > \begin{tabular}{r}
> > \hline
> > 1.2e09 (abs)\\
> > 2.3\,(-09)\\
> > 3.4\,(09)\\
> > \hline
> > \end{tabular}
> > 

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

Hi

thanks, setting that variable to nil solves my problem. 

It was a bit puzzling to me, because of the fact that once a string is 
somewhere in the column the exponential number came out as is (I guess because 
then the table entry is no longer interpreted as a number but as a string).  
It was also confusing because HTML export is different and just puts out what 
is in the orgmode table.

Maybe one should change the default of the variable to nil? 
Just a suggestion, as I said,  my problem is solved.

Thanks again
gl 






Re: [O] Exponential numbers in latex table export

2018-03-28 Thread Nicolas Goaziou
Hello,

Günter 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 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.

Regards,

-- 
Nicolas Goaziou



[O] Exponential numbers in latex table export

2018-03-28 Thread Günter Lichtenberg
Hi 

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.

gl