mdBook/book-example/src/format/mathjax.md

22 lines
426 B
Markdown
Raw Normal View History

2015-12-30 22:04:24 +08:00
# MathJax Support
mdBook supports math equations through [MathJax](https://www.mathjax.org/).
**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
```bash
2015-12-30 22:04:24 +08:00
\\[ \mu = \frac{1}{N} \sum_{i=0} x_i \\]
```