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