diff options
| author | Max <me@mkor.je> | 2024-08-26 17:04:02 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-26 17:04:02 +0000 |
| commit | 373163dba4b4a4d9186b96a671af64d435d0eda3 (patch) | |
| tree | 824e2f5d4b9bf0988a4c0f9978332ea1aed4c554 /tests | |
| parent | c38d01e4c5558d839ec91895807f5942c8944348 (diff) | |
Implement math kerning and fix various `math.attach` bugs (#4762)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/gradient-math-misc.png | bin | 2999 -> 2993 bytes | |||
| -rw-r--r-- | tests/ref/math-attach-high.png | bin | 1296 -> 1297 bytes | |||
| -rw-r--r-- | tests/ref/math-attach-horizontal-align.png | bin | 1900 -> 1894 bytes | |||
| -rw-r--r-- | tests/ref/math-attach-integral.png | bin | 965 -> 964 bytes | |||
| -rw-r--r-- | tests/ref/math-attach-kerning-mixed.png | bin | 0 -> 2418 bytes | |||
| -rw-r--r-- | tests/ref/math-attach-kerning.png | bin | 0 -> 2321 bytes | |||
| -rw-r--r-- | tests/ref/math-attach-limit-long.png | bin | 0 -> 1941 bytes | |||
| -rw-r--r-- | tests/ref/math-attach-mixed.png | bin | 2357 -> 2327 bytes | |||
| -rw-r--r-- | tests/ref/math-attach-nested-base.png | bin | 1062 -> 1047 bytes | |||
| -rw-r--r-- | tests/ref/math-attach-nested.png | bin | 952 -> 957 bytes | |||
| -rw-r--r-- | tests/ref/math-attach-prescripts.png | bin | 675 -> 670 bytes | |||
| -rw-r--r-- | tests/ref/math-spacing-decorated.png | bin | 2382 -> 2385 bytes | |||
| -rw-r--r-- | tests/suite/math/attach.typ | 31 |
13 files changed, 31 insertions, 0 deletions
diff --git a/tests/ref/gradient-math-misc.png b/tests/ref/gradient-math-misc.png Binary files differindex b9b55d4d..acf14c6f 100644 --- a/tests/ref/gradient-math-misc.png +++ b/tests/ref/gradient-math-misc.png diff --git a/tests/ref/math-attach-high.png b/tests/ref/math-attach-high.png Binary files differindex 4bb6cb29..0452c5ea 100644 --- a/tests/ref/math-attach-high.png +++ b/tests/ref/math-attach-high.png diff --git a/tests/ref/math-attach-horizontal-align.png b/tests/ref/math-attach-horizontal-align.png Binary files differindex 8aa2a376..409a30d2 100644 --- a/tests/ref/math-attach-horizontal-align.png +++ b/tests/ref/math-attach-horizontal-align.png diff --git a/tests/ref/math-attach-integral.png b/tests/ref/math-attach-integral.png Binary files differindex baebf44c..64688b93 100644 --- a/tests/ref/math-attach-integral.png +++ b/tests/ref/math-attach-integral.png diff --git a/tests/ref/math-attach-kerning-mixed.png b/tests/ref/math-attach-kerning-mixed.png Binary files differnew file mode 100644 index 00000000..9d0bea27 --- /dev/null +++ b/tests/ref/math-attach-kerning-mixed.png diff --git a/tests/ref/math-attach-kerning.png b/tests/ref/math-attach-kerning.png Binary files differnew file mode 100644 index 00000000..d3de7a22 --- /dev/null +++ b/tests/ref/math-attach-kerning.png diff --git a/tests/ref/math-attach-limit-long.png b/tests/ref/math-attach-limit-long.png Binary files differnew file mode 100644 index 00000000..b79e6ed4 --- /dev/null +++ b/tests/ref/math-attach-limit-long.png diff --git a/tests/ref/math-attach-mixed.png b/tests/ref/math-attach-mixed.png Binary files differindex 4be327e3..e1268b43 100644 --- a/tests/ref/math-attach-mixed.png +++ b/tests/ref/math-attach-mixed.png diff --git a/tests/ref/math-attach-nested-base.png b/tests/ref/math-attach-nested-base.png Binary files differindex 657cf46f..54c62387 100644 --- a/tests/ref/math-attach-nested-base.png +++ b/tests/ref/math-attach-nested-base.png diff --git a/tests/ref/math-attach-nested.png b/tests/ref/math-attach-nested.png Binary files differindex 8b4309cf..c6cc99b0 100644 --- a/tests/ref/math-attach-nested.png +++ b/tests/ref/math-attach-nested.png diff --git a/tests/ref/math-attach-prescripts.png b/tests/ref/math-attach-prescripts.png Binary files differindex cd105e9d..f0d21cb8 100644 --- a/tests/ref/math-attach-prescripts.png +++ b/tests/ref/math-attach-prescripts.png diff --git a/tests/ref/math-spacing-decorated.png b/tests/ref/math-spacing-decorated.png Binary files differindex 4a785e71..b8846ff0 100644 --- a/tests/ref/math-spacing-decorated.png +++ b/tests/ref/math-spacing-decorated.png 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 |
