diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-11-20 18:31:23 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-11-20 18:31:29 +0100 |
| commit | c1bc529986f723f8bb06feedfbdc98520763ceb9 (patch) | |
| tree | 857eae7762d9d5a41b2f1351e4f6aadeb4160cd6 /tests/typ/meta/document.typ | |
| parent | b5956ca3f123085ddd9c6b518443b6a85509ded6 (diff) | |
Support arbitrary content for document title
For PDF, they will be immediately turned into plain text. However, it's still useful because templates can now accept content titles (with math or such things) instead of forcing strings because of set document. Moreover, it will be useful with "get rules" in the future.
Diffstat (limited to 'tests/typ/meta/document.typ')
| -rw-r--r-- | tests/typ/meta/document.typ | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/typ/meta/document.typ b/tests/typ/meta/document.typ index 43e4ca39..33c15dbc 100644 --- a/tests/typ/meta/document.typ +++ b/tests/typ/meta/document.typ @@ -2,7 +2,7 @@ --- // This is okay. -#set document(title: "Hello") +#set document(title: [Hello]) What's up? --- @@ -24,7 +24,7 @@ What's up? Hello // Error: 2-30 document set rules must appear before any content -#set document(title: "Hello") +#set document(title: [Hello]) --- // Error: 10-12 can only be used in set rules @@ -33,7 +33,7 @@ Hello --- #box[ // Error: 4-32 document set rules are not allowed inside of containers - #set document(title: "Hello") + #set document(title: [Hello]) ] --- |
