Thursday, June 5, 2014

Adding latex support to a blog (like this one!)

To add LaTeX support to a blog, simply add this script under your Layout->HTML/JavaScript settings

<script type="text/javascript" src=""> MathJax.Hub.Config({ extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js"], jax: ["input/TeX", "output/HTML-CSS"], tex2jax: { inlineMath: [ ['$\$$','$\$$'], ["\(","\)"] ], displayMath: [ ['$\$$$\$$','$\$$$\$$'], ["$\backslash [$","$\backslash ]$"] ], }, "HTML-CSS": { availableFonts: ["TeX"] } });< /script>

I have forgotten where I got this tip, but whoever originally posted this - thank you!

No comments:

Post a Comment