sphinx-math-dollar
Sphinx extension to let you write LaTeX math using $$
Decision gist · record as of 2026-08-14
Yes, if you are already using Sphinx and prefer dollar-sign math syntax. Install friction is minimal, the license is permissive, and there are no known security issues. Maintenance is aging but the repository is active. Be aware of the absolute-value workaround and test your math notation before committing to it in a large documentation project.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >=3.11 and an existing Sphinx documentation project.
- MathJax configuration needed in conf.py to prevent parsing conflicts.
- Low friction: pure Python wheel with a single runtime dependency on sphinx.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
last release 2026-02-05 (190 days) · last repo commit 2026-02-05 · 35 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 76,915 downloads/mo, #14,579 on PyPI
Alternatives
Verify before relying
pip install sphinx-math-dollar
In conf.py:
extensions = ['sphinx_math_dollar', 'sphinx.ext.mathjax']
In RST: $\int\sin(x)\,dx$ for inline math or $$\int\sin(x)\,dx$$ for display.- Whether absolute-value workarounds (spaces or braces) are acceptable for your math notation style
- Compatibility with Sphinx versions older than those tested in the classifiers
What it is and what it does
sphinx-math-dollar is a Sphinx extension that translates dollar-sign math notation (familiar from LaTeX and Markdown) into Sphinx's native math directives. It lets you write inline math as $expression$ and display math as $$expression$$, which the extension parses and converts for rendering via MathJax or similar backends. This is useful if you prefer LaTeX-style syntax over Sphinx's :math: and .. math:: directives, or if you're migrating documentation from other systems that use dollar signs.
The extension uses a blacklist to avoid parsing dollar signs in code blocks, literals, and other contexts where they shouldn't be interpreted as math. It integrates with sphinx.ext.autodoc to handle math in docstrings. Configuration is minimal—add it to your extensions list and optionally configure MathJax to prevent conflicts. Known limitations include issues with absolute-value bars (which Sphinx may parse as inline substitutions) and a need for careful spacing or braces in certain edge cases.
Use it for
- Migrating Markdown or LaTeX documentation to Sphinx RST while keeping familiar dollar-sign math syntax
- Writing scientific or mathematical documentation where dollar signs feel more natural than :math: directives
- Documenting Python packages with heavy mathematical content in docstrings via autodoc
- Reducing friction when teams transition from other documentation systems to Sphinx
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are already using Sphinx and prefer dollar-sign math syntax.
Install friction is minimal, the license is permissive, and there are no known security issues. Maintenance is aging but the repository is active. Be aware of the absolute-value workaround and test your math notation before committing to it in a large documentation project.
Install
sphinx-math-dollar on PyPI
Before you install
Low friction: pure Python wheel with a single runtime dependency on sphinx. Last release 190 days ago; repository is active and not archived, though maintenance pace suggests aging status.
Requires Python >=3.11 and an existing Sphinx documentation project. MathJax configuration needed in conf.py to prevent parsing conflicts.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install sphinx-math-dollar
In conf.py:
extensions = ['sphinx_math_dollar', 'sphinx.ext.mathjax']
In RST: $\int\sin(x)\,dx$ for inline math or $$\int\sin(x)\,dx$$ for display.
Verify before relying
- Whether absolute-value workarounds (spaces or braces) are acceptable for your math notation style
- Compatibility with Sphinx versions older than those tested in the classifiers
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.11 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagesphinx |
| Maintenance | Aging 190 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 76,915 / month, #14,579 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: sphinx_math_dollar-1.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “sphinx latex math dollar signs”
- sphinx-math-dollarA Sphinx extension that lets you write LaTeX math in reStructuredText…
- sphinxcontrib-katexA Sphinx extension that renders mathematical equations in HTML…
- sphinxcontrib-jsmathA Sphinx extension that renders mathematical display equations in…
Give your agent the search over MCP, or paste the wish link into any chat.
More Sphinx packages
Parses Python docstrings in ReST, Google, Numpydoc, and Epydoc formats, extracting structured information like descriptions, parameters, return types, and exceptions.
Install it if you need to programmatically read and extract structured data from Python docstrings.
Sphinx generates professional documentation from reStructuredText source files, producing HTML, PDF, EPUB, and other formats with automatic cross-references, code highlighting, and hierarchical navigation.
A Sphinx extension that outputs documentation in serialized HTML formats (JSON and pickle) alongside standard HTML.
Alabaster is a clean, responsive Sphinx theme for documentation that requires Python 3.10 or newer and Sphinx 6.2 or newer.
A Sphinx extension that generates HTML help files from reStructuredText documentation source.
A Sphinx extension that converts documentation source files into QtHelp format, enabling integration with Qt-based help systems and documentation viewers.
However, be aware that maintenance is dormant—if you rely on it long-term, monitor Sphinx compatibility and consider whether QtHelp remains the right format for your…
See also sphinxcontrib-jsmath · sphinxcontrib-katex · sphinx-substitution-extensions · latex2sympy2-extended · latex2sympy2 · python-markdown-math · sphinx_mdinclude · simple-equ · myst-parser · math-verify