diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-04-13 10:39:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-13 08:39:45 +0000 |
| commit | 020294fca9a7065d4b9cf4e677f606ebaaa29b00 (patch) | |
| tree | c0027ad22046e2726c22298461327823d6b88d53 /tests/typ/math/equation-number.typ | |
| parent | 72dd79210602ecc799726fc096b078afbb47f299 (diff) | |
Better test runner (#3922)
Diffstat (limited to 'tests/typ/math/equation-number.typ')
| -rw-r--r-- | tests/typ/math/equation-number.typ | 145 |
1 files changed, 0 insertions, 145 deletions
diff --git a/tests/typ/math/equation-number.typ b/tests/typ/math/equation-number.typ deleted file mode 100644 index 3de611b3..00000000 --- a/tests/typ/math/equation-number.typ +++ /dev/null @@ -1,145 +0,0 @@ -// 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) - ---- -// Error: 52-67 expected `start`, `left`, `right`, or `end`, found center -#set math.equation(numbering: "(1)", number-align: center + bottom) - ---- -#set math.equation(numbering: "(1)") - -$ p &= ln a b \ - &= ln a + ln b $ - ---- -#set math.equation(numbering: "(1)", number-align: top+start) - -$ p &= ln a b \ - &= ln a + ln b $ - ---- -#show math.equation: set align(left) -#set math.equation(numbering: "(1)", number-align: bottom) - -$ q &= ln sqrt(a b) \ - &= 1/2 (ln a + ln b) $ - ---- -// Tests that if the numbering's layout box vertically exceeds the box of -// the equation frame's boundary, the latter's frame is resized correctly -// to encompass the numbering. #box() below delineates the resized frame. -// -// A row with "-" only has a height that's smaller than the height of the -// numbering's layout box. Note we use pattern "1" here, not "(1)", since -// the parenthesis exceeds the numbering's layout box, due to the default -// settings of top-edge and bottom-edge of the TextElem that laid it out. -#set math.equation(numbering: "1", number-align: top) -#box( -$ - &- - \ - a &= b $, -fill: silver) - -#set math.equation(numbering: "1", number-align: horizon) -#box( -$ - - - $, -fill: silver) - -#set math.equation(numbering: "1", number-align: bottom) -#box( -$ a &= b \ - - &- - $, -fill: silver) |
