diff options
Diffstat (limited to 'tests/typ/math')
| -rw-r--r-- | tests/typ/math/syntax.typ | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/typ/math/syntax.typ b/tests/typ/math/syntax.typ new file mode 100644 index 00000000..79c306a2 --- /dev/null +++ b/tests/typ/math/syntax.typ @@ -0,0 +1,24 @@ +#set page(width: auto) +#set text("Latin Modern Roman") +#show <table>: it => table( + columns: 2, + padding: 8pt, + ..it.text + .split("\n") + .map(line => (text(10pt, raw(line, lang: "typ")), eval(line) + [ ])) + .flatten() +) + +``` +Let $x in NN$ be ... +$ (1 + x/2)^2 $ +$ x arrow:l y $ +$ sum_(n=1)^mu 1 + (2pi (5 + n)) / k $ +$ { x in RR | x "is natural" and x < 10 } $ +$ sqrt(x^2) = frac(x, 1) $ +$ "profit" = "income" - "expenses" $ +$ x < #for i in range(5) [$ #i < $] y $ +$ 1 + 2 = #{1 + 2} $ +$ A sub:eq:not B $ +``` +<table> |
