typst/tests/typ/text/indent.typ
2022-04-30 14:12:28 +02:00

37 lines
755 B
Typst

// Test paragraph indent.
---
#set par(indent: 12pt, leading: 5pt)
#set heading(size: 10pt, above: 8pt)
The first paragraph has no indent.
But the second one does.
#image("../../res/tiger.jpg", height: 6pt)
starts a paragraph without indent.
#align(center, image("../../res/rhino.png", width: 1cm))
= Headings
- And lists.
- Have no indent.
Except if you have another paragraph in them.
#set text(8pt, lang: "ar", "Noto Sans Arabic", "IBM Plex Sans")
#set par(leading: 8pt)
= Arabic
دع النص يمطر عليك
ثم يصبح النص رطبًا وقابل للطرق ويبدو المستند رائعًا.
---
// This is madness.
#set par(indent: 12pt, spacing-and-indent: true)
Why would anybody ever ...
... want spacing and indent?