emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Russell L. Carter" <rcarter@pinyon.org>
To: emacs-orgmode@gnu.org
Subject: working mathjax example
Date: Wed, 27 Nov 2013 16:46:28 -0700	[thread overview]
Message-ID: <52968454.1030809@pinyon.org> (raw)

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 <body> is (stuff before elided):

<body>
<div id="content">
<h1 class="title">json</h1>
\begin{equation}
x=\sqrt{b}
\end{equation}

<p>
If \(a^2=b\) and \( b=2 \), then the solution must be
either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
</p>
</div>
<div id="postamble" class="status">
<p class="author">Author: Russell L. Carter</p>
<p class="date">Created: 2013-11-27 Wed 16:17</p>
<p class="creator"><a href="http://www.gnu.org/software/emacs/">Emacs</a> 24.3.1
(<a href="http://orgmode.org">Org</a> mode 8.2.3c)</p>
<p class="validation"><a
href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
</body>

Thanks!
Russell

             reply	other threads:[~2013-11-27 23:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-27 23:46 Russell L. Carter [this message]
2013-12-03 21:28 ` working mathjax example Russell L. Carter
2014-01-09 16:30 ` Nick Dokos

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=52968454.1030809@pinyon.org \
    --to=rcarter@pinyon.org \
    --cc=emacs-orgmode@gnu.org \
    /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).