mathTeX helper
Monday 14th January 2008
As mentioned in Online LaTeX mathTeX lets you incorporate high-quality LaTeX images in an web page using an image tag so
<img src="http://www.forkosh.com/mathtex.cgi?c=\sqrt{a^2+b^2}" />
becomes which may be placed slightly too high on the line.
This is very simple to do but remembering exactly what to type can be a problem, particularly in sites like Blogger. So I have written a tool which
- allows you to test LaTeX code first
- creates the image code (or URL with a link if you prefer) automatically for you
- adds title attributes so that hovering a mouse over the image shows the code
- ensures that the image’s vertical spacing is improved
This makes it simple to produce whose code is
<img src="http://www.forkosh.com/mathtex.cgi?c=\sqrt{a^2+b^2}" title="c=\sqrt{a^2+b^2}" alt="c=\sqrt{a^2+b^2}" style="vertical-align:-2pt;" />
Download mathTeX helper which runs on your own computer and uses JavaScript.