oxedyne/fe2o3/fe2o3_austenite/tests/fixtures/eval/foundation/math.txt
2.1 KiB, 1 run
created by r1870400018:63840, 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 | // The `math` module: its own functions, and the `sym` symbols a maths-mode name reaches. |
| 2 | str(type(math)) |
| 3 | repr(math.alpha) |
| 4 | repr(math.pi) |
| 5 | math.arrow |
| 6 | math.arrow.r.double |
| 7 | math.chevron.l |
| 8 | math.sum |
| 9 | math.dots.h |
| 10 | type(math.equation) |
| 11 | type(math.frac) |
| 12 | type(math.vec) |
| 13 | math.equation.where(block: true) |
| 14 | repr(math.mat) |
| 15 | !math.sym |
| 16 | !math.nothing_here |
| 17 | // A call in maths mode: a function, a symbol that is an accent or a delimiter, anything else. |
| 18 | repr($ sqrt(x) $) |
| 19 | repr($ root(3, x) $) |
| 20 | repr($ vec(a, b) $) |
| 21 | repr($ mat(1, 2; 3, 4) $) |
| 22 | repr($ mat(delim: "[", 1, 2; 3, 4) $) |
| 23 | repr($ mat(1, delim: "[", 2; 3, 4) $) |
| 24 | repr($ frac(a, b) $) |
| 25 | repr($ binom(n, k, m) $) |
| 26 | repr($ cases(a "if" b, c) $) |
| 27 | repr($ hat(x) $) |
| 28 | repr($ arrow(v) $) |
| 29 | repr($ floor(x) $) |
| 30 | repr($ abs(x) $) |
| 31 | repr($ lr(( x )) $) |
| 32 | repr($ f(x) $) |
| 33 | repr($ alpha(x, y) $) |
| 34 | repr($ sin(x) $) |
| 35 | repr($ lim(a; b) $) |
| 36 | repr($ arrow.r $) |
| 37 | repr($ arrow.r.double(x) $) |
| 38 | repr($ vec(..#(([a], [b]))) $) |
| 39 | repr($ f'(x) + g''(x) $) |
| 40 | repr($ x^2_i' $) |
| 41 | !$ frac(a) $ |
| 42 | !$ foo(x) $ |
| 43 | !$ alpha(x: 1) $ |
| 44 | !$ alpha(..x) $ |
| 45 | !$ arrow.nothing $ |
| 46 | // The elements a call builds, with their fields as Typst stores them. |
| 47 | repr($ frac(a, b, style: "skewed") $) |
| 48 | repr($ cancel(x, angle: #45deg, length: #50%) $) |
| 49 | repr($ accent(a, "^", size: #50%) $) |
| 50 | repr($ accent(a, arrow) $) |
| 51 | repr($ overline(x) + underline(y) + overbrace(x, "t") + underbracket(y) $) |
| 52 | repr($ attach(a, tl: 1, tr: 2, t: 3, b: 4, bl: 5, br: 6) $) |
| 53 | repr($ scripts(sum) + limits(lim) $) |
| 54 | repr($ stretch(arrow.r, size: #200%) $) |
| 55 | repr($ op("x", limits: #true) $) |
| 56 | repr($ class("relation", x) $) |
| 57 | repr($ cases(delim: "[", a, b) $) |
| 58 | repr($ cases(reverse: #true, a, b) $) |
| 59 | repr($ vec(delim: #none, a, b) $) |
| 60 | repr($ mat(delim: #("[", none), 1; 2) $) |
| 61 | repr($ bold(x) + upright(y) + italic(z) + cal(A) + scr(B) + frak(C) + mono(D) + bb(E) + sans(F) + serif(G) $) |
| 62 | repr($ display(x) + inline(y) + script(z) + sscript(w) $) |
| 63 | repr($ round(x) + abs(x) + norm(y) + ceil(z) $) |
| 64 | repr($ lr(a + b, size: #50%) $) |
| 65 | repr($ mat(augment: #1, 1, 2; 3, 4) $) |
| 66 | repr($ mat(augment: #(vline: 1, stroke: red), 1, 2; 3, 4) $) |
| 67 | repr($ mat(gap: #2pt, 1, 2; 3, 4) $) |
| 68 | repr($ vec(gap: #2pt, align: #left, a, b) $) |