Math Typesetting

Math typesetting using KaTeX

Stack has built-in support for math typesetting using KaTeX.

It’s not enabled by default side-wide, but you can enable it for individual posts by adding math: true to the front matter. Or you can enable it side-wide by adding math = true to the params.article section in config.toml.

Inline math

This is an inline mathematical expression: φ=1+52=1.6180339887…\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…

1
$\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…$

Block math

φ=1+11+11+11+⋯ \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }

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

f(x)=∫−∞∞f^(ξ),e2πiξx,dξ f(x) = \int_{-\infty}^\infty\hat f(\xi),e^{2 \pi i \xi x},d\xi

1
2
3
$$
    f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi
$$
Licensed under CC BY-NC-SA 4.0