From f1f2de889a2d7a7533453956595acb82ab1da125 Mon Sep 17 00:00:00 2001 From: Eric Biedert Date: Thu, 10 Oct 2024 14:03:11 +0200 Subject: Resolve lengths in math with scaled font size (#5168) --- tests/ref/math-accent-sized-script.png | Bin 0 -> 331 bytes tests/ref/math-spacing-script.png | Bin 0 -> 346 bytes tests/suite/math/accent.typ | 4 ++++ tests/suite/math/spacing.typ | 4 ++++ 4 files changed, 8 insertions(+) create mode 100644 tests/ref/math-accent-sized-script.png create mode 100644 tests/ref/math-spacing-script.png (limited to 'tests') diff --git a/tests/ref/math-accent-sized-script.png b/tests/ref/math-accent-sized-script.png new file mode 100644 index 00000000..cf468dd1 Binary files /dev/null and b/tests/ref/math-accent-sized-script.png differ diff --git a/tests/ref/math-spacing-script.png b/tests/ref/math-spacing-script.png new file mode 100644 index 00000000..3ded9622 Binary files /dev/null and b/tests/ref/math-spacing-script.png differ diff --git a/tests/suite/math/accent.typ b/tests/suite/math/accent.typ index 9f57d69b..87ed8158 100644 --- a/tests/suite/math/accent.typ +++ b/tests/suite/math/accent.typ @@ -31,3 +31,7 @@ $ tilde(integral), tilde(integral)_a^b, tilde(integral_a^b) $ --- math-accent-sized --- // Test accent size. $tilde(sum), tilde(sum, size: #50%), accent(H, hat, size: #200%)$ + +--- math-accent-sized-script --- +// Test accent size in script size. +$tilde(U, size: #1.1em), x^tilde(U, size: #1.1em), sscript(tilde(U, size: #1.1em))$ diff --git a/tests/suite/math/spacing.typ b/tests/suite/math/spacing.typ index 707c09bb..db8b905c 100644 --- a/tests/suite/math/spacing.typ +++ b/tests/suite/math/spacing.typ @@ -49,6 +49,10 @@ $integral f(x) thin dif x$, // Both are weak, collide $integral f(x) #h(0.166em, weak: true)dif x$ +--- math-spacing-script --- +// Test spacing in script size +$x^(a #h(1em) b) + x^x^(a #h(1em) b) + sscript(a #h(1em) b)$ + --- math-spacing-ignorant --- // Test spacing with ignorant elements $#metadata(none) "text"$ \ -- cgit v1.2.3