Math typesetting using KaTex into GitBook
npm install gitbook-plugin-katex-ppMath typesetting using KaTex in Gitbook
==============
As the gitbook official plugin named katex was not maintained. So here is the enhanced version basesd the official version.
\tag rendered on the right, like \usepackage{amsmath} in LaTeX. Use it for your book, by adding to your book.json:
```
{
"plugins": ["katex-pp"]
}
then run gitbook install.
`
Inline math: $$\int_{-\infty}^\infty g(x) dx$$
Block math:
$$
\int_{-\infty}^\infty g(x) dx
$$
Block math with (tag):
$$
\tag{hi} x+y^{2x}
$$
Block math with tag:
$$
\tag*{hi} x+y^{2x}
$$
Or using the templating syntax:
{% math %}\int_{-\infty}^\infty g(x) dx{% endblock %}
``