summaryrefslogtreecommitdiff
path: root/tests/typ/compiler/show-bare.typ
blob: 210f072dd3866cca59f5fbf97e2e6c4a4dce56f9 (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
// Test bare show without selector.

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

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

#show: columns.with(2)
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 bare show in content block.
A #[_B #show: c => [*#c*]; C_] D

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

---
#show: [Shown]
Ignored

---
// Error: 4-19 show is only allowed directly in code and content blocks
#((show: body => 2) * body)

---
// Error: 6 expected colon
#show it => {}

---
// Error: 6 expected colon
#show it