Updated mathjax.md

loren authored
revision ec67735e5c3d6453a4232e3995e1ca3f7ec4b142
# MathJax

Penflip uses the MathJax javascript library to display mathematical notation. Notation is written in LaTeX and wrapped in delimiters. Penflip uses class="tex2jax_ignore">\( ... `\) for **inline math**, and `$$` ... `$$` for **display math**.

## Inline Math

Penflip uses `\(` ... `\) for inline math delimiters. Here's an example:

![inline math](https://dl.dropboxusercontent.com/u/10941557/Penflip/mathjax-inline-2.png)

is rendered as:

Pythagorean equation: \(a^2 + b^2 = c^2\)

## Display Math

Penflip uses `$$` ... `$$` for display math delimiters. Display equations must be written on their own line. Display math delimiters (`$$`) can be included on the equation line, or on lines preceding and following the equation line (spanning three lines). Here's an example:

![display math](https://dl.dropboxusercontent.com/u/10941557/Penflip/mathjax-display.png)

is rendered as:

x = {-b \pm \sqrt{b^2-4ac} \over 2a}

## Resources

- [MathJax documentation](http://docs.mathjax.org/en/latest/)
- [LaTeX mathematics documentation](http://en.wikibooks.org/wiki/LaTeX/Mathematics)