summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/text/quote.pngbin0 -> 107789 bytes
-rw-r--r--tests/typ/text/quote.typ51
2 files changed, 51 insertions, 0 deletions
diff --git a/tests/ref/text/quote.png b/tests/ref/text/quote.png
new file mode 100644
index 00000000..77e6d142
--- /dev/null
+++ b/tests/ref/text/quote.png
Binary files differ
diff --git a/tests/typ/text/quote.typ b/tests/typ/text/quote.typ
new file mode 100644
index 00000000..b815b032
--- /dev/null
+++ b/tests/typ/text/quote.typ
@@ -0,0 +1,51 @@
+// Test the quote element.
+
+---
+// Text direction affects author positioning
+And I quote: #quote(attribution: [René Descartes])[cogito, ergo sum].
+
+#set text(lang: "ar")
+#quote(attribution: [عالم])[مرحبًا]
+
+---
+// Text direction affects block alignment
+#set quote(block: true)
+#quote(attribution: [René Descartes])[cogito, ergo sum]
+
+#set text(lang: "ar")
+#quote(attribution: [عالم])[مرحبًا]
+
+---
+// Spacing with other blocks
+#set quote(block: true)
+
+#lorem(10)
+#quote(lorem(10))
+#lorem(10)
+
+---
+// Inline citation
+#bibliography("/files/works.bib")
+
+#quote(attribution: <tolkien54>)[In a hole in the ground there lived a hobbit.]
+
+---
+// Citation-format: label or numeric
+#set quote(block: true)
+#bibliography("/files/works.bib", style: "ieee")
+
+#quote(attribution: <tolkien54>)[In a hole in the ground there lived a hobbit.]
+
+---
+// Citation-format: note
+#set quote(block: true)
+#bibliography("/files/works.bib", style: "chicago-notes")
+
+#quote(attribution: <tolkien54>)[In a hole in the ground there lived a hobbit.]
+
+---
+// Citation-format: author-date or author
+#set quote(block: true)
+#bibliography("/files/works.bib", style: "apa")
+
+#quote(attribution: <tolkien54>)[In a hole in the ground there lived a hobbit.]