Oregami
Repositories/oxedyne/fe2o3

oxedyne/fe2o3/fe2o3_austenite/tests/fixtures/eval/model/construct.txt

3.8 KiB, 1 run

created by r1870400018:64666, which is this file's identity for as long as the history lasts, whatever it is later renamed to

download · who wrote it · its history

1;; U5: each line is Typst code evaluated by `typst eval` and by Austenite in code mode; the value (as
2;; JSON) or the first error message must agree. Lines starting with ;; are comments. `%%[U3]` marks a case
3;; that needs U3's library; `%%[CSL]` one that needs a CSL processor, which Austenite does not have.
4heading[A]
5heading(level: 2)[A]
6heading(depth: 3, offset: 1, numbering: "1.a", outlined: false, bookmarked: true, hanging-indent: 1em)[B]
7heading(supplement: [Chapter])[C]
8heading(supplement: none)[C]
9%%[U3] heading(sym.arrow)
10heading(none)
11heading("text")
12heading(level: "a")[x]
13heading(level: 0)[x]
14heading(numbering: 5)[x]
15heading(supplement: 5)[x]
16heading()
17heading(depth: 0)[x]
18heading(offset: -1)[x]
19heading(hanging-indent: 5)[x]
20heading(5)
21heading(1.5)
22heading(outlined: 1)[x]
23heading(bookmarked: 1)[x]
24heading[a][b]
25title[My Title]
26title()
27title(5)
28par[text]
29par(leading: 1em, spacing: 2em, justify: true, linebreaks: "simple", hanging-indent: 3pt)[p]
30par(first-line-indent: 1em)[p]
31par(first-line-indent: (amount: 1em, all: true))[p]
32par(linebreaks: "x")[a]
33par(first-line-indent: (a: 1pt))[a]
34par(justify: 1)[a]
35par.line()
36parbreak()
37strong[a]
38strong(delta: 100)[a]
39strong(delta: "a")[x]
40strong(5)
41emph[a]
42emph()
43raw("code")
44raw("fn main() {}", lang: "rust", block: true)
45%%[U3] raw("x", align: center, tab-size: 4)
46raw(5)
47%%[U3] raw("x", align: top)
48raw("x", tab-size: -1)
49raw.line(1, 1, "a", [a])
50list[a][b]
51list([a], "b")
52list(tight: false, indent: 1em, body-indent: 1em, spacing: 2pt, marker: [-])[a]
53list(marker: ([a], [b]))[x]
54%%[U3] list(marker-align: left)[x]
55list(marker: ())
56list(tight: 1)
57list(5)
58list(indent: 1)
59list(marker-align: 5)
60list(marker: 5)
61list(spacing: 5)
62list.item[a]
63enum[a][b]
64enum(numbering: "a)", start: 3, full: true, reversed: true)[x]
65enum(enum.item(5)[x], [y])
66enum.item(2)[x]
67enum(start: -1)
68enum.item(-1)[x]
69enum(numbering: 3)
70enum.item("x")[a]
71enum(full: 1)
72terms(terms.item[a][b])
73terms(terms.item[a][b], separator: [: ], hanging-indent: 1em)
74terms.item[a]
75terms([a])
76terms.item(1,2)
77terms(separator: 5)
78link("https://typst.app")
79link("mailto:a@b.c")
80link("tel:123")
81link("https://x.org")[X]
82link(<lbl>)[L]
83link((page: 1, x: 0pt, y: 0pt))[P]
84link(5)
85link("")
86link(<a>)
87link("x", 5)
88ref(<a>)
89ref(<a>, supplement: [Fig.], form: "page")
90ref(5)
91ref(<a>, form: "x")
92ref(<a>, supplement: 5)
93cite(<a>)
94cite(<a>, supplement: [p. 5], form: "prose")
95cite(<a>, form: none)
96cite("x")
97cite(<a>, form: "x")
98cite(<a>, style: "foo")
99%%[CSL] cite(<a>, style: "apa")
100cite(<a>, style: "institute-of-electrical-and-electronics-engineers")
101bibliography(5, style: "chicago-author-date")
102footnote[note]
103footnote(<a>)
104footnote("s")
105footnote(numbering: "*")[x]
106footnote(5pt)
107footnote(numbering: 5)[x]
108footnote.entry[x]
109footnote.entry(footnote[x], gap: 1em, clearance: 2em, indent: 0pt)
110figure[x]
111%%[U3] figure(rect(), caption: [Cap], placement: top, scope: "parent", gap: 1em, kind: table, supplement: [Tab], numbering: "I", outlined: false, alt: "Alt")
112%%[U3] figure([x], caption: figure.caption(position: top, separator: [ -- ])[C])
113figure([x], kind: "diagram", supplement: [Diagram])
114figure(5)
115figure(kind: 5)[x]
116%%[U3] figure(placement: left)[x]
117figure(scope: "x")[x]
118figure(caption: 5)[x]
119%%[U3] figure.caption(position: left)[x]
120figure([a], supplement: 5)
121figure([x], gap: 1)
122figure(alt: 5)[x]
123figure(numbering: 5)[x]
124figure(outlined: 1)[x]
125figure.caption(separator: 5)[x]
126figure.caption(5)
127outline()
128outline(title: [TOC], target: figure, depth: 2, indent: 2em)
129outline(target: <x>)
130outline(indent: n => n * 1em)
131outline(target: 5)
132outline(depth: 0)
133outline(indent: "x")
134outline(title: 5)
135outline.entry(1, [x])
136outline.entry(0, [x])
137outline.entry(1, [x], fill: none)
138outline.entry(1,[x], fill: 5)
139quote[Q]
140quote(block: true, quotes: false, attribution: [Me])[Q]
141quote(attribution: <src>)[Q]
142quote(attribution: 5)[x]
143quote(quotes: 1)[x]
144quote(block: 1)[x]
145quote(5)
146bibliography(5)
147document()