Next: Labels and captions in ODT export, Previous: Images in ODT export, Up: OpenDocument Text Exporter for Emacs’ Org Mode [Contents][Index]
The ODT exporter has special support for handling math.
LaTeX math snippets (See (org)LaTeX fragments) can be embedded in the ODT document in one of the following ways:
This option is activated on a per-file basis with
#+OPTIONS: LaTeX:t
With this option, LaTeX fragments are first converted into MathML fragments using an external LaTeX-to-MathML converter program. The resulting MathML fragments are then embedded as an OpenDocument Formula in the exported document.
You can specify the LaTeX-to-MathML converter by customizing the variables ‘org-latex-to-mathml-convert-command’ and ‘org-latex-to-mathml-jar-file’.
If you prefer to use MathToWeb12 as your converter, you can configure the above variables as shown below.
(setq org-latex-to-mathml-convert-command "java -jar %j -unicode -force -df %o %I" org-latex-to-mathml-jar-file "/path/to/mathtoweb.jar")
You can use the following commands to quickly verify the reliability of the LaTeX-to-MathML converter.
This option is activated on a per-file basis with
#+OPTIONS: LaTeX:dvipng
With this option, LaTeX fragments are processed into PNG images and the resulting images are embedded in the exported document. This method requires that the dvipng program be available on your system.
For various reasons, you may find embedding LaTeX math snippets in an ODT document less than reliable. In that case, you can embed a math equation by linking to its MathML (‘.mml’) source or its OpenDocument formula (‘.odf’) file as shown below:
[[./equation.mml]]
or
[[./equation.odf]]
Next: Labels and captions in ODT export, Previous: Images in ODT export, Up: OpenDocument Text Exporter for Emacs’ Org Mode [Contents][Index]