From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Russell L. Carter" Subject: working mathjax example Date: Wed, 27 Nov 2013 16:46:28 -0700 Message-ID: <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]:40194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlooX-0000yX-Ti for emacs-orgmode@gnu.org; Wed, 27 Nov 2013 18:46:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlooT-0000ko-0t for emacs-orgmode@gnu.org; Wed, 27 Nov 2013 18:46:37 -0500 Received: from quine.pinyon.org ([65.101.5.249]:39328) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlooS-0000kF-Ps for emacs-orgmode@gnu.org; Wed, 27 Nov 2013 18:46:32 -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 5D79A16025A for ; Wed, 27 Nov 2013 16:46:28 -0700 (MST) 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 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 \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)

Validate

Thanks! Russell 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 > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: working mathjax example Date: Thu, 09 Jan 2014 11:30:47 -0500 Message-ID: <87k3e9ungo.fsf@alphaville.bos.redhat.com> References: <52968454.1030809@pinyon.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1IVm-0003zj-85 for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 11:31:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1IVh-00042s-Bo for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 11:31:14 -0500 Received: from plane.gmane.org ([80.91.229.3]:48276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1IVh-00042j-50 for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 11:31:09 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W1IVf-0007OI-7K for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 17:31:07 +0100 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Jan 2014 17:31:07 +0100 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Jan 2014 17:31:07 +0100 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 "Russell L. Carter" writes: > 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 > > \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

>
> > [This goes in the Better late than never? drawer...] This works fine for me if I delete the path spec in your HTML_MATHJAX line, so my guess would be that there's some problem with your local mathjax setup. Are you sure that your other tests use your local setup? Maybe they go offsite? BTW, with mathjax providing a proper CDN, is there any point of having a local setup[fn:1] or even the default setup at orgmode.org? Maybe the out-of-the-box default in org should be "let the mathjax CDN handle it." Footnotes: [fn:1] ... assuming that you want to *use* mathjax, not hack it. Nick