42 lines
785 B
Typst
42 lines
785 B
Typst
// 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
|