mirror of
https://github.com/typst/typst
synced 2025-05-19 03:25:27 +08:00
34 lines
726 B
Typst
34 lines
726 B
Typst
// Test line breaks.
|
|
|
|
---
|
|
// Test overlong word that is not directly after a hard break.
|
|
This is a spaceexceedinglylongy.
|
|
|
|
---
|
|
// Test two overlong words in a row.
|
|
Supercalifragilisticexpialidocious Expialigoricmetrioxidation.
|
|
|
|
---
|
|
// Test that there are no unwanted line break opportunities on run change.
|
|
This is partly emp#emph[has]ized.
|
|
|
|
---
|
|
Hard \ break.
|
|
|
|
---
|
|
// Test hard break directly after normal break.
|
|
Hard break directly after \ normal break.
|
|
|
|
---
|
|
// Test consecutive breaks.
|
|
Two consecutive \ \ breaks and three \ \ \ more.
|
|
|
|
---
|
|
// Test forcing an empty trailing line.
|
|
Trailing break \ \
|
|
|
|
---
|
|
// Test soft breaks.
|
|
#set par(justify: true)
|
|
With a soft \+ break you can force a break without breaking justification.
|