diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-06 12:37:08 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-06 12:37:08 +0100 |
| commit | 3ecb0c754bc1777e002a43e4c34b27e676f9a95c (patch) | |
| tree | 49dd299b6671058dd47b7dae84b748f117a962d3 /tests/typ | |
| parent | c2e458a133772a94009733040b39d58e781af977 (diff) | |
More math syntax
Diffstat (limited to 'tests/typ')
| -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> |
