diff options
| author | Max <me@mkor.je> | 2024-10-10 15:52:55 +0000 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2024-10-15 15:06:36 +0200 |
| commit | eea8f13c426c7277a60ed476ebd14dc2c636e8b3 (patch) | |
| tree | 408996dea0f4c0b6db95e8ae8d703e41ca9fcf7e /tests | |
| parent | d21cb2cf5e522b8232f14c71a3185aa6e67ee9ec (diff) | |
Fix bug in `math.frac` layout code (#5177)
Diffstat (limited to 'tests')
53 files changed, 6 insertions, 2 deletions
diff --git a/tests/ref/gradient-math-dir.png b/tests/ref/gradient-math-dir.png Binary files differindex 8a9954ad..8d33f51f 100644 --- a/tests/ref/gradient-math-dir.png +++ b/tests/ref/gradient-math-dir.png diff --git a/tests/ref/gradient-math-frac.png b/tests/ref/gradient-math-frac.png Binary files differindex 1316dc47..c32d6e3f 100644 --- a/tests/ref/gradient-math-frac.png +++ b/tests/ref/gradient-math-frac.png diff --git a/tests/ref/gradient-math-root.png b/tests/ref/gradient-math-root.png Binary files differindex 4c2e4272..defbe899 100644 --- a/tests/ref/gradient-math-root.png +++ b/tests/ref/gradient-math-root.png diff --git a/tests/ref/issue-3658-math-size.png b/tests/ref/issue-3658-math-size.png Binary files differindex db8fccf9..bd14f781 100644 --- a/tests/ref/issue-3658-math-size.png +++ b/tests/ref/issue-3658-math-size.png diff --git a/tests/ref/issue-3696-equation-rtl.png b/tests/ref/issue-3696-equation-rtl.png Binary files differindex 1c21a8d7..1a4bbcb5 100644 --- a/tests/ref/issue-3696-equation-rtl.png +++ b/tests/ref/issue-3696-equation-rtl.png diff --git a/tests/ref/issue-math-realize-show.png b/tests/ref/issue-math-realize-show.png Binary files differindex d6b727c1..f4bde486 100644 --- a/tests/ref/issue-math-realize-show.png +++ b/tests/ref/issue-math-realize-show.png diff --git a/tests/ref/math-accent-bounds.png b/tests/ref/math-accent-bounds.png Binary files differindex d9876182..6ddc5436 100644 --- a/tests/ref/math-accent-bounds.png +++ b/tests/ref/math-accent-bounds.png diff --git a/tests/ref/math-attach-high.png b/tests/ref/math-attach-high.png Binary files differindex 0452c5ea..ba3e0239 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 409a30d2..73f3d1e8 100644 --- a/tests/ref/math-attach-horizontal-align.png +++ b/tests/ref/math-attach-horizontal-align.png diff --git a/tests/ref/math-attach-nested.png b/tests/ref/math-attach-nested.png Binary files differindex c6cc99b0..a62e62eb 100644 --- a/tests/ref/math-attach-nested.png +++ b/tests/ref/math-attach-nested.png diff --git a/tests/ref/math-attach-subscript-multiline.png b/tests/ref/math-attach-subscript-multiline.png Binary files differindex 7f9aec2e..edb98694 100644 --- a/tests/ref/math-attach-subscript-multiline.png +++ b/tests/ref/math-attach-subscript-multiline.png diff --git a/tests/ref/math-attach-to-group.png b/tests/ref/math-attach-to-group.png Binary files differindex ea4115fc..ad836775 100644 --- a/tests/ref/math-attach-to-group.png +++ b/tests/ref/math-attach-to-group.png diff --git a/tests/ref/math-binom-multiple.png b/tests/ref/math-binom-multiple.png Binary files differindex 7eb60be0..d017a1a1 100644 --- a/tests/ref/math-binom-multiple.png +++ b/tests/ref/math-binom-multiple.png diff --git a/tests/ref/math-binom.png b/tests/ref/math-binom.png Binary files differindex 85ab08f9..361e95f7 100644 --- a/tests/ref/math-binom.png +++ b/tests/ref/math-binom.png diff --git a/tests/ref/math-cancel-angle-func.png b/tests/ref/math-cancel-angle-func.png Binary files differindex 54f6e759..b1f31072 100644 --- a/tests/ref/math-cancel-angle-func.png +++ b/tests/ref/math-cancel-angle-func.png diff --git a/tests/ref/math-cancel-display.png b/tests/ref/math-cancel-display.png Binary files differindex 30d30a59..46b6b203 100644 --- a/tests/ref/math-cancel-display.png +++ b/tests/ref/math-cancel-display.png diff --git a/tests/ref/math-cancel-inline.png b/tests/ref/math-cancel-inline.png Binary files differindex 4d92bc5e..09903847 100644 --- a/tests/ref/math-cancel-inline.png +++ b/tests/ref/math-cancel-inline.png diff --git a/tests/ref/math-cases.png b/tests/ref/math-cases.png Binary files differindex 456b2550..ed0423de 100644 --- a/tests/ref/math-cases.png +++ b/tests/ref/math-cases.png diff --git a/tests/ref/math-class-chars.png b/tests/ref/math-class-chars.png Binary files differindex 6bcaaf40..b9abf4c5 100644 --- a/tests/ref/math-class-chars.png +++ b/tests/ref/math-class-chars.png diff --git a/tests/ref/math-dif.png b/tests/ref/math-dif.png Binary files differindex dfe88b3c..7a2157d5 100644 --- a/tests/ref/math-dif.png +++ b/tests/ref/math-dif.png diff --git a/tests/ref/math-equation-numbering.png b/tests/ref/math-equation-numbering.png Binary files differindex 18697302..7e8757bd 100644 --- a/tests/ref/math-equation-numbering.png +++ b/tests/ref/math-equation-numbering.png diff --git a/tests/ref/math-frac-associativity.png b/tests/ref/math-frac-associativity.png Binary files differindex a5daca59..8aa98996 100644 --- a/tests/ref/math-frac-associativity.png +++ b/tests/ref/math-frac-associativity.png diff --git a/tests/ref/math-frac-baseline.png b/tests/ref/math-frac-baseline.png Binary files differindex d65e2c33..a3060d8a 100644 --- a/tests/ref/math-frac-baseline.png +++ b/tests/ref/math-frac-baseline.png diff --git a/tests/ref/math-frac-gap.png b/tests/ref/math-frac-gap.png Binary files differnew file mode 100644 index 00000000..35563895 --- /dev/null +++ b/tests/ref/math-frac-gap.png diff --git a/tests/ref/math-frac-large.png b/tests/ref/math-frac-large.png Binary files differindex ff9520f3..5b260c43 100644 --- a/tests/ref/math-frac-large.png +++ b/tests/ref/math-frac-large.png diff --git a/tests/ref/math-frac-paren-removal.png b/tests/ref/math-frac-paren-removal.png Binary files differindex 4f58f1d3..7ea65027 100644 --- a/tests/ref/math-frac-paren-removal.png +++ b/tests/ref/math-frac-paren-removal.png diff --git a/tests/ref/math-frac-precedence.png b/tests/ref/math-frac-precedence.png Binary files differindex be477074..973c433e 100644 --- a/tests/ref/math-frac-precedence.png +++ b/tests/ref/math-frac-precedence.png diff --git a/tests/ref/math-lr-call.png b/tests/ref/math-lr-call.png Binary files differindex baf668d4..c498061d 100644 --- a/tests/ref/math-lr-call.png +++ b/tests/ref/math-lr-call.png diff --git a/tests/ref/math-lr-color.png b/tests/ref/math-lr-color.png Binary files differindex 66876819..40dc5ab3 100644 --- a/tests/ref/math-lr-color.png +++ b/tests/ref/math-lr-color.png diff --git a/tests/ref/math-lr-fences.png b/tests/ref/math-lr-fences.png Binary files differindex 32314cb4..c9919d67 100644 --- a/tests/ref/math-lr-fences.png +++ b/tests/ref/math-lr-fences.png diff --git a/tests/ref/math-lr-half.png b/tests/ref/math-lr-half.png Binary files differindex 311188b4..6df0c57a 100644 --- a/tests/ref/math-lr-half.png +++ b/tests/ref/math-lr-half.png diff --git a/tests/ref/math-lr-matching.png b/tests/ref/math-lr-matching.png Binary files differindex e5fd4c7b..d8c3f32a 100644 --- a/tests/ref/math-lr-matching.png +++ b/tests/ref/math-lr-matching.png diff --git a/tests/ref/math-lr-mid.png b/tests/ref/math-lr-mid.png Binary files differindex 1e14759e..42e6da70 100644 --- a/tests/ref/math-lr-mid.png +++ b/tests/ref/math-lr-mid.png diff --git a/tests/ref/math-lr-shorthands.png b/tests/ref/math-lr-shorthands.png Binary files differindex d8961672..7fad2c5b 100644 --- a/tests/ref/math-lr-shorthands.png +++ b/tests/ref/math-lr-shorthands.png diff --git a/tests/ref/math-lr-symbol-unmatched.png b/tests/ref/math-lr-symbol-unmatched.png Binary files differindex 38d0a988..bb126d3e 100644 --- a/tests/ref/math-lr-symbol-unmatched.png +++ b/tests/ref/math-lr-symbol-unmatched.png diff --git a/tests/ref/math-lr-unbalanced.png b/tests/ref/math-lr-unbalanced.png Binary files differindex eff579ba..022edc38 100644 --- a/tests/ref/math-lr-unbalanced.png +++ b/tests/ref/math-lr-unbalanced.png diff --git a/tests/ref/math-lr-unmatched.png b/tests/ref/math-lr-unmatched.png Binary files differindex 9a0f3275..306b29bc 100644 --- a/tests/ref/math-lr-unmatched.png +++ b/tests/ref/math-lr-unmatched.png diff --git a/tests/ref/math-mat-baseline.png b/tests/ref/math-mat-baseline.png Binary files differindex c5aa1e20..d2f26621 100644 --- a/tests/ref/math-mat-baseline.png +++ b/tests/ref/math-mat-baseline.png diff --git a/tests/ref/math-mat-semicolon.png b/tests/ref/math-mat-semicolon.png Binary files differindex 2a88818d..83603cc8 100644 --- a/tests/ref/math-mat-semicolon.png +++ b/tests/ref/math-mat-semicolon.png diff --git a/tests/ref/math-nested-normal-layout.png b/tests/ref/math-nested-normal-layout.png Binary files differindex 8e7d2108..20db998d 100644 --- a/tests/ref/math-nested-normal-layout.png +++ b/tests/ref/math-nested-normal-layout.png diff --git a/tests/ref/math-op-scripts-vs-limits.png b/tests/ref/math-op-scripts-vs-limits.png Binary files differindex 41897416..ac1e0199 100644 --- a/tests/ref/math-op-scripts-vs-limits.png +++ b/tests/ref/math-op-scripts-vs-limits.png diff --git a/tests/ref/math-optical-size-frac-script-script.png b/tests/ref/math-optical-size-frac-script-script.png Binary files differindex 365b0a0b..543816e2 100644 --- a/tests/ref/math-optical-size-frac-script-script.png +++ b/tests/ref/math-optical-size-frac-script-script.png diff --git a/tests/ref/math-optical-size-prime-large-operator.png b/tests/ref/math-optical-size-prime-large-operator.png Binary files differindex b38a934e..c58f9d39 100644 --- a/tests/ref/math-optical-size-prime-large-operator.png +++ b/tests/ref/math-optical-size-prime-large-operator.png diff --git a/tests/ref/math-primes-complex.png b/tests/ref/math-primes-complex.png Binary files differindex 080b105d..2f5eafee 100644 --- a/tests/ref/math-primes-complex.png +++ b/tests/ref/math-primes-complex.png diff --git a/tests/ref/math-primes-spaces.png b/tests/ref/math-primes-spaces.png Binary files differindex 7c758815..174b9f60 100644 --- a/tests/ref/math-primes-spaces.png +++ b/tests/ref/math-primes-spaces.png diff --git a/tests/ref/math-primes-with-superscript.png b/tests/ref/math-primes-with-superscript.png Binary files differindex 88a892b9..beffb488 100644 --- a/tests/ref/math-primes-with-superscript.png +++ b/tests/ref/math-primes-with-superscript.png diff --git a/tests/ref/math-root-large-body.png b/tests/ref/math-root-large-body.png Binary files differindex 20363647..f0367571 100644 --- a/tests/ref/math-root-large-body.png +++ b/tests/ref/math-root-large-body.png diff --git a/tests/ref/math-root-large-index.png b/tests/ref/math-root-large-index.png Binary files differindex 8037222c..85689823 100644 --- a/tests/ref/math-root-large-index.png +++ b/tests/ref/math-root-large-index.png diff --git a/tests/ref/math-size.png b/tests/ref/math-size.png Binary files differindex b44e4c74..ad1c98b0 100644 --- a/tests/ref/math-size.png +++ b/tests/ref/math-size.png diff --git a/tests/ref/math-table.png b/tests/ref/math-table.png Binary files differindex 75d25f3e..e8dfa982 100644 --- a/tests/ref/math-table.png +++ b/tests/ref/math-table.png diff --git a/tests/ref/math-underover-brackets.png b/tests/ref/math-underover-brackets.png Binary files differindex 03419bc3..d9fc22a6 100644 --- a/tests/ref/math-underover-brackets.png +++ b/tests/ref/math-underover-brackets.png diff --git a/tests/suite/math/frac.typ b/tests/suite/math/frac.typ index b3ca8aa0..7f513930 100644 --- a/tests/suite/math/frac.typ +++ b/tests/suite/math/frac.typ @@ -41,3 +41,7 @@ $ a_1/b_2, 1/f(x), zeta(x)/2, "foo"[|x|]/2 \ +[x]/2, 1(x)/2, 2[x]/2 \ (a)b/2, b(a)[b]/2 \ n!/2, 5!/2, n !/2, 1/n!, 1/5! $ + +--- math-frac-gap --- +// Test that the gap above and below the fraction rule is correct. +$ sqrt(n^(2/3)) $ diff --git a/tests/suite/visualize/gradient.typ b/tests/suite/visualize/gradient.typ index ff1aef3a..d66241f7 100644 --- a/tests/suite/visualize/gradient.typ +++ b/tests/suite/visualize/gradient.typ @@ -497,7 +497,7 @@ $ nabla dot bold(E) = frac(rho, epsilon_0) $ #show math.equation: set text(fill: gradient.linear(..color.map.rainbow)) #show math.equation: box -$ x_"1,2" = frac(-b +- sqrt(b^2 - 4 a c), 2 a) $ +$ x_"1,2" = frac(-b plus.minus sqrt(b^2 - 4 a c), 2 a) $ --- gradient-math-mat --- // Test on matrix @@ -529,7 +529,7 @@ $ A = mat( 7, 8, 9 ) $ -$ x_"1,2" = frac(-b +- sqrt(b^2 - 4 a c), 2 a) $ +$ x_"1,2" = frac(-b plus.minus sqrt(b^2 - 4 a c), 2 a) $ --- gradient-math-misc --- // Test miscellaneous |
