diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/math/block-alignment.png | bin | 0 -> 5167 bytes | |||
| -rw-r--r-- | tests/typ/math/block-alignment.typ | 33 |
2 files changed, 33 insertions, 0 deletions
diff --git a/tests/ref/math/block-alignment.png b/tests/ref/math/block-alignment.png Binary files differnew file mode 100644 index 00000000..608cef17 --- /dev/null +++ b/tests/ref/math/block-alignment.png 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) |
