Skip to content

Commit

Permalink
Fix equation autonumbering
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Mar 30, 2024
1 parent 597b3ff commit 6b3ad97
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,23 @@
\newcommand{\xRightarrow}[1]{\overset{#1}{\Rightarrow}}
"""

# enable autonumbering
mathjax_config = dict(TeX=dict(
equationNumbers=dict(autoNumber="AMS"),
extensions=["[Contrib]/preamble/preamble.js", "color.js"],
preamble=[galgebra_latex_macros]
))
# https://www.sphinx-doc.org/en/master/usage/extensions/math.html#module-sphinx.ext.mathjax
# mathjax_path = "https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS-MML_HTMLorMML"

# # enable autonumbering
# mathjax_config = dict(TeX=dict(
# equationNumbers=dict(autoNumber="AMS"),
# extensions=["[Contrib]/preamble/preamble.js", "color.js"],
# preamble=[galgebra_latex_macros]
# ))
# https://www.sphinx-doc.org/en/master/usage/extensions/math.html#module-sphinx.ext.mathjax
# https://docs.mathjax.org/en/latest/input/tex/extensions/autoload.html#autoload-options
# https://docs.mathjax.org/en/latest/input/tex/eqnumbers.html
mathjax3_config = dict(
tex=dict(
tags='ams'
)
)


# -- other extension configuration --------------------------------------------
Expand Down

0 comments on commit 6b3ad97

Please sign in to comment.