diff options
| author | Leedehai <18319900+Leedehai@users.noreply.github.com> | 2024-02-22 03:49:24 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-22 08:49:24 +0000 |
| commit | 0fe03bae6e154c30934d9f25037fa57e7381780f (patch) | |
| tree | 0bc6f3a38ad371140a80f6d62563349c0c5f37b4 /tests/typ/math | |
| parent | 4eab6deed6944ad5aedd41a1468ce7a3d168701e (diff) | |
Add `number-align` to `math.equation` [Better Equation Numbering Pt.2] (#3446)
Diffstat (limited to 'tests/typ/math')
| -rw-r--r-- | tests/typ/math/equation-block-align.typ (renamed from tests/typ/math/block-alignment.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/math/equation-number.typ | 96 |
2 files changed, 96 insertions, 0 deletions
diff --git a/tests/typ/math/block-alignment.typ b/tests/typ/math/equation-block-align.typ index c6c9cd89..c6c9cd89 100644 --- a/tests/typ/math/block-alignment.typ +++ b/tests/typ/math/equation-block-align.typ diff --git a/tests/typ/math/equation-number.typ b/tests/typ/math/equation-number.typ new file mode 100644 index 00000000..aefa308a --- /dev/null +++ b/tests/typ/math/equation-number.typ @@ -0,0 +1,96 @@ +// Test equation number, and its interaction with equation +// block's alignment and text direction. + +--- +#set math.equation(numbering: "(1)") + +$ a + b = c $ + +#show math.equation: set align(center) +$ a + b = c $ +#show math.equation: set align(left) +$ a + b = c $ +#show math.equation: set align(right) +$ a + b = c $ + +#set text(dir: rtl) +#show math.equation: set align(start) +$ a + b = c $ +#show math.equation: set align(end) +$ a + b = c $ + +--- +#set math.equation(numbering: "(1)", number-align: start) + +$ a + b = c $ + +#show math.equation: set align(center) +$ a + b = c $ +#show math.equation: set align(left) +$ a + b = c $ +#show math.equation: set align(right) +$ a + b = c $ + +#set text(dir: rtl) +#show math.equation: set align(start) +$ a + b = c $ +#show math.equation: set align(end) +$ a + b = c $ + +--- +#set math.equation(numbering: "(1)", number-align: end) + +$ a + b = c $ + +#show math.equation: set align(center) +$ a + b = c $ +#show math.equation: set align(left) +$ a + b = c $ +#show math.equation: set align(right) +$ a + b = c $ + +#set text(dir: rtl) +#show math.equation: set align(start) +$ a + b = c $ +#show math.equation: set align(end) +$ a + b = c $ + +--- +#set math.equation(numbering: "(1)", number-align: left) + +$ a + b = c $ + +#show math.equation: set align(center) +$ a + b = c $ +#show math.equation: set align(left) +$ a + b = c $ +#show math.equation: set align(right) +$ a + b = c $ + +#set text(dir: rtl) +#show math.equation: set align(start) +$ a + b = c $ +#show math.equation: set align(end) +$ a + b = c $ + +--- +#set math.equation(numbering: "(1)", number-align: right) + +$ a + b = c $ + +#show math.equation: set align(center) +$ a + b = c $ +#show math.equation: set align(left) +$ a + b = c $ +#show math.equation: set align(right) +$ a + b = c $ + +#set text(dir: rtl) +#show math.equation: set align(start) +$ a + b = c $ +#show math.equation: set align(end) +$ a + b = c $ + +--- +// Error: 52-58 expected `start`, `left`, `right`, or `end`, found center +#set math.equation(numbering: "(1)", number-align: center) |
