summaryrefslogtreecommitdiff
path: root/tests/typ/layout/enum.typ
blob: f9fe2648ec3be7e507d3402a501f559d6c8878d8 (plain) (blame)
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
45
46
47
48
// Test enumerations.

---
#enum[Embrace][Extend][Extinguish]

---
0. Before first!
1. First.
   2. Indented

+ Second

---
// Test automatic numbering in summed content.
#for i in range(5) {
   [+ #numbering("I", 1 + i)]
}

---
// Mix of different lists
- Bullet List
+ Numbered List
/ Term: List

---
// In the line.
1.2 \
This is 0. \
See 0.3. \

---
// Edge cases.
+
Empty \
+Nope \
a + 0.

---
// Test item number overriding.
1. first
+ second
5. fifth

#enum(
   enum.item(1)[First],
   [Second],
   enum.item(5)[Fifth]
)