mirror of
https://github.com/SebastianStork/kita.git
synced 2026-01-21 14:31:35 +01:00
905 B
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.mathtotruein a project's configuration. - To enable KaTeX on a per page basis, include the parameter
extra.math = truein 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} } }