Skip to content

Make equation numbering a default option in mathjax [feature added] #264

@jdhao

Description

@jdhao

I agree and want to create new issue

suggestions

Right now I am using hexo-renderer-pandoc to render latex equations in my post. But in order to support equation numbering, as is shown in this post, we need to change the mathjax.swig file under the theme next root directory (the path is layout\_third-party\math\mathjax.swig). We need to change

<script type="text/x-mathjax-config">
    MathJax.Hub.Config({
      tex2jax: {
        inlineMath: [ ['$','$'], ["\\(","\\)"]  ],
        processEscapes: true,
        skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
      }
    });
</script>

to

<script type="text/x-mathjax-config">
    MathJax.Hub.Config({
      tex2jax: {
        inlineMath: [ ['$','$'], ["\\(","\\)"]  ],
        processEscapes: true,
        skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
      },
      TeX: {equationNumbers: { autoNumber: "AMS" }}
    });
</script>

in order to support automatic equation numbering. I hope the following option may be added as a default option:

 TeX: {equationNumbers: { autoNumber: "AMS" }}

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions