Re: [O] problems with mathjax CDN and HTML export

2011-11-09 Thread Christian Moe

On 11/8/11 5:09 PM, Giovanni Ridolfi wrote:

Yes, You're right. It is exported correctly and correctly formatted
if you export only *this* subheading. The subheading ** $$.

But, if you export the whole subtree, from the
* mathjax test  heading, the equation is
converted in HTML format e.g.:alpha; = \frac{1}{Lsub0/sub}

Giovanni


Ah, I see.

The problem is that the $$ in the subheading is interpreted as an 
unclosed math snippet. (Interesting that it's still exported as a 
heading.) After that, math closes when it should open.


Try closing the subheading: * $$ $$ and exporting again.

Getting $$ as a subheading is not quite straightforward, but the 
following will work. Create a user-defined dollar-sign entity (org 
doesn't have one by default):


(setq org-entities-user
   '((dollar \\$ nil #36; $ $ $)))

Now * \dollar\dollar should work.

Yours,
Christian






Re: [O] problems with mathjax CDN and HTML export

2011-11-08 Thread Giovanni Ridolfi
Christian Moe m...@christianmoe.com writes:

Hi Christian, thank you for checking,

 On 11/7/11 5:02 PM, Giovanni Ridolfi wrote:
 the math snippets are always converted in HTML format e.g.:alpha; = 
 \frac{1}{Lsub0/sub}

 Do I understand correctly that this is your problem? 
yes.
 (Not very clear
 from your long example, which starts with the CDN service.)
sorry for that


 If so, I can't reproduce it. Your

 $$
 \alpha = \frac{1}{L_{0}} \left( \frac{L_2-L_1}{T_2-T_1} \right)
 = \frac{1}{L_0}\frac{\Delta L}{\Delta T}
 $$

 exports verbatim for me, and is correctly formatted.

I tried. Yes and no.

Yes, You're right. It is exported correctly and correctly formatted
if you export only *this* subheading. The subheading ** $$.

But, if you export the whole subtree, from the 
* mathjax test  heading, the equation is 
converted in HTML format e.g.:alpha; = \frac{1}{Lsub0/sub}

Giovanni



Re: [O] problems with mathjax CDN and HTML export

2011-11-07 Thread Christian Moe

On 11/7/11 5:02 PM, Giovanni Ridolfi wrote:

the math snippets are always converted in HTML format e.g.:alpha; = 
\frac{1}{Lsub0/sub}


Do I understand correctly that this is your problem? (Not very clear 
from your long example, which starts with the CDN service.)


If so, I can't reproduce it. Your

$$
\alpha = \frac{1}{L_{0}} \left( \frac{L_2-L_1}{T_2-T_1} \right)
= \frac{1}{L_0}\frac{\Delta L}{\Delta T}
$$

exports verbatim for me, and is correctly formatted.

Yours,
Christian