mirror of
https://github.com/typst/typst
synced 2025-05-18 11:05:28 +08:00
22 lines
406 B
Typst
22 lines
406 B
Typst
|
|
---
|
|
#set page(width: 180pt)
|
|
#set par(
|
|
lang: "en",
|
|
justify: true,
|
|
indent: 14pt,
|
|
spacing: 0pt,
|
|
leading: 5pt,
|
|
)
|
|
|
|
This text is justified, meaning that spaces are stretched so that the text
|
|
forms a "block" with flush edges at both sides.
|
|
|
|
First line indents and hyphenation play nicely with justified text.
|
|
|
|
---
|
|
// Test that lines with hard breaks aren't justified.
|
|
#set par(justify: true)
|
|
A B C \
|
|
D
|