-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Math equations are not correctly displayed #44
Comments
Yes, the I used MathJax successfully (no changes to configurationThe extra_javascript:
# TACC/TACC-Docs:/mkdocs.base.yml
- ... # https://github.com/TACC/TACC-Docs/blob/main/mkdocs.base.yml#L38-L40
# DesignSafe/DS-User-Guide
# https://facelessuser.github.io/pymdown-extensions/extensions/arithmatex/#loading-mathjax
- https://polyfill.io/v3/polyfill.min.js?features=es6
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js markdown_extensions:
# TACC/TACC-Docs:/mkdocs.base.yml
- ... # https://github.com/TACC/TACC-Docs/blob/main/mkdocs.base.yml#L45-L65
# DesignSafe/DS-User-Guide
# https://facelessuser.github.io/pymdown-extensions/extensions/arithmatex/#loading-mathjax
- pymdownx.arithmatex:
generic: true You may see and test the complete changeset. This is a proof-of-concept. Do not create a PR with this change. To make this less of a mess to configure, I will make changes upstream (TACC/TACC-Docs). |
Going back to this issue, I added the configuration code to the use case in which I wanted the equations to render <script type="text/x-mathjax-config">
MathJax.Hub.Config({
jax: ["input/TeX", "output/HTML-CSS"],
extensions: ["tex2jax.js"],
"HTML-CSS": { preferredFont: "TeX", availableFonts: ["STIX","TeX"] },
tex2jax: { inlineMath: [ ["$", "$"], ["\\(","\\)"] ], displayMath: [ ["$$","$$"], ["\\[", "\\]"] ], processEscapes: true, ignoreClass: "tex2jax_ignore|dno" },
TeX: { noUndefined: { attributes: { mathcolor: "red", mathbackground: "#FFEEEE", mathsize: "90%" } } },
messageStyle: "none"
}); and it works perfectly in the new TACC's documentation implementation (see PR #106). |
Overview
Math equations in the use cases (and any other page) will not be correctly rendered.
MathJax - Possible solution (test 1)
Adding to
mkdocs.yml
:It works, but at the same time, it also renders HTML-style code:
KaTeX - It seems this is not a solution (test 2)
Adding to
mkdocs.yml
:It does not render the equations, it displays HTML code, and it seems it brings back to the previous theme.
The text was updated successfully, but these errors were encountered: