From a39c7b412dba4d2af8f9e4a6ef672830dee8ea7b Mon Sep 17 00:00:00 2001 From: mhostetter Date: Sun, 6 Aug 2023 11:10:09 -0400 Subject: [PATCH] Use `sphinx-math-dollar` --- docs/conf.py | 14 ++++++++++++++ docs/requirements.txt | 1 + 2 files changed, 15 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index cae82d70b..c7aa8e6d9 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -54,6 +54,7 @@ "sphinx_last_updated_by_git", "sphinx_immaterial", "sphinx_immaterial.apidoc.python.apigen", + "sphinx_math_dollar", "myst_parser", "sphinx_design", "IPython.sphinxext.ipython_console_highlighting", @@ -216,6 +217,19 @@ myst_enable_extensions = ["dollarmath"] +mathjax_config = { + "tex2jax": { + "inlineMath": [["\\(", "\\)"]], + "displayMath": [["\\[", "\\]"]], + }, +} +mathjax3_config = { + "tex": { + "inlineMath": [["\\(", "\\)"]], + "displayMath": [["\\[", "\\]"]], + } +} + # -- Sphinx Immaterial configs ------------------------------------------------- diff --git a/docs/requirements.txt b/docs/requirements.txt index f72d2ba5c..85884270f 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -3,4 +3,5 @@ sphinx-immaterial == 0.11.5 myst-parser sphinx-design sphinx-last-updated-by-git +sphinx-math-dollar ipykernel