summaryrefslogtreecommitdiff
path: root/tests/typ/text
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/text')
-rw-r--r--tests/typ/text/indent.typ28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/typ/text/indent.typ b/tests/typ/text/indent.typ
new file mode 100644
index 00000000..97eae190
--- /dev/null
+++ b/tests/typ/text/indent.typ
@@ -0,0 +1,28 @@
+// Test paragraph indent.
+
+---
+#set par(indent: 12pt, leading: 5pt, spacing: 0pt)
+#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, "Noto Sans Arabic")
+#set par(lang: "ar", leading: 8pt)
+
+= Arabic
+دع النص يمطر عليك
+
+ثم يصبح النص رطبًا وقابل للطرق ويبدو المستند رائعًا.