<script>window.MathJax = {"options": {"processHtmlClass": "tex2jax_process|mathjax_process|math|output_area"}}</script>
<script defer="defer" src="_static/MathJax/tex-mml-chtml.js?v=26396ac8"></script>
The math on the page is partly displayed, but I get several errors in the browser console, of the form:
I'm not sure why it is attempting to access the fonts from the CDN because the documentation says that the fonts are bundled in the tex-mml-chtml.js component.
I tried to set the path to the fonts with the Sphinx option:
mathjax4_config = {
"loader": {
"paths": {
"fonts": "[mathjax]",
},
},
}
This appears to correctly update the HTML:
<script>window.MathJax = {"loader": {"paths": {"fonts": "[mathjax]"}}, "options": {"processHtmlClass": "tex2jax_process|mathjax_process|math|output_area"}}</script>
But I now get the following error in the browser console:
[Error] Failed to load resource: the server responded with a status of 404 () (mjx-ncm-zero.woff2, line 0)
https://.../_static/MathJax/mathjax-newcm-font/chtml/woff2/mjx-ncm-brk.woff2
(This is an internal URL)
Which is not surprising as the directory mathjax-newcm-font does not exist in the downloaded zip package. And I can't find it mentioned anywhere in the MathJax repos.
Any suggestions how to get this working?
Thanks