1

I'm writing a document that I would like to export to LaTeX and HTML. To write my formulas I mostly use the align environment of TeX.

In the .org file I write the formulas like this:

#+begin_align
   a &= b + x \\
   d &= a - b \\
#+end_align

The export to LaTeX works as expected and I get the correct align environment. But for the HTML export begin_align and end_align are ignored and the ASCII text is displayed instead of a formula rendered with MathJax. The same happens if I use \begin{align} and \end{align} instead.

Standalone formulas work out of box.

How should/can I change the HTML export function to correctly display align environments with MathJax?

  • Does this help? – itsjeyd May 20 '15 at 8:44
  • reading the documentation it doesn't help. the align parameter in org only specifies where the functions should be placed and don't refer to the align environment. – kain88 May 21 '15 at 20:11
1

As the org manual:LaTeX fragments said, LaTeX environment should work out of box. you may mistakenly changed the default export option somewhere.

Following is a minimal example that works with emacs -q where the Org-mode version is 8.2.10 (release_8.2.10 @ /usr/share/emacs/25.0.50/lisp/org/)

#+OPTIONS: tex:t
#+HTML_MATHJAX:  path:"http://cdn.mathjax.org/mathjax/latest/MathJax.js"
\begin{align}
   a &= b + x \\
   d &= a - b
\end{align}

Besides, there should no \\ for the last equation inside LaTeX align environment.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.