summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/gradient-math-misc.pngbin2999 -> 2993 bytes
-rw-r--r--tests/ref/math-attach-high.pngbin1296 -> 1297 bytes
-rw-r--r--tests/ref/math-attach-horizontal-align.pngbin1900 -> 1894 bytes
-rw-r--r--tests/ref/math-attach-integral.pngbin965 -> 964 bytes
-rw-r--r--tests/ref/math-attach-kerning-mixed.pngbin0 -> 2418 bytes
-rw-r--r--tests/ref/math-attach-kerning.pngbin0 -> 2321 bytes
-rw-r--r--tests/ref/math-attach-limit-long.pngbin0 -> 1941 bytes
-rw-r--r--tests/ref/math-attach-mixed.pngbin2357 -> 2327 bytes
-rw-r--r--tests/ref/math-attach-nested-base.pngbin1062 -> 1047 bytes
-rw-r--r--tests/ref/math-attach-nested.pngbin952 -> 957 bytes
-rw-r--r--tests/ref/math-attach-prescripts.pngbin675 -> 670 bytes
-rw-r--r--tests/ref/math-spacing-decorated.pngbin2382 -> 2385 bytes
-rw-r--r--tests/suite/math/attach.typ31
13 files changed, 31 insertions, 0 deletions
diff --git a/tests/ref/gradient-math-misc.png b/tests/ref/gradient-math-misc.png
index b9b55d4d..acf14c6f 100644
--- a/tests/ref/gradient-math-misc.png
+++ b/tests/ref/gradient-math-misc.png
Binary files differ
diff --git a/tests/ref/math-attach-high.png b/tests/ref/math-attach-high.png
index 4bb6cb29..0452c5ea 100644
--- a/tests/ref/math-attach-high.png
+++ b/tests/ref/math-attach-high.png
Binary files differ
diff --git a/tests/ref/math-attach-horizontal-align.png b/tests/ref/math-attach-horizontal-align.png
index 8aa2a376..409a30d2 100644
--- a/tests/ref/math-attach-horizontal-align.png
+++ b/tests/ref/math-attach-horizontal-align.png
Binary files differ
diff --git a/tests/ref/math-attach-integral.png b/tests/ref/math-attach-integral.png
index baebf44c..64688b93 100644
--- a/tests/ref/math-attach-integral.png
+++ b/tests/ref/math-attach-integral.png
Binary files differ
diff --git a/tests/ref/math-attach-kerning-mixed.png b/tests/ref/math-attach-kerning-mixed.png
new file mode 100644
index 00000000..9d0bea27
--- /dev/null
+++ b/tests/ref/math-attach-kerning-mixed.png
Binary files differ
diff --git a/tests/ref/math-attach-kerning.png b/tests/ref/math-attach-kerning.png
new file mode 100644
index 00000000..d3de7a22
--- /dev/null
+++ b/tests/ref/math-attach-kerning.png
Binary files differ
diff --git a/tests/ref/math-attach-limit-long.png b/tests/ref/math-attach-limit-long.png
new file mode 100644
index 00000000..b79e6ed4
--- /dev/null
+++ b/tests/ref/math-attach-limit-long.png
Binary files differ
diff --git a/tests/ref/math-attach-mixed.png b/tests/ref/math-attach-mixed.png
index 4be327e3..e1268b43 100644
--- a/tests/ref/math-attach-mixed.png
+++ b/tests/ref/math-attach-mixed.png
Binary files differ
diff --git a/tests/ref/math-attach-nested-base.png b/tests/ref/math-attach-nested-base.png
index 657cf46f..54c62387 100644
--- a/tests/ref/math-attach-nested-base.png
+++ b/tests/ref/math-attach-nested-base.png
Binary files differ
diff --git a/tests/ref/math-attach-nested.png b/tests/ref/math-attach-nested.png
index 8b4309cf..c6cc99b0 100644
--- a/tests/ref/math-attach-nested.png
+++ b/tests/ref/math-attach-nested.png
Binary files differ
diff --git a/tests/ref/math-attach-prescripts.png b/tests/ref/math-attach-prescripts.png
index cd105e9d..f0d21cb8 100644
--- a/tests/ref/math-attach-prescripts.png
+++ b/tests/ref/math-attach-prescripts.png
Binary files differ
diff --git a/tests/ref/math-spacing-decorated.png b/tests/ref/math-spacing-decorated.png
index 4a785e71..b8846ff0 100644
--- a/tests/ref/math-spacing-decorated.png
+++ b/tests/ref/math-spacing-decorated.png
Binary files differ
diff --git a/tests/suite/math/attach.typ b/tests/suite/math/attach.typ
index ff859c0f..9c92c62e 100644
--- a/tests/suite/math/attach.typ
+++ b/tests/suite/math/attach.typ
@@ -129,6 +129,37 @@ $integral.sect_a^b quad \u{2a1b}_a^b quad limits(\u{2a1b})_a^b$
$ tack.t.big_0^1 quad \u{02A0A}_0^1 quad join_0^1 $
$tack.t.big_0^1 quad \u{02A0A}_0^1 quad join_0^1$
+--- math-attach-limit-long ---
+// Test long limit attachments.
+$ attach(product, t: 123456789) attach(product, t: 123456789, bl: x) \
+ attach(product, b: 123456789) attach(product, b: 123456789, tr: x) $
+$attach(limits(product), t: 123456789) attach(limits(product), t: 123456789, bl: x)$
+
+$attach(limits(product), b: 123456789) attach(limits(product), b: 123456789, tr: x)$
+
+--- math-attach-kerning ---
+// Test math kerning.
+#show math.equation: set text(font: "STIX Two Math")
+
+$ L^A Y^c R^2 delta^y omega^f a^2 t^w gamma^V p^+ \
+ b_lambda f_k p_i x_1 x_j x_A y_l y_y beta_s theta_k \
+ J_0 Y_0 T_1 T_f V_a V_A F_j cal(F)_j lambda_y \
+ attach(W, tl: l) attach(A, tl: 2) attach(cal(V), tl: beta)
+ attach(cal(P), tl: iota) attach(f, bl: i) attach(A, bl: x)
+ attach(cal(J), bl: xi) attach(cal(A), bl: m) $
+
+--- math-attach-kerning-mixed ---
+// Test mixtures of math kerning.
+#show math.equation: set text(font: "STIX Two Math")
+
+$ x_1^i x_2^lambda x_2^(2alpha) x_2^(k+1) x_2^(-p_(-1)) x_j^gamma \
+ f_2^2 v_0^2 z_0^2 beta_s^2 xi_i^k J_1^2 N_(k y)^(-1) V_pi^x \
+ attach(J, tl: 1, br: i) attach(P, tl: i, br: 2) B_i_0 phi.alt_i_(n-1)
+ attach(A, tr: x, bl: x, br: x, tl: x) attach(F, tl: i, tr: f) \
+ attach(cal(A), tl: 2, bl: o) attach(cal(J), bl: l, br: A)
+ attach(cal(y), tr: p, bl: n t) attach(cal(O), tl: 16, tr: +, br: sigma)
+ attach(italic(Upsilon), tr: s, br: Psi, bl: d) $
+
--- math-attach-nested-base ---
// Test attachments when the base has attachments.
$ attach(a^b, b: c) quad