emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: emacs-orgmode@gnu.org
Cc: nicholas.dokos@hp.com
Subject: latex fragments, dvipng and mathjax
Date: Tue, 08 Mar 2011 13:59:12 -0500	[thread overview]
Message-ID: <3941.1299610752@alphaville.usa.hp.com> (raw)

I had not played with latex fragments recently (= ever since MathJax
became the default back in August 2010 and probably from some time
before that), so based on my previous dvipng-based knowledge, I made an
ill-informed comment on IRC. Nicolas Goaziou corrected me and pointed
out that the default is now MathJax, so I went off and tried things
out. I tried with MathJax from the orgmode site, but I also downloaded
the stable 1.0.x version (and the new otf fonts) and the beta 1.1
version (which already includes the new otf fonts).

I tried it on the following org file (commenting/uncommenting options
lines for the various runs:

--8<---------------cut here---------------start------------->8---
##+OPTIONS: LaTeX:dvipng
##+MATHJAX: align:"left" mathml:t
##+MATHJAX: align:"left" mathml:t path:"/home/nick/lib/mathjax/MathJax/MathJax.js"
#+MATHJAX: align:"left" mathml:t path:"/home/nick/lib/mathjax/mathjax-MathJax-20e0cf6/MathJax.js"

* Euler

\int_0^\infty e^{-x^2} dx = {{\sqrt{\pi}} \over {2}}

e^{i\pi} = -1
--8<---------------cut here---------------end--------------->8---

I've put the results of two runs, one with MathJax and one with dvipng, up at


The different versions of MathJax all looked the same. The one I put up
is the one that gets MathJax from the publicly available orgmode site,
so if you just want to look at it, you don't have to install anything.

There are two obvious differences: 

o the MathJax version has the equations centered, whereas the dvipng version
has them flush left. I have not investigated why that is.

o the dvipng version looks much better to my eye than the MathJax version.

Of course, MathJax has advantages: it's scalable, so when you go to higher
magnifications, you don't get the jaggies that the png images suffer. But
I was wondering whether there is any way I can get prettier output from


             reply	other threads:[~2011-03-08 18:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-08 18:59 Nick Dokos [this message]
2011-03-08 20:16 ` latex fragments, dvipng and mathjax Nick Dokos
2011-03-08 22:56   ` Jeff Horn
2011-03-08 23:58   ` Erik Iverson
2011-03-09  2:13     ` Nick Dokos
2011-03-09  6:55       ` Aankhen
2011-03-09 15:55         ` 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:

  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=3941.1299610752@alphaville.usa.hp.com \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \


* 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


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).