|
|
|
@ -3,7 +3,8 @@ author: Hugo Authors
|
|
|
|
|
title: Math Typesetting
|
|
|
|
|
date: 2019-03-08
|
|
|
|
|
description: A brief guide to setup KaTeX.
|
|
|
|
|
paige_math: true
|
|
|
|
|
paige:
|
|
|
|
|
math: true
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.
|
|
|
|
@ -21,7 +22,7 @@ In this example we will be using [KaTeX](https://katex.org/)
|
|
|
|
|
{{ end }}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
To enable KaTex on a per page basis include the parameter `paige_math: true` in content files
|
|
|
|
|
To enable KaTex on a per page basis include the parameter `paige.math: true` in content files
|
|
|
|
|
|
|
|
|
|
**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html)
|
|
|
|
|
|
|
|
|
|