Skip to content
This repository has been archived by the owner on Sep 15, 2018. It is now read-only.

liushilive/gitbook-plugin-katex-gf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Math typesetting using KaTex (Global function)

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

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

then run gitbook install.

Usage

https://khan.github.io/KaTeX/function-support.html

Inline math: $$\int_{-\infty}^\infty g(x) dx$$

Block math:

$$
\def\arraystretch{1.5}
\begin{array}{c|c:c}
   a & b & c \\ \hline
   d & e & f \\
   \hdashline
   g & h & i
\end{array}
$$

$$\fcolorbox{red}{aqua}{A}$$

$$\textcolor{#228B22}{F=ma}$$

Or using the templating syntax:

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

Comparison with MathJax

  • Faster

About

Math typesetting using KaTex into GitBook (Global function)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published