diff options
author | zwbetz <zwbetz@gmail.com> | 2019-04-03 04:59:56 +0300 |
---|---|---|
committer | zwbetz <zwbetz@gmail.com> | 2019-04-03 04:59:56 +0300 |
commit | 31c33627e6ad76a89826f13d40e2911785f7cd87 (patch) | |
tree | 48d351c569e23ec18adcfcaf8c07765e748b54e1 /exampleSite | |
parent | cc43fcbe7b06178cd0bb3d590cae4af29e872de2 (diff) |
Add Katex support
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | exampleSite/config.yaml | 1 | ||||
-rw-r--r-- | exampleSite/content/post/katex-math-typesetting/index.md | 29 |
3 files changed, 31 insertions, 0 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 1bd0698..ef07e39 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -22,6 +22,7 @@ disqusShortname = "yourdiscussshortname" # For more date formats see https://gohugo.io/functions/format/ dateFormat = "Jan 2, 2006" codePenUser = "someUser" + katex = true [menu] [[menu.nav]] diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index b24cc8e..f424523 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -22,6 +22,7 @@ params: # For more date formats see https://gohugo.io/functions/format/ dateFormat: Jan 2, 2006 codePenUser: someUser + katex: true menu: nav: diff --git a/exampleSite/content/post/katex-math-typesetting/index.md b/exampleSite/content/post/katex-math-typesetting/index.md new file mode 100644 index 0000000..d4a368e --- /dev/null +++ b/exampleSite/content/post/katex-math-typesetting/index.md @@ -0,0 +1,29 @@ +---
+title: "Katex Math Typesetting"
+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.
+
+**Note:** Use the online reference of [supported TeX functions](https://katex.org/docs/supported.html).
+
+Some math:
+
+```
+$$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$
+```
+
+$$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$
+
+More math:
+
+```
+$$
+\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
+$$
+```
+
+$$
+\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
+$$
|