summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/math-pagebreaking-numbered.pngbin0 -> 735 bytes
-rw-r--r--tests/ref/math-pagebreaking.pngbin0 -> 705 bytes
-rw-r--r--tests/suite/math/multiline.typ23
3 files changed, 23 insertions, 0 deletions
diff --git a/tests/ref/math-pagebreaking-numbered.png b/tests/ref/math-pagebreaking-numbered.png
new file mode 100644
index 00000000..8ddf637e
--- /dev/null
+++ b/tests/ref/math-pagebreaking-numbered.png
Binary files differ
diff --git a/tests/ref/math-pagebreaking.png b/tests/ref/math-pagebreaking.png
new file mode 100644
index 00000000..c651860f
--- /dev/null
+++ b/tests/ref/math-pagebreaking.png
Binary files differ
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" $