Skip to content
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

mathjax.js missing in html with pure display equations #550

Closed
casperdcl opened this issue Apr 4, 2021 · 1 comment · Fixed by #551
Closed

mathjax.js missing in html with pure display equations #550

casperdcl opened this issue Apr 4, 2021 · 1 comment · Fixed by #551

Comments

@casperdcl
Copy link

using only display equations in markdown cells:

\begin{equation}
y = mx + c
\end{equation}

mathjax isn't loaded. At least one instance of inline maths needs to be in the notebook ($y = mx + c$) in order to prompt nbsphinx to insert the following into the generated html:

<script async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/x-mathjax-config">MathJax.Hub.Config({"TeX": {"equationNumbers": {"autoNumber": "AMS", "useLabelIds": true}}, "tex2jax": {"inlineMath": [["$", "$"], ["\\(", "\\)"]], "processEscapes": true, "ignoreClass": "document", "processClass": "math|output_area"}})</script>
@mgeier
Copy link
Member

mgeier commented Apr 5, 2021

Thanks for the report!

Does #551 fix it for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants