-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
I agree and want to create new issue
- Yes, I was on Hexo Docs page, especially on Templates, Variables, Helpers and Troubleshooting.
- Yes, I was on NexT Documentation Site.
- And yes, I already searched for current issues and this is not help to me.
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" }}
Reactions are currently unavailable