mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
34 lines
692 B
Typst
34 lines
692 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-18 show is only allowed directly in code and content blocks
|
|
{ (show body => 2) * body }
|