1.0.2 • Published 5 years ago

gitbook-plugin-katex-pp v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Math 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.

New features

  • Display math has \tag rendered on the right, like \usepackage{amsmath} in LaTeX.
  • Outputs HTML for visual rendering and includes MathML for accessibility.
  • Using Katex 0.11.1

Install

Use it for your book, by adding to your book.json:

{
    "plugins": ["katex-pp"]
}

then run gitbook install.

Usage

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 %}