gitbook-plugin-katex-ng

2.0.0 • Public • Published

gitbook-plugin-katex-ng

Math typesetting using KaTex

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

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

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:

Inline math: {% math_inline %}\int_{-\infty}^\infty g(x) dx{% endblock %}

Block math:

{% math %}\int_{-\infty}^\infty g(x) dx{% endblock %}

Comparison with gitbook-plugin-katex

  • Use single $ for inline math.

Comparison with gitbook-plugin-katex-plus

  • Support unicode text in math.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i gitbook-plugin-katex-ng

    Weekly Downloads

    1

    Version

    2.0.0

    License

    Apache-2.0

    Unpacked Size

    2.12 MB

    Total Files

    85

    Last publish

    Collaborators

    • vowstar