blob: 33c15dbce82e3e1f0c5dfef51a8704bc47ffe151 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
// Test document and page-level styles.
---
// This is okay.
#set document(title: [Hello])
What's up?
---
// This, too.
// Ref: false
#set document(author: ("A", "B"), date: datetime.today())
---
// Error: 21-28 expected datetime, none, or auto, found string
#set document(date: "today")
---
// This, too.
// Error: 23-29 expected string, found integer
#set document(author: (123,))
What's up?
---
Hello
// Error: 2-30 document set rules must appear before any content
#set document(title: [Hello])
---
// Error: 10-12 can only be used in set rules
#document()
---
#box[
// Error: 4-32 document set rules are not allowed inside of containers
#set document(title: [Hello])
]
---
#box[
// Error: 4-18 page configuration is not allowed inside of containers
#set page("a4")
]
---
#box[
// Error: 4-15 pagebreaks are not allowed inside of containers
#pagebreak()
]
|