From b10f9ae7b7f5a15c797441d4d67ea69d2ab9b617 Mon Sep 17 00:00:00 2001 From: Eric Biedert Date: Mon, 18 Sep 2023 14:51:34 +0200 Subject: Fix "set align" for block equations (#2157) --- tests/typ/math/block-alignment.typ | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tests/typ/math/block-alignment.typ (limited to 'tests/typ/math') diff --git a/tests/typ/math/block-alignment.typ b/tests/typ/math/block-alignment.typ new file mode 100644 index 00000000..c6c9cd89 --- /dev/null +++ b/tests/typ/math/block-alignment.typ @@ -0,0 +1,33 @@ +// Test alignment of block equations. + +--- +// Test unnumbered +#let eq(alignment) = { + show math.equation: set align(alignment) + $ a + b = c $ +} + +#eq(center) +#eq(left) +#eq(right) + +#set text(dir: rtl) +#eq(start) +#eq(end) + +--- +// Test numbered +#let eq(alignment) = { + show math.equation: set align(alignment) + $ a + b = c $ +} + +#set math.equation(numbering: "(1)") + +#eq(center) +#eq(left) +#eq(right) + +#set text(dir: rtl) +#eq(start) +#eq(end) -- cgit v1.2.3