diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-02-15 10:41:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-15 09:41:27 +0000 |
| commit | aabb4b5ecf67a5b51b0e550f0b06087465f4ba75 (patch) | |
| tree | e7dd89965f75a234160e7c8f70b9a4478a8fbc5b /tests/typ | |
| parent | 79e37ccbac080212dc42e996d760664c75d1a56f (diff) | |
Better quote selection (#3422)
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/text/quote-nesting.typ | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/typ/text/quote-nesting.typ b/tests/typ/text/quote-nesting.typ new file mode 100644 index 00000000..381aaa56 --- /dev/null +++ b/tests/typ/text/quote-nesting.typ @@ -0,0 +1,27 @@ +// Test quote nesting. + +--- +// Test quote selection. +#set page(width: auto) +#set text(lang: "en") +=== EN +#quote[An apostroph'] \ +#quote[A #quote[nested] quote] \ +#quote[A #quote[very #quote[nested]] quote] + +#set text(lang: "de") +=== DE +#quote[Satz mit Apostroph'] \ +#quote[Satz mit #quote[Zitat]] \ +#quote[A #quote[very #quote[nested]] quote] + +#set smartquote(alternative: true) +=== DE Alternative +#quote[Satz mit Apostroph'] \ +#quote[Satz mit #quote[Zitat]] \ +#quote[A #quote[very #quote[nested]] quote] + +--- +// With custom quotes. +#set smartquote(quotes: (single: ("<", ">"), double: ("(", ")"))) +#quote[A #quote[nested] quote] |
