typst/tests/typ/meta/document.typ
2023-02-24 14:09:38 +01:00

42 lines
571 B
Typst

// 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"))
---
// This, too.
// Error: 23-29 expected string, found integer
#set document(author: (123,))
What's up?
---
Hello
// Error: 2-30 must appear before any content
#set document(title: "Hello")
---
#box[
// Error: 4-32 not allowed here
#set document(title: "Hello")
]
---
#box[
// Error: 4-18 not allowed here
#set page("a4")
]
---
#box[
// Error: 4-15 not allowed here
#pagebreak()
]