File: math.test

package info (click to toggle)
haskell-djot 0.1.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 560 kB
  • sloc: haskell: 3,440; makefile: 3
file content (44 lines) | stat: -rw-r--r-- 707 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Math goes in verbatim spans prefixed with either `$` (for
inline math) or `$$` (for display math).

```
$`e=mc^2`
.
<p><span class="math inline">\(e=mc^2\)</span></p>
```

```
My equation: $`e=mc^2`
.
<p>My equation: <span class="math inline">\(e=mc^2\)</span></p>
```

```
$$`e=mc^2`
.
<p><span class="math display">\[e=mc^2\]</span></p>
```

```
My equation: $$`e=mc^2`
.
<p>My equation: <span class="math display">\[e=mc^2\]</span></p>
```

Newlines are allowed, just as in verbatim:

```
$`e=
mc^2`
.
<p><span class="math inline">\(e=
mc^2\)</span></p>
```

`$` characters are allowed inside:

```
$`e=\text{the number $\pi$}`
.
<p><span class="math inline">\(e=\text{the number $\pi$}\)</span></p>
```