summaryrefslogtreecommitdiff
path: root/tests/typ/layout/page-number-align.typ
blob: 7559dd6594d658a5e10f8f6ff1e479425050229d (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
// Test page number alignment.

---
#set page(
  height: 100pt,
  margin: 30pt,
  numbering: "(1)",
  number-align: top + right,
)

#block(width: 100%, height: 100%, fill: aqua.lighten(50%))

---
#set page(
  height: 100pt,
  margin: 30pt,
  numbering: "[1]",
  number-align: bottom + left,
)

#block(width: 100%, height: 100%, fill: aqua.lighten(50%))

---
// Error: 25-39 expected `top` or `bottom`, found horizon
#set page(number-align: left + horizon)