summaryrefslogtreecommitdiff
path: root/tests/typ/style/wrap.typ
blob: 2a9074cb09b4311e299e682f7de6b62a7d5753e6 (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
// Test wrap.

---
#set page(height: 130pt)
#set text(0.7em)

#align(center)[
  #text(1.3em)[*Essay on typography*] \
  T. Ypst
]

#wrap body in columns(2, body)
Great typography is at the essence of great storytelling. It is the medium that
transports meaning from parchment to reader, the wave that sparks a flame
in booklovers and the great fulfiller of human need.

---
// Test wrap in content block.
A [_B #wrap c in [*#c*]; C_] D

---
// Test wrap style precedence.
#set text(fill: eastern, size: 1.5em)
#wrap body in text(fill: forest, body)
Forest

---
// Error: 6-17 set, show and wrap are only allowed directly in markup
{1 + wrap x in y}