Sphinx Contrib JSMath

1.0.1 · active · verified Sun Mar 29

Sphinxcontrib-jsmath is a Sphinx extension that enables rendering of display math in HTML output via JavaScript, utilizing the older jsMath library. It is often chosen for its smaller JavaScript package size compared to newer alternatives like MathJax. The current version is 1.0.1, last released in January 2019, but it continues to receive compatibility updates for newer Sphinx versions through various distribution packages.

Warnings

Install

Imports

Quickstart

To enable sphinxcontrib-jsmath, add 'sphinxcontrib.jsmath' to the `extensions` list in your Sphinx project's `conf.py` file. Additionally, you must configure `jsmath_path` to point to the `jsMath/easy/load.js` file, which typically resides in your Sphinx project's `_static` directory after you've manually downloaded the jsMath library.

# conf.py

# Add 'sphinxcontrib.jsmath' to the list of extensions
extensions = [
    'sphinxcontrib.jsmath',
    # ... other extensions
]

# Set the path to the jsMath library.
# This example assumes jsMath is placed in your Sphinx project's _static directory,
# e.g., <your_project_root>/_static/jsMath/easy/load.js
# You need to download the jsMath library separately and place it there.
# If jsMath is hosted externally, provide the full URL.
jsmath_path = 'jsMath/easy/load.js'

view raw JSON →