Math does not show correctly
xlnwel opened this issue · 2 comments
Mathjax shows correctly on the local server, but when it renders incorrectly on the github pages.
For example, the following snapshot is from demonstration code: https://mmistakes.github.io/so-simple-theme/mathjax-example/
I haven't spent an enormous amount of time on this and I'm no Jekyll expert, but changing _includes/scripts.html
to incorporate the changes in this post seems to work. Admittedly, I'm having trouble with local rendering and haven't tested on Github Pages yet, but maybe they are related issues.
In particular, I changed these lines:
...
<script>
// http://docs.mathjax.org/en/latest/upgrading/v2.html
MathJax = {
tex: {
tags: "{{ site.mathjax.tags | default: 'ams' }}" // eq numbering options: none, ams, all
},
...
to:
...
<script>
// http://docs.mathjax.org/en/latest/upgrading/v2.html
MathJax = {
tex: {
tags: "{{ site.mathjax.tags | default: 'ams' }}" // eq numbering options: none, ams, all
packages: ["base", "ams"]
},
loader: {
load: ["ui/menu", "[tex]/ams"]
},
...
and I'm getting proper rendering again. It seems from the blog post the MathJax configuration changed somewhat dramatically, so the existing tag configuration may not work as it used to. I think I'm explicitly loading "ams" here, which may or may not be desirable. I'd greatly appreciate if someone more knowledgeable can verify this fix or point out the proper solution within the context of the theme.
Thanks!!
This issue has been automatically marked as stale because it has not had recent activity.
If this is a bug and you can still reproduce this error on the master
branch, please reply with any additional information you have about it in order to keep the issue open.
If this is a feature request, please add as an Idea under discussions and elaborate on why it is core to this project and why you feel more than 80% of users would find it beneficial.
This issue will automatically be closed in 7 days if no further activity occurs. Thank you for all your contributions.