- topic
Mathematics
triple: Sphinx; Syntax; Mathematics
In you can include inline math x ← y x∀y x − y (as role :math:`x\leftarrow y\ x\forall y\ x-y
`) or display math as directive block which is able to cross-referencing equations:
Recent versions of include built-in support for math. There are three flavors:
- :py
sphinx:sphinx.ext.imgmath
: uses dvipng to render the equation - :py
sphinx:sphinx.ext.mathjax
: renders the math in the browser using Javascript - :py
sphinx:sphinx.ext.jsmath
: it's an older code, but it checks out
Additionally, there are special extensions provided by matplotlib that has its own math support for writing mathematical expressions and inserting automatically-generated plots:
matplotlib.sphinxext.mathmpl
- :py
mplref:matplotlib.sphinxext.plot_directive
See ../extensions/matplotlib
for more details about the matplotlib extensions with examples.
\clearpage\phantomsection