mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
31 lines
400 B
Typst
31 lines
400 B
Typst
// Test document and page-level styles.
|
|
|
|
---
|
|
// This is okay.
|
|
// Ref: false
|
|
#set document(title: "Hello")
|
|
|
|
---
|
|
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()
|
|
]
|