From c1bc529986f723f8bb06feedfbdc98520763ceb9 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 20 Nov 2023 18:31:23 +0100 Subject: 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. --- tests/typ/meta/document.typ | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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]) ] --- -- cgit v1.2.3