Blame

3327f9 Ralph Thesen 2023-11-20 23:26:28 1
# MathJax
2
3
For people that want to put mathematics in their wiki, [MathJax](https://www.mathjax.org/)
4
comes to the rescue. Since there is no markdown standard for LaTeX, multiple syntax
5
styles have been established. An Otter Wiki supports two of them:
6
7
## TeX Style
8
9
The TeX style notation, where inline math is encapsulated with `$` and
10
equations with `$$`, e.g.
11
12
When $a \ne 0$, there are two solutions
13
to $ax^2 + bx + c = 0$ and they are
14
15
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
16
17
When $a \ne 0$, there are two solutions to $ax^2 + bx + c = 0$ and they are
18
19
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
20
21
## Code Style
22
23
The Code style, where inline math is encapsulated with
24
`` `$` `` and equations with in code blocks with language `math`, e.g.
25
26
When `$a \ne 0$`, there are two solutions
27
to `$ax^2 + bx + c = 0$` and they are
28
29
```math
30
x = {-b \pm \sqrt{b^2-4ac} \over 2a}.
31
```
32
33
When `$a \ne 0$`, there are two solutions to `$ax^2 + bx + c = 0$` and they are
34
```math
35
x = {-b \pm \sqrt{b^2-4ac} \over 2a}.
36
```