Skip to content

Commit

Permalink
added mathjax for rendering tex format imgmath needs latex engine
Browse files Browse the repository at this point in the history
  • Loading branch information
fnhirwa committed Mar 20, 2024
1 parent 37e0798 commit 0c35ff9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
default_language_version:
python: python3.8
python: python3

ci:
autofix_prs: true
Expand Down
6 changes: 6 additions & 0 deletions _docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"myst_parser",
"sphinx_paramlinks",
"pt_lightning_sphinx_theme.extensions.lightning",
"sphinx.ext.mathjax",
]

# Add any paths that contain templates here, relative to this directory.
Expand Down Expand Up @@ -207,6 +208,11 @@
),
]

# MathJax configuration
mathjax3_config = {
"tex": {"packages": {"[+]": ["ams", "newcommand", "configMacros"]}},
}

# -- Options for Epub output -------------------------------------------------

# Bibliographic Dublin Core info.
Expand Down

0 comments on commit 0c35ff9

Please sign in to comment.