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 | |
| parent | c2e458a133772a94009733040b39d58e781af977 (diff) | |
More math syntax
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/math/simple.png | bin | 6554 -> 6555 bytes | |||
| -rw-r--r-- | tests/ref/math/syntax.png | bin | 0 -> 53462 bytes | |||
| -rw-r--r-- | tests/typ/math/syntax.typ | 24 |
3 files changed, 24 insertions, 0 deletions
diff --git a/tests/ref/math/simple.png b/tests/ref/math/simple.png Binary files differindex 902354df..72f9c1c6 100644 --- a/tests/ref/math/simple.png +++ b/tests/ref/math/simple.png diff --git a/tests/ref/math/syntax.png b/tests/ref/math/syntax.png Binary files differnew file mode 100644 index 00000000..eaf18528 --- /dev/null +++ b/tests/ref/math/syntax.png 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> |
