diff options
| author | Leedehai <18319900+Leedehai@users.noreply.github.com> | 2024-05-07 09:46:18 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-07 13:46:18 +0000 |
| commit | aa38b96849e2c8a8d7a462789e1f81e9f65d45b3 (patch) | |
| tree | 725aa65668754a44727c39590f5991405b66cf82 /tests/suite | |
| parent | c0576c6b5560a4d253f0b579295a246bf7676ae7 (diff) | |
Fix: `number-align` should align line/number baselines (#4024)
Diffstat (limited to 'tests/suite')
| -rw-r--r-- | tests/suite/math/equation.typ | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/tests/suite/math/equation.typ b/tests/suite/math/equation.typ index dd2745d1..d5771f95 100644 --- a/tests/suite/math/equation.typ +++ b/tests/suite/math/equation.typ @@ -152,6 +152,16 @@ $ a + b = c $ // Error: 52-67 expected `start`, `left`, `right`, or `end`, found center #set math.equation(numbering: "(1)", number-align: center + bottom) +--- math-equation-number-align-monoline --- +#set math.equation(numbering: "(1)") +$ p = sum_k k ln a $ + +#set math.equation(numbering: "(1)", number-align: top) +$ p = sum_k k ln a $ + +#set math.equation(numbering: "(1)", number-align: bottom) +$ p = sum_k k ln a $ + --- math-equation-number-align-multiline --- #set math.equation(numbering: "(1)") @@ -163,13 +173,17 @@ $ p &= ln a b \ $ p &= ln a b \ &= ln a + ln b $ +$ q &= sum_k k ln a \ + &= sum_k ln A $ --- math-equation-number-align-multiline-bottom --- #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) $ +$ p &= ln a b \ + &= ln a + ln b $ +$ q &= sum_k ln A \ + &= sum_k k ln a $ --- math-equation-number-align-multiline-expand --- // Tests that if the numbering's layout box vertically exceeds the box of |
