MATHJAX


MATHJAX is a system for including mathematical expressions and phrases within a web page, using $\LaTeX$, MathML, or AsciiMath notation.

Information about MATHJAX is available at http://www.mathjax.org .

Here is a simple example of a text with contains mathematical phrases, which we have written using standard $\TeX$ syntax. Doing this only requires that we include a short script in the header of our HTML document, and that we mark the opening and closing of our mathematical phrases with delimiters.

There are three options for marking the beginning and ending of such phrases, and in this text, we have used each of the three options. (Of course, you won't notice the delimiters in the HTML document after it has been rendered; you would have to go back to the HTML source to see it.) Since the dollar sign might be useful in ordinary text, but is typically used as a mathematics delimiter, we can request that it be used as a delimiter by including an extra script in the header of our document.

Now let us display our mathematical text:


As has been known for centuries, when $a \ne 0$, there are two solutions to the quadratic equation \(ax^2+bx + c = 0 \), namely: $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$


Reference:

  1. Davide Cervone,
    MathJax: A Platform for Mathematics on the Web,
    Notices of the American Mathematical Society,
    Volume 59, Number 2, February 2012, pages 312-316.
  2. Brian Hayes,
    Writing Math on the Web,
    American Scientist,
    Volume 97, Number 2, March-April 2009, pages 98-102.

You can go up one level to the EXAMPLES directory.


Last revised on 16 May 2012.