Menu

Math Typesetting

by Hugo Authors , Mar 8, 2019

Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.

In this example we will be using KaTeX

{{ if or .Params.math .Site.Params.math }}
{{ partial "math.html" . }}
{{ end }}

Note: Use the online reference of Supported TeX Functions

Examples

Block math: $$ \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } $$

Site menu

Back to top
© 老登纪 2018 - 2020 津ICP备19011517号 |police津公网安备 12011402001073号