emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Moe <mail@christianmoe.com>
To: Giovanni Ridolfi <giovanni.ridolfi@yahoo.it>
Cc: emacs-orgmode@gnu.org, Jambunathan K <kjambunathan@gmail.com>
Subject: Re: problems with mathjax CDN and HTML export
Date: Wed, 09 Nov 2011 10:09:39 +0100	[thread overview]
Message-ID: <4EBA4353.8050106@christianmoe.com> (raw)
In-Reply-To: <83ty6ek34i.fsf@yahoo.it>

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	other threads:[~2011-11-09  9:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-07 16:02 problems with mathjax CDN and HTML export Giovanni Ridolfi
2011-11-07 20:47 ` Christian Moe
2011-11-08 16:09   ` Giovanni Ridolfi
2011-11-09  9:09     ` Christian Moe [this message]
2011-11-09 14:56       ` SOLVED " Giovanni Ridolfi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EBA4353.8050106@christianmoe.com \
    --to=mail@christianmoe.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=giovanni.ridolfi@yahoo.it \
    --cc=kjambunathan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).