Mathtran examples
The examples on this page use the Mathtran service to replace TeX markup with beautifully rendered images of mathematical formulae.
For example to encode the quadratic formula:
we embed the relevant TeX markup, preceded by tex:, in the alt attribute of an img tag.
<img alt="tex:${-b \pm \sqrt{b^2 - 4ac}} \over 2a$" />
The TeX code reads as “-b plus or minus (\pm) the square root (\sqrt) of b squared minus 4 a c, over 2 a”.
The src attribute is added in by the JavaScript included in the head of the page.
<script type="text/javascript" src="http://www.mathtran.org/js/mathtran.js"></script>
N.B. The -b should be part of the numerator of the fraction, I think I need to brush up on my TeX.