diff options
Diffstat (limited to 'exampleSite/content/post/katex-math-typesetting/index.mmark')
-rw-r--r-- | exampleSite/content/post/katex-math-typesetting/index.mmark | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/exampleSite/content/post/katex-math-typesetting/index.mmark b/exampleSite/content/post/katex-math-typesetting/index.mmark new file mode 100644 index 0000000..6ac5629 --- /dev/null +++ b/exampleSite/content/post/katex-math-typesetting/index.mmark @@ -0,0 +1,31 @@ +---
+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.
+
+See the online reference of [supported TeX functions](https://katex.org/docs/supported.html).
+
+**Note:** For inline math to render correctly, your content file extension must be `.mmark`. See the [official mmark site](https://mmark.nl/).
+
+```
+Inline math: $$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$
+```
+
+Inline math: $$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$
+
+```
+Block math:
+
+$$
+\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
+$$
+```
+
+Block math:
+
+$$
+\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
+$$
|