summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/math/simple.pngbin6554 -> 6555 bytes
-rw-r--r--tests/ref/math/syntax.pngbin0 -> 53462 bytes
-rw-r--r--tests/typ/math/syntax.typ24
3 files changed, 24 insertions, 0 deletions
diff --git a/tests/ref/math/simple.png b/tests/ref/math/simple.png
index 902354df..72f9c1c6 100644
--- a/tests/ref/math/simple.png
+++ b/tests/ref/math/simple.png
Binary files differ
diff --git a/tests/ref/math/syntax.png b/tests/ref/math/syntax.png
new file mode 100644
index 00000000..eaf18528
--- /dev/null
+++ b/tests/ref/math/syntax.png
Binary files differ
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>