summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-03-18 19:28:03 +0100
committerLaurenz <laurmaedje@gmail.com>2023-03-18 19:54:00 +0100
commitc7f4d6b12ee3138c752402889eeaa603ac69351d (patch)
treee8d13a7c0831ca06bcc7f356a67ee999f66e75af /tests/typ
parenta69b5874558eb50c96293813cbe67aac38174644 (diff)
Equation numbering
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/math/numbering.typ11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/typ/math/numbering.typ b/tests/typ/math/numbering.typ
new file mode 100644
index 00000000..71049a09
--- /dev/null
+++ b/tests/typ/math/numbering.typ
@@ -0,0 +1,11 @@
+// Test equation numbering.
+
+---
+#set page(width: 150pt)
+#set math.equation(numbering: "(I)")
+
+We define $x$ in preparation of @fib:
+$ phi.alt := (1 + sqrt(5)) / 2 $ <ratio>
+
+With @ratio, we get
+$ F_n = floor(1 / sqrt(5) phi.alt^n) $ <fib>