diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-14 22:30:21 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-14 22:30:21 +0100 |
| commit | 2bacbaf2bdf93f5537040bdeecf8d73ec06f7eae (patch) | |
| tree | 8cd688210530dedd6a42cce01629a67e255cdc46 /tests/typ | |
| parent | 724e9b140cc0a87208aa9c4914b1b8aeddf25c30 (diff) | |
Hanging indent
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/layout/par-indent.typ | 19 | ||||
| -rw-r--r-- | tests/typ/layout/par-justify.typ | 2 |
2 files changed, 18 insertions, 3 deletions
diff --git a/tests/typ/layout/par-indent.typ b/tests/typ/layout/par-indent.typ index 0cb937bf..4890e5dc 100644 --- a/tests/typ/layout/par-indent.typ +++ b/tests/typ/layout/par-indent.typ @@ -1,7 +1,7 @@ // Test paragraph indent. --- -#set par(indent: 12pt, leading: 5pt) +#set par(first-line-indent: 12pt, leading: 5pt) #set block(spacing: 5pt) #show heading: set text(size: 10pt) @@ -31,7 +31,22 @@ starts a paragraph without indent. --- // This is madness. -#set par(indent: 12pt) +#set par(first-line-indent: 12pt) Why would anybody ever ... ... want spacing and indent? + +--- +// Test hanging indent. +#set par(hanging-indent: 15pt, justify: true) +#lorem(10) + +--- +#set par(hanging-indent: 1em) +Welcome \ here. Does this work well? + +--- +#set par(hanging-indent: 2em) +#set text(dir: rtl) +لآن وقد أظلم الليل وبدأت النجوم +تنضخ وجه الطبيعة التي أعْيَتْ من طول ما انبعثت في النهار diff --git a/tests/typ/layout/par-justify.typ b/tests/typ/layout/par-justify.typ index 5a9012d1..24d3ab38 100644 --- a/tests/typ/layout/par-justify.typ +++ b/tests/typ/layout/par-justify.typ @@ -2,7 +2,7 @@ --- #set page(width: 180pt) #set block(spacing: 5pt) -#set par(justify: true, indent: 14pt, leading: 5pt) +#set par(justify: true, first-line-indent: 14pt, leading: 5pt) This text is justified, meaning that spaces are stretched so that the text forms a "block" with flush edges at both sides. |
