diff options
| author | Eric Biedert <github@ericbiedert.de> | 2023-09-18 14:51:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-18 14:51:34 +0200 |
| commit | b10f9ae7b7f5a15c797441d4d67ea69d2ab9b617 (patch) | |
| tree | 61a2851dbc9656a633b893d0daed1f381465d900 /tests/typ/math | |
| parent | e55348dbc090b797a94fe69fc87d45c6de92d97f (diff) | |
Fix "set align" for block equations (#2157)
Diffstat (limited to 'tests/typ/math')
| -rw-r--r-- | tests/typ/math/block-alignment.typ | 33 |
1 files changed, 33 insertions, 0 deletions
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) |
