JsMath tex2math Example

    <HTML>
    <HEAD><TITLE>jsMath tex2math Example</TITLE></HEAD>
    <BODY>

    <SCRIPT SRC="jsMath/jsMath.js"></SCRIPT>
    <SCRIPT>jsMath.Setup.Script("plugins/tex2math.js")</SCRIPT>

    There are two solutions to $ax^2 + bx + c = 0$ and they are
    $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$

    <SCRIPT>
      jsMath.ConvertTeX();
      jsMath.Process();
    </SCRIPT>

    </BODY>