summaryrefslogtreecommitdiff
path: root/tests/typ/layout/par-indent.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-03-14 22:30:21 +0100
committerLaurenz <laurmaedje@gmail.com>2023-03-14 22:30:21 +0100
commit2bacbaf2bdf93f5537040bdeecf8d73ec06f7eae (patch)
tree8cd688210530dedd6a42cce01629a67e255cdc46 /tests/typ/layout/par-indent.typ
parent724e9b140cc0a87208aa9c4914b1b8aeddf25c30 (diff)
Hanging indent
Diffstat (limited to 'tests/typ/layout/par-indent.typ')
-rw-r--r--tests/typ/layout/par-indent.typ19
1 files changed, 17 insertions, 2 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)
+لآن وقد أظلم الليل وبدأت النجوم
+تنضخ وجه الطبيعة التي أعْيَتْ من طول ما انبعثت في النهار