1
0

Project and Content Cleanup, Normalization (#61)

This commit is contained in:
Jhaura Wachsman
2020-06-03 18:34:16 +00:00
committed by GitHub
parent a83885a33e
commit e4440a1848
14 changed files with 60 additions and 74 deletions

View File

@@ -15,15 +15,17 @@ In this example we will be using [KaTeX](https://katex.org/)
- Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally.
- Include the partial in your templates like so:
```
```bash
{{ if or .Params.math .Site.Params.math }}
{{ partial "math.html" . }}
{{ 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 on a per page basis include the parameter `math: true` in content files
**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html)
{{< math.inline >}}
{{ if or .Page.Params.math .Site.Params.math }}
<!-- KaTeX -->
@@ -34,6 +36,7 @@ In this example we will be using [KaTeX](https://katex.org/)
{{</ math.inline >}}
### Examples
{{< math.inline >}}
<p>
Inline math: \(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\)
@@ -44,4 +47,3 @@ Block math:
$$
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
$$