summaryrefslogtreecommitdiff
path: root/tests/typ/layout/list-attach.typ
blob: 9d043eb01dd984935af03950c891bfaa70f24d64 (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
49
50
51
52
53
54
// Test list attaching.

---
// Test basic attached list.
Attached to:
- the bottom
- of the paragraph

Next paragraph.

---
// Test that attached list isn't affected by block spacing.
#show list: set block(above: 100pt)
Hello
- A
World
- B

---
// Test non-attached list followed by attached list,
// separated by only word.
Hello

- A

World
- B

---
// Test non-attached tight list.
#set block(spacing: 15pt)
Hello
- A
World

- B
- C

More.

---
// Test that wide lists cannot be ...
#set block(spacing: 15pt)
Hello
- A

- B
World

---
// ... even if forced to.
Hello
#list(tight: false)[A][B]
World