summaryrefslogtreecommitdiff
path: root/tests/suite/math/alignment.typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/suite/math/alignment.typ')
-rw-r--r--tests/suite/math/alignment.typ34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/suite/math/alignment.typ b/tests/suite/math/alignment.typ
new file mode 100644
index 00000000..f110b139
--- /dev/null
+++ b/tests/suite/math/alignment.typ
@@ -0,0 +1,34 @@
+// Test implicit alignment math.
+
+--- math-align-weird ---
+// Test alignment step functions.
+#set page(width: 225pt)
+$
+"a" &= c \
+&= c + 1 & "By definition" \
+&= d + 100 + 1000 \
+&= x && "Even longer" \
+$
+
+--- math-align-post-fix ---
+// Test post-fix alignment.
+$
+& "right" \
+"a very long line" \
+"left" \
+$
+
+--- math-align-implicit ---
+// Test no alignment.
+$
+"right" \
+"a very long line" \
+"left" \
+$
+
+--- math-align-toggle ---
+// Test #460 equations.
+$
+a &=b & quad c&=d \
+e &=f & g&=h
+$