https://github.com/renovamen/gitbook-plugin-katex
Math typesetting using KaTex into Gitbook. Update Katex to the latest version (0.11.1) and support single '$' for inline math.
https://github.com/renovamen/gitbook-plugin-katex
Last synced: about 2 months ago
JSON representation
Math typesetting using KaTex into Gitbook. Update Katex to the latest version (0.11.1) and support single '$' for inline math.
- Host: GitHub
- URL: https://github.com/renovamen/gitbook-plugin-katex
- Owner: Renovamen
- License: apache-2.0
- Created: 2019-12-20T16:50:46.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-25T19:40:13.000Z (over 1 year ago)
- Last Synced: 2025-03-28T07:22:21.337Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.05 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Math typesetting using KaTex
Forked from [GitbookIO/plugin-katex](https://github.com/GitbookIO/plugin-katex). Update Katex from 0.5.1 to the latest version (0.11.1).
## Configuration
Use it for your book, by adding to your book.json:```json
{
"plugins": ["katex@git+https://github.com/Renovamen/gitbook-plugin-katex.git"]
}
```or
```json
{
"plugins": ["katex@git+https://gitee.com/Renovamen/gitbook-plugin-katex.git"]
}
```then run `gitbook install`.
## Usage```
Inline math: $$\int_{-\infty}^\infty g(x) dx$$, $\int_{-\infty}^\infty g(x) dx$Block math:
$$
\int_{-\infty}^\infty g(x) dx
$$Or using the templating syntax:
{% block math %}\int_{-\infty}^\infty g(x) dx{% endblock %}
```
### Comparison with [MathJax](https://github.com/GitbookIO/plugin-mathjax)- Faster
- Refreshing pages manually to render formulas is not need