summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLeedehai <18319900+Leedehai@users.noreply.github.com>2024-05-15 03:48:35 -0400
committerLaurenz <laurmaedje@gmail.com>2024-05-17 15:34:20 +0200
commitf535d90b7e46ef27b2b77c42fae2473d22d75027 (patch)
treee07c3acc00a276857792dd640b8ec105dc98aa90 /tests
parent1b405832a3e63fdcfd75defbac56b5a41cb3e846 (diff)
`show math.equation: set align(..)` shall not break alignment points (#4094)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/issue-3973-math-equation-align.pngbin0 -> 2240 bytes
-rw-r--r--tests/suite/math/alignment.typ17
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/ref/issue-3973-math-equation-align.png b/tests/ref/issue-3973-math-equation-align.png
new file mode 100644
index 00000000..91b48849
--- /dev/null
+++ b/tests/ref/issue-3973-math-equation-align.png
Binary files differ
diff --git a/tests/suite/math/alignment.typ b/tests/suite/math/alignment.typ
index f110b139..63033ef5 100644
--- a/tests/suite/math/alignment.typ
+++ b/tests/suite/math/alignment.typ
@@ -32,3 +32,20 @@ $
a &=b & quad c&=d \
e &=f & g&=h
$
+
+--- issue-3973-math-equation-align ---
+// In this bug, the alignment set with "show math.equation: set align(...)"
+// overrides the left-right alternating behavior of alignment points.
+#let equations = [
+$ a + b &= c \
+ e &= f + g + h $
+$ a &= b + c \
+ e + f + g &= h $
+]
+#equations
+
+#show math.equation: set align(start)
+#equations
+
+#show math.equation: set align(end)
+#equations