Easy TeX in HTML

2013.08.22   9:32PM   tex

Have you ever needed to include an equation in html, but couldn't find an easy way to do it? Maybe something ugly, like this:

I_{ft} = \sum\limits_{i=1}^n \left ( \frac{1}{e^{-x}} \right ) + \sqrt{\tan(x)}

There is a solution! Its a javascript plugin called latexit.js. This article points out several ways that the script can be used. The method that I used for the above equation was just to specify lang="latex" in the opening div tag. Its that simple! The same can be done for just about any tag.

Isn't \LaTeX great?

by Chris McComb

LXN

Home

Recent

Tags

Archive


Google+

RSS Feed

© Chris McComb 2013