|
|
|
@ -3,7 +3,7 @@ author: Hugo Authors
|
|
|
|
|
title: Math Typesetting
|
|
|
|
|
date: 2019-03-08
|
|
|
|
|
description: A brief guide to setup KaTeX.
|
|
|
|
|
math: true
|
|
|
|
|
paige_math: true
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.
|
|
|
|
@ -21,8 +21,8 @@ In this example we will be using [KaTeX](https://katex.org/)
|
|
|
|
|
{{ end }}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
- To enable KaTex globally set the parameter `math` to `true` in a project's configuration
|
|
|
|
|
- To enable KaTex on a per page basis include the parameter `math: true` in content files
|
|
|
|
|
- To enable KaTex globally set the parameter `paige_math` to `true` in a project's configuration
|
|
|
|
|
- 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)
|
|
|
|
|
|
|
|
|
|