From 3a6d5fd6b21c85fa100d7fc1e7508ee4b484d99c Mon Sep 17 00:00:00 2001 From: Malo <57839069+MDLC01@users.noreply.github.com> Date: Wed, 11 Jun 2025 09:29:38 +0100 Subject: Do not force `math.mid` elements to have the Large math class (#5980) --- tests/ref/math-lr-mid-class.png | Bin 0 -> 556 bytes tests/ref/math-lr-mid-size-nested-equation.png | Bin 900 -> 920 bytes tests/ref/math-lr-mid-size.png | Bin 2210 -> 2251 bytes tests/ref/math-lr-mid.png | Bin 1399 -> 1413 bytes tests/suite/math/delimited.typ | 8 ++++++++ 5 files changed, 8 insertions(+) create mode 100644 tests/ref/math-lr-mid-class.png (limited to 'tests') diff --git a/tests/ref/math-lr-mid-class.png b/tests/ref/math-lr-mid-class.png new file mode 100644 index 00000000..6487578d Binary files /dev/null and b/tests/ref/math-lr-mid-class.png differ diff --git a/tests/ref/math-lr-mid-size-nested-equation.png b/tests/ref/math-lr-mid-size-nested-equation.png index df010668..750ad14c 100644 Binary files a/tests/ref/math-lr-mid-size-nested-equation.png and b/tests/ref/math-lr-mid-size-nested-equation.png differ diff --git a/tests/ref/math-lr-mid-size.png b/tests/ref/math-lr-mid-size.png index 12b4c086..07d33722 100644 Binary files a/tests/ref/math-lr-mid-size.png and b/tests/ref/math-lr-mid-size.png differ diff --git a/tests/ref/math-lr-mid.png b/tests/ref/math-lr-mid.png index 42e6da70..8af85b00 100644 Binary files a/tests/ref/math-lr-mid.png and b/tests/ref/math-lr-mid.png differ diff --git a/tests/suite/math/delimited.typ b/tests/suite/math/delimited.typ index 794ffd8a..b8656151 100644 --- a/tests/suite/math/delimited.typ +++ b/tests/suite/math/delimited.typ @@ -77,6 +77,14 @@ $ lr(body) quad lr(size: #1em, body) quad lr(size: #(1em+20%), body) $ +--- math-lr-mid-class --- +// Test that `mid` creates a Relation, but that can be overridden. +$ (a | b) $ +$ (a mid(|) b) $ +$ (a class("unary", |) b) $ +$ (a class("unary", mid(|)) b) $ +$ (a mid(class("unary", |)) b) $ + --- math-lr-unbalanced --- // Test unbalanced delimiters. $ 1/(2 (x) $ -- cgit v1.2.3