Friday, August 28, 2009

Blog equations in Latex

I now realized that it is not so easy to input equations in Blogger. Latex codes are not supported. What if Blogger allow to embed Latex codes of equations!

I Google and found some suggestions on
pleasemakeanote.

Basically, you embed an image generated dynamically by submitting your Latex codes to http://www.codecogs.com.


For example, if you want to type in the following equation:

e^x = \sum\limits_{n = 0}^\infty {\frac{{x^n }}{{n!}}}

All you need to do is to add the following codes to your Blogger.
<img src="http://www.codecogs.com/gif.latex?e^x = \sum\limits_{n = 0}^\infty {\frac{{x^n }}{{n!}}}" />
Now you get it!



It sounds an easy way. And furthermore, you can

  1. Go to the codecogs online LaTeX editor
  2. Type in your equations LaTeX
  3. Copy the HTML code that is generated at the bottom of the page
  4. Paste it in Blogger (either in the "Edit HTML" or "Compose views).
Now, it seems to me that this the best way to add equations to Blogger. But I still prefer Google can provide a "richer" editor that allows to edit equations by itself.

No comments:

Post a Comment