summaryrefslogtreecommitdiff
path: root/tests/typ/code/include.typ
blob: 945a041d3846d8da40f4ac2dcf818d9b841399e3 (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
// Test include statements.

---
# Document

// Include a file
#include "importable/chap1.typ"

// The variables of the file should not appear in this scope.
// Error: 1-6 unknown variable
#name

// Expression as a file name.
#let chap2 = include "import" + "able/chap" + "2.typ"

_ -- Intermission -- _
#chap2

{
    // Expressions, code mode.
    // Error: 21-43 file not found
    let x = include "importable/chap3.typ"
}