diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/math-pagebreaking-numbered.png | bin | 0 -> 735 bytes | |||
| -rw-r--r-- | tests/ref/math-pagebreaking.png | bin | 0 -> 705 bytes | |||
| -rw-r--r-- | tests/suite/math/multiline.typ | 23 |
3 files changed, 23 insertions, 0 deletions
diff --git a/tests/ref/math-pagebreaking-numbered.png b/tests/ref/math-pagebreaking-numbered.png Binary files differnew file mode 100644 index 00000000..8ddf637e --- /dev/null +++ b/tests/ref/math-pagebreaking-numbered.png diff --git a/tests/ref/math-pagebreaking.png b/tests/ref/math-pagebreaking.png Binary files differnew file mode 100644 index 00000000..c651860f --- /dev/null +++ b/tests/ref/math-pagebreaking.png diff --git a/tests/suite/math/multiline.typ b/tests/suite/math/multiline.typ index edf974a1..35f10ea4 100644 --- a/tests/suite/math/multiline.typ +++ b/tests/suite/math/multiline.typ @@ -107,6 +107,29 @@ Multiple trailing line breaks. $ $\ Nothing: $ $, just empty. +--- math-pagebreaking --- +// Test breaking of equations at page boundaries. +#set page(height: 5em) +#show math.equation: set block(breakable: true) + +$ a &+ b + & c \ + a &+ b & && + d \ + a &+ b + & c && + d \ + & & c && + d \ + &= 0 $ + +--- math-pagebreaking-numbered --- +// Test breaking of equations with numbering. +#set page(height: 5em) +#set math.equation(numbering: "1") +#show math.equation: set block(breakable: true) + +$ a &+ b + & c \ + a &+ b & && + d \ + a &+ b + & c && + d \ + & & c && + d \ + &= 0 $ + --- issue-1948-math-text-break --- // Test text with linebreaks in math. $ x := "a\nb\nc\nd\ne" $ |
