Saturday, May 2, 2015

Codecogs Latexit for Blogger not working?

Recently I tried integrating online latex formatter into my blog. Codecogs latexit turned out to be a good option. Unfortunately the instructions given at http://www.codecogs.com/latex/integration/blogger/install.php doesn't seem to work. This is because the URL http://latex.codecogs.com/latexit.php?p&li&div returns a 404.

The following work around seems to work.

  • Open the template in edit mode
  • Add the following script at the end of head
<script type="text/javascript" src="http://latex.codecogs.com/latexit.js"></script>

Save the template. Any tag with a lang="latex" attribute will be rendered as a latex expression.

<div lang="latex">
\frac{1+sin(x)}{y}
</div>
\frac{1+sin(x)}{y}

Check out this link for more details:

http://www.codecogs.com/latex/integration/htmlequations.php


Update 14th May

I have moved to MathJax for browser based latex rendering. www.mathjax.org. This is simply beautiful and oh so immensely powerful. The best part is it has got extensions for mhchem LaTeX package. Expressing chemical formulas is such a pleasure with mhchem.(mhchem package)

No comments: