Enabling MathJax

less than 1 minute read

Published:

It’s cool to enable LaTeX rendering on blog posts. I found this script and added to _includes/head/custom.html:

<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
  	TeX: {
      equationNumbers: {
        autoNumber: "AMS"
      }
    },
    tex2jax: {
      inlineMath: [ ['$','$'], ["\\(","\\)"] ],
      displayMath: [ ['$$','$$'] ],
      processEscapes: true
    }
  });
</script>
<script type= "text/javascript" src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/latest.js?config=TeX-MML-AM_CHTML' async></script>

Now I can write LaTeX!

Leave a Comment