katex math typesetting

Publish date: 2019-03-28
Tags:
katex, math, typesetting, hugo, 计算机视觉

Enable Katex in the config file by setting the katex param to true. This will import the necessary Katex CSS/JS.

See the online reference of supported TeX functions.

Note: For inline math to render correctly, your content file extension must be .mmark. See the official mmark site.

Inline math: $$ varphi = dfrac{1+sqrt5}{2}= 1.6180339887… $$

Inline math: ( varphi = dfrac{1+sqrt5}{2}= 1.6180339887… )

Block math:

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

Block math:

[
varphi = 1+frac{1} {1+frac{1} {1+frac{1} {1+cdots} } }
]