From 8eee3ec8d1b4d960017cb558887bd6180cc99cea Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 1 Oct 2024 08:01:28 +0000 Subject: Fix breakable block equation overflow (#5078) --- tests/ref/math-pagebreaking-single-line-numbered.png | Bin 0 -> 760 bytes tests/ref/math-pagebreaking-single-line.png | Bin 0 -> 674 bytes tests/suite/math/multiline.typ | 17 +++++++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 tests/ref/math-pagebreaking-single-line-numbered.png create mode 100644 tests/ref/math-pagebreaking-single-line.png (limited to 'tests') diff --git a/tests/ref/math-pagebreaking-single-line-numbered.png b/tests/ref/math-pagebreaking-single-line-numbered.png new file mode 100644 index 00000000..4e5b93eb Binary files /dev/null and b/tests/ref/math-pagebreaking-single-line-numbered.png differ diff --git a/tests/ref/math-pagebreaking-single-line.png b/tests/ref/math-pagebreaking-single-line.png new file mode 100644 index 00000000..877d9c8b Binary files /dev/null and b/tests/ref/math-pagebreaking-single-line.png differ diff --git a/tests/suite/math/multiline.typ b/tests/suite/math/multiline.typ index 8377b93e..3c0ed2f4 100644 --- a/tests/suite/math/multiline.typ +++ b/tests/suite/math/multiline.typ @@ -130,6 +130,23 @@ $ a &+ b + & c \ & & c && + d \ &= 0 $ +--- math-pagebreaking-single-line --- +// Test breaking of single line equations. +#set page(height: 4em) +#show math.equation: set block(breakable: true) + +Shouldn't overflow: +$ a + b $ + +--- math-pagebreaking-single-line-numbered --- +// Test breaking of single line equations with numbering. +#set page(height: 4em) +#show math.equation: set block(breakable: true) +#set math.equation(numbering: "(1)") + +Shouldn't overflow: +$ a + b $ + --- issue-1948-math-text-break --- // Test text with linebreaks in math. $ x := "a\nb\nc\nd\ne" $ -- cgit v1.2.3