Consider setting use_math to true by default

fastpages (as well as nbdev) uses KaTeX. It seems that it does not support equation numbering.

For those needing equation numbering, keep use_math: false in _config.yml and add e.g. in _layouts/notebook.html the following MathJax scripts:

<script type="text/x-mathjax-config"> MathJax.Hub.Config({ TeX: { equationNumbers: { autoNumber: "all" } } }); </script>
<script type="text/x-mathjax-config">
   MathJax.Hub.Config({
     tex2jax: {
       inlineMath: [ ['$','$'], ["\\(","\\)"] ],
       processEscapes: true
     }
   });
</script>
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>

2 Likes