Latex equations when uploading a markdown script to wordpress via knit2wp() Latex equations when uploading a markdown script to wordpress via knit2wp() wordpress wordpress

Latex equations when uploading a markdown script to wordpress via knit2wp()


You have to load MathJax in your WordPress site. You are recommended to do this through a plugin, or modify your theme if you have write access to it. If you are unable to do either, you may have to manually load it in each single post:

<script type="text/javascript"  src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>


Unfortunately, wordpress.com does not allow users to load MathJax.

You can use the TeX2PNG rendering that's available, see http://en.support.wordpress.com/latex/. You'll probably have to modify the math delimiters to $latex ... $ (there's no display mode).