From 49c0bac44dda8be643480df2c4e68623eeec91bd Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 24 Feb 2022 18:47:43 +0100 Subject: First-line indents Co-Authored-By: Martin Haug --- tests/ref/text/indent.png | Bin 0 -> 37966 bytes tests/typ/text/indent.typ | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 tests/ref/text/indent.png create mode 100644 tests/typ/text/indent.typ (limited to 'tests') diff --git a/tests/ref/text/indent.png b/tests/ref/text/indent.png new file mode 100644 index 00000000..42f05cfb Binary files /dev/null and b/tests/ref/text/indent.png differ 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 +دع النص يمطر عليك + +ثم يصبح النص رطبًا وقابل للطرق ويبدو المستند رائعًا. -- cgit v1.2.3