Skip to content

vowstar/gitbook-plugin-katex-ng

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.
  • Support unicode text in math.

About

Math typesetting using KaTex

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%