summaryrefslogtreecommitdiff
path: root/tests/typ/layout/spacing.typ
blob: 7cf6760fa72ac6b697bc5100c07434009b7472f9 (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
// Test the `h` and `v` functions.

---
// Ends paragraphs.
Tightly #v(0pt) packed

// Eating up soft spacing.
Inv #h(0pt) isible

// Multiple spacings in a row.
Add #h(10pt) #h(10pt) up

// Relative to area.
#let x = 25% - 4pt
| #h(x) | #h(x) | #h(x) | #h(x) |

// Fractional.
| #h(1fr) | #h(2fr) | #h(1fr) |

---
// Missing spacing.
// Error: 11-13 missing argument: spacing
Totally #h() ignored