summaryrefslogtreecommitdiff
path: root/tests/typ/layout/math.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-03 16:50:26 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-03 16:50:26 +0100
commit33928a00dc58250e24da1dae4e5db17e7b598d70 (patch)
tree451083aa64f57b442359875b0415541463cb1a0c /tests/typ/layout/math.typ
parent46921a8c283718402322d4d09c0bd1d9194278b1 (diff)
Tidy up library
Diffstat (limited to 'tests/typ/layout/math.typ')
-rw-r--r--tests/typ/layout/math.typ20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/typ/layout/math.typ b/tests/typ/layout/math.typ
new file mode 100644
index 00000000..55a853cf
--- /dev/null
+++ b/tests/typ/layout/math.typ
@@ -0,0 +1,20 @@
+// Test math formulas.
+
+---
+The sum of $a$ and $b$ is $a + b$.
+
+---
+We will show that:
+$ a^2 + b^2 = c^2 $
+
+---
+Prove by induction:
+$ sum_(k=0)^n k = (n(n+1))/2 $
+
+---
+// Test that blackboard style looks nice.
+$ f: NN arrow RR $
+
+---
+// Error: 1:3 expected dollar sign
+$a