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