emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Christian Moe
Subject: Re: [O] problems with mathjax CDN and HTML export
Date: Wed, 09 Nov 2011 10:09:39 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0

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}{L<sub>0</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






reply via email to

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