From 484a0e60d8087fac38b98f697b68f2dd4e829d59 Mon Sep 17 00:00:00 2001 From: Leedehai <18319900+Leedehai@users.noreply.github.com> Date: Wed, 15 May 2024 03:48:35 -0400 Subject: `show math.equation: set align(..)` shall not break alignment points (#4094) --- tests/ref/issue-3973-math-equation-align.png | Bin 0 -> 2240 bytes tests/suite/math/alignment.typ | 17 +++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 tests/ref/issue-3973-math-equation-align.png (limited to 'tests') 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 Binary files /dev/null and b/tests/ref/issue-3973-math-equation-align.png 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 -- cgit v1.2.3