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.:α = \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 "$" "$" "$" "$")))
Now "* \dollar\dollar" should work.
Yours,
Christian