You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
456 B
36 lines
456 B
Math typesetting using KaTex
|
|
==============
|
|
|
|
Use it for your book, by adding to your book.json:
|
|
|
|
```
|
|
{
|
|
"plugins": ["katex"]
|
|
}
|
|
```
|
|
|
|
then run `gitbook install`.
|
|
|
|
## Usage
|
|
|
|
```
|
|
Inline math: $$\int_{-\infty}^\infty g(x) dx$$
|
|
|
|
|
|
Block math:
|
|
|
|
$$
|
|
\int_{-\infty}^\infty g(x) dx
|
|
$$
|
|
|
|
Or using the templating syntax:
|
|
|
|
{% math %}\int_{-\infty}^\infty g(x) dx{% endblock %}
|
|
```
|
|
|
|
|
|
### Comparison with [MathJax](https://github.com/GitbookIO/plugin-mathjax)
|
|
|
|
- Faster
|
|
|