mdbook/book-example/src/format/mathjax.md
Carol (Nichols || Goulding) a0d8013242 Tell rustdoc this mathjax is not rust
Use bash for the grey background though.
2016-08-06 15:25:40 -04:00

426 B

MathJax Support

mdBook supports math equations through MathJax.

However the normal method for indication math equations with $$ does not work (yet?).

To indicate an inline equation \( \int x = \frac{x^2}{2} \) use

\\( \int x = \frac{x^2}{2} \\)

To indicate a block equation

\[ \mu = \frac{1}{N} \sum_{i=0} x_i \]

use

\\[ \mu = \frac{1}{N} \sum_{i=0} x_i \\]