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/suite/math/alignment.typ | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tests/suite/math') 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