Skip to content

Commit

Permalink
Use sphinx-math-dollar
Browse files Browse the repository at this point in the history
  • Loading branch information
mhostetter committed Aug 6, 2023
1 parent 0cb769e commit a39c7b4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -216,6 +217,19 @@

myst_enable_extensions = ["dollarmath"]

mathjax_config = {
"tex2jax": {
"inlineMath": [["\\(", "\\)"]],
"displayMath": [["\\[", "\\]"]],
},
}
mathjax3_config = {
"tex": {
"inlineMath": [["\\(", "\\)"]],
"displayMath": [["\\[", "\\]"]],
}
}


# -- Sphinx Immaterial configs -------------------------------------------------

Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ sphinx-immaterial == 0.11.5
myst-parser
sphinx-design
sphinx-last-updated-by-git
sphinx-math-dollar
ipykernel

0 comments on commit a39c7b4

Please sign in to comment.