From fd5e642fb495e98bde0f7e7fd16dca7ac355c60a Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 26 Nov 2024 12:37:53 +0000 Subject: Tags shouldn't affect row height in equations (#5458) --- tests/ref/math-equation-tag-affects-row-height.png | Bin 0 -> 329 bytes tests/suite/math/equation.typ | 9 +++++++++ 2 files changed, 9 insertions(+) create mode 100644 tests/ref/math-equation-tag-affects-row-height.png (limited to 'tests') diff --git a/tests/ref/math-equation-tag-affects-row-height.png b/tests/ref/math-equation-tag-affects-row-height.png new file mode 100644 index 00000000..d0cc2359 Binary files /dev/null and b/tests/ref/math-equation-tag-affects-row-height.png differ diff --git a/tests/suite/math/equation.typ b/tests/suite/math/equation.typ index 6cdf7b7e..148a49d0 100644 --- a/tests/suite/math/equation.typ +++ b/tests/suite/math/equation.typ @@ -260,6 +260,15 @@ $ q &= sum_k ln A \ // Test numbering on empty equations. #math.equation(numbering: "1", block: true, []) +--- math-equation-tag-affects-row-height --- +// Tags should not affect the row height of equations. +#box($ - - $, fill: silver) +#box($ #metadata(none) - - $, fill: silver) \ +#box($ a \ - - $, fill: silver) +#box($ a \ #metadata(none) - - $, fill: silver) +#box($ - - \ a $, fill: silver) +#box($ #metadata(none) - - \ a $, fill: silver) + --- issue-4187-alignment-point-affects-row-height --- // In this bug, a row of "-" only should have a very small height; but // after adding an alignment point "&", the row gains a larger height. -- cgit v1.2.3