kita/content/math-typesetting.md
2024-01-12 21:49:15 +08:00

905 B

+++ title = "Math Typesetting" date = "2022-10-20" description = "A brief guide to setup KaTeX" extra.math = true +++

Kita theme support \LaTeX mathematical formulas using KaTeX.

  • To enable KaTeX globally, set the parameter extra.math to true in a project's configuration.
  • To enable KaTeX on a per page basis, include the parameter extra.math = true in the frontmatter of content files.

Note: Use the online reference of Supported TeX Functions.

Examples

Inline math

When $x = \pi$, Euler's formula may be rewritten as $e^{i \pi} + 1 = 0$.

When x = \pi, Euler's formula may be rewritten as e^{i \pi} + 1 = 0.

Block math

$$
 \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
$$

\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }