Next:Text areas in HTML export, Previous:Images in HTML export, Up:HTML Export [Contents][Index]
LaTeX math snippets (seeLaTeX fragments) can be displayed in twodifferent ways on HTML pages. The default is to use theMathJax, which should work out of the boxwith Org134135. Some MathJax display options canbe configured viaorg-html-mathjax-options, or in the buffer. Forexample, with the following settings,
#+HTML_MATHJAX: align: left indent: 5em tagside: left
equation labels are displayed on the left margin and equations arefive em from the left margin.
See the docstring oforg-html-mathjax-options for all supportedvariables. The MathJax template can be configure viaorg-html-mathjax-template.
If you prefer, you can also request that LaTeX fragments are processedinto small images that will be inserted into the browser page. Beforethe availability of MathJax, this was the default method for Orgfiles. This method requires that the dvipng program, dvisvgm orImageMagick suite is available on your system. You can still get thisprocessing with
#+OPTIONS: tex:dvipng
#+OPTIONS: tex:dvisvgm
or
#+OPTIONS: tex:imagemagick
By default, Org loads MathJax fromjsDelivr, as recommended inGetting Startedwith MathJax Components.
Please note that exported formulas are part of an HTMLdocument, and that signs such as ‘<’, ‘>’, or ‘&’ have specialmeanings. SeeMathJax TeX and LaTeX in HTML documents.