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
|
|
|
|
|
2016-08-07 03:24:21 +08:00
|
|
|
```bash
|
2015-12-30 22:04:24 +08:00
|
|
|
\\[ \mu = \frac{1}{N} \sum_{i=0} x_i \\]
|
|
|
|
```
|