From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: problems with mathjax CDN and HTML export Date: Wed, 09 Nov 2011 10:09:39 +0100 Message-ID: <4EBA4353.8050106@christianmoe.com> References: <83obwnkjjc.fsf@yahoo.it> <4EB843FE.4050706@christianmoe.com> <83ty6ek34i.fsf@yahoo.it> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO46x-0007Cv-JD for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 04:06:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RO46w-0000pO-Ja for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 04:06:23 -0500 Received: from b1.hitrost.net ([91.185.211.67]:54880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO46w-0000l7-ET for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 04:06:22 -0500 In-Reply-To: <83ty6ek34i.fsf@yahoo.it> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Giovanni Ridolfi Cc: emacs-orgmode@gnu.org, Jambunathan K 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}{L0} > > 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