typst/tests/typ/style/wrap.typ
Laurenz 8d1ce390e2 Rework strong and emph
- Star and underscore not parsed as strong/emph inside of words
- Stars/underscores must be balanced and they cannot go over paragraph break
- New `strong` and `emph` classes
2022-01-30 22:46:59 +01:00

30 lines
625 B
Typst

// Test wrap.
---
#set page(height: 130pt)
#set text(70%)
#align(center)[
#text(130%)[*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 template.
A [_B #wrap c in [*#c*]; C_] D
---
// Test wrap style precedence.
#set text(fill: eastern, size: 150%)
#wrap body in text(fill: forest, body)
Forest
---
// Error: 6-17 wrap is only allowed directly in markup
{1 + wrap x in y}