summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEric Biedert <github@ericbiedert.de>2024-05-30 09:52:48 +0200
committerGitHub <noreply@github.com>2024-05-30 07:52:48 +0000
commit5f6d942519b36eb839a0a11e4ef3f1ea4013a8b5 (patch)
tree7584cd543a13a4ac928e5708499c29cc2f23a315 /tests
parentb75f0a82d458dcb355db0f39089e8d177c14bc16 (diff)
Make block equations breakable (#4226)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
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" $