mirror of
https://github.com/SebastianStork/kita.git
synced 2026-01-21 23:51:35 +01:00
docs: update docs
This commit is contained in:
parent
d7d6e69130
commit
43911ffe82
8 changed files with 315 additions and 140 deletions
|
|
@ -1,6 +1,6 @@
|
|||
+++
|
||||
title = "Math Typesetting"
|
||||
date = "2019-03-08"
|
||||
date = "2022-10-20"
|
||||
description = "A brief guide to setup KaTeX"
|
||||
extra.math = true
|
||||
+++
|
||||
|
|
@ -9,18 +9,28 @@ Kita theme support $\LaTeX$ mathematical formulas using [KaTeX](https://katex.or
|
|||
|
||||
<!--more-->
|
||||
|
||||
- To enable KaTeX globally set the parameter `extra.math` to `true` in a project's configuration
|
||||
- To enable KaTeX on a per page basis include the parameter `extra.math = true` in content files
|
||||
- To enable KaTeX globally, set the parameter `extra.math` to `true` in a project's configuration.
|
||||
- To enable KaTeX on a per page basis, include the parameter `extra.math = true` in the frontmatter of content files.
|
||||
|
||||
**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html)
|
||||
**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html).
|
||||
|
||||
### Examples
|
||||
|
||||
<p>
|
||||
Inline math: $(varphi = dfrac{1+sqrt5}{2}= 1.6180339887…)$
|
||||
</p>
|
||||
#### Inline math
|
||||
|
||||
Block math:
|
||||
```markdown
|
||||
When $x = \pi$, Euler's formula may be rewritten as $e^{i \pi} + 1 = 0$.
|
||||
```
|
||||
|
||||
When $x = \pi$, Euler's formula may be rewritten as $e^{i \pi} + 1 = 0$.
|
||||
|
||||
#### Block math
|
||||
|
||||
```markdown
|
||||
$$
|
||||
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
|
||||
$$
|
||||
```
|
||||
|
||||
$$
|
||||
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue