From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Russell L. Carter" Subject: Re: working mathjax example Date: Tue, 03 Dec 2013 14:28:12 -0700 Message-ID: <529E4CEC.1010003@pinyon.org> References: <52968454.1030809@pinyon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnxW1-000315-VS for emacs-orgmode@gnu.org; Tue, 03 Dec 2013 16:28:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VnxVx-0008OD-Eq for emacs-orgmode@gnu.org; Tue, 03 Dec 2013 16:28:21 -0500 Received: from quine.pinyon.org ([65.101.5.249]:46722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnxVx-0008KJ-7A for emacs-orgmode@gnu.org; Tue, 03 Dec 2013 16:28:17 -0500 Received: from [10.0.10.6] (feyerabend.n1.pinyon.org [10.0.10.6]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by quine.pinyon.org (Postfix) with ESMTPSA id 46E96160197 for ; Tue, 3 Dec 2013 14:28:12 -0700 (MST) In-Reply-To: <52968454.1030809@pinyon.org> 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: emacs-orgmode@gnu.org On 11/27/2013 04:46 PM, Russell L. Carter wrote: > Hi, > > I'm trying to bring up a simple mathjax example. Org-mode is git > current and otherwise works fine. MathJax is git current and lives in > /opt/mathjax/git/MathJax.js. Both firefox 26 and chromium 31 display > the MathJax tests perfectly from my org->html test directory. > > I've copied the example code from the org manual into a file > containing: > > --cut-here----cut-here----cut-here----cut-here----cut-here-- > > #+HTML_MATHJAX: align:"left" mathml:t path:"/opt/mathjax/git/MathJax.js" > #+options: latex:verbatim I took another look at this, and the fix (for me) was trivial. It turns out that removing the "mathml:t" property from the example HTML_MATHJAX line provided in the org-manual section 12.6.8 solves the problem. Hopefully this can save other MathJax noobs the time it took me to wade through ox-html.el and puzzle over the :MMLYES/:MMLNO lines in there. Anyway, I can now complete my transition from generating PDFs to generating HTML and that makes me very happy. Cheers, Russell > > \begin{equation} > x=\sqrt{b} > \end{equation} > > If $a^2=b$ and \( b=2 \), then the solution must be > either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \]. > > --cut-here----cut-here----cut-here----cut-here----cut-here-- > > I exported per the instructions using org-export-to-html. The > exported html file has lots of good stuff suggesting that the export > seems to be working. But both firefox and chrome display the math > bits replaced by [Math Processing Error]. Does anyone have an idea > what I am doing wrong? > > The actual exported is (stuff before elided): > > >
>

json

> \begin{equation} > x=\sqrt{b} > \end{equation} > >

> If \(a^2=b\) and \( b=2 \), then the solution must be > either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \]. >

>
>
>

Author: Russell L. Carter

>

Created: 2013-11-27 Wed 16:17

>

Emacs 24.3.1 > (Org mode 8.2.3c)

>

href="http://validator.w3.org/check?uri=referer">Validate

>
> > > Thanks! > Russell >