sphinxcontrib.katex's documentation on Read the Docs sphinxcontrib-katex's supported Python versions sphinxcontrib.katex's MIT license

A Sphinx extension for rendering math in HTML pages.

The extension uses KaTeX for rendering of math in HTML pages. It is designed as a replacement for the built-in extension sphinx.ext.mathjax, which uses MathJax for rendering.

.. math::

    \text{Rendered with \KaTeX} \\[18pt]

    f(x) =
        \hat{f}(\xi) \,e^{2 \pi i \xi x}
Rendered with KaTeXf(x)=f^(ξ)e2πiξxdξ\text{Rendered with \KaTeX} \\[18pt] f(x) = \int_{-\infty}^\infty \hat{f}(\xi) \,e^{2 \pi i \xi x} \,d\xi