diff options
author | Ćukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl> | 2010-12-07 22:42:47 +0000 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2010-12-12 13:13:45 +0100 |
commit | 93135fa8144cc684721bdeadc317e48e919df20a (patch) | |
tree | dc75537527c3ae4ce8e48af294829123e8f6ba7e | |
parent | 1495bc6b080b8188421a68504001b9c4fac9b93f (diff) | |
download | org-mode-93135fa8144cc684721bdeadc317e48e919df20a.tar.gz |
Add displaymath to MathJax setup
* lisp/org-html.el (org-export-html-mathjax-template): displaymath
environment and MathJax
Greetings All.
The following patch makes MathJax consider \begin{displaymath} and
\end{displaymath} as math environmetn boundaries. For someone who, like
me, keeps "The not so short introduction to LaTeX2e" alway around, the
displaymath environment is the default way to introduce a block of math.
In fact '\[' and '\]' are also mentioned there but the environment is
used in every single example so the patch minimizes the surprise.
-rw-r--r-- | lisp/org-html.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-html.el b/lisp/org-html.el index 47e8231..03a5975 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -290,7 +290,7 @@ You can also customize this for each buffer, using something like \"TeX/noUndefined.js\"], tex2jax: { inlineMath: [ [\"\\\\(\",\"\\\\)\"] ], - displayMath: [ ['$$','$$'], [\"\\\\[\",\"\\\\]\"] ], + displayMath: [ ['$$','$$'], [\"\\\\[\",\"\\\\]\"], [\"\\\\begin{displaymath}\",\"\\\\end{displaymath}\"] ], skipTags: [\"script\",\"noscript\",\"style\",\"textarea\",\"pre\",\"code\"], ignoreClass: \"tex2jax_ignore\", processEscapes: false, |