From 6402bdacc7534ec9d893a84a2c4fd9c753d4a649 Mon Sep 17 00:00:00 2001 From: Malo <57839069+MDLC01@users.noreply.github.com> Date: Tue, 20 Feb 2024 13:59:29 +0100 Subject: Always attach primes as scripts by default (#3437) --- tests/ref/math/opticalsize.png | Bin 11912 -> 14078 bytes tests/typ/math/opticalsize.typ | 24 ++++++++++++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/ref/math/opticalsize.png b/tests/ref/math/opticalsize.png index 4f219710..303f7bee 100644 Binary files a/tests/ref/math/opticalsize.png and b/tests/ref/math/opticalsize.png differ diff --git a/tests/typ/math/opticalsize.typ b/tests/typ/math/opticalsize.typ index f7d3aa88..83e2ce3d 100644 --- a/tests/typ/math/opticalsize.typ +++ b/tests/typ/math/opticalsize.typ @@ -37,7 +37,7 @@ $a'$, $a'''_b$, $'$, $'''''''$ $a' ' '$, $' ' '$, $a' '/b$ --- -// Test complex prime combilnations +// Test complex prime combinations $a'_b^c$, $a_b'^c$, $a_b^c'$, $a_b'^c'^d'$ $(a'_b')^(c'_d')$, $a'/b'$, $a_b'/c_d'$ @@ -46,4 +46,24 @@ $∫'$, $∑'$, $ ∑'_S' $ --- // Test attaching primes only -$a' = a^', a_', a_'''^''^'$ \ No newline at end of file +$a' = a^', a_', a_'''^''^'$ + +--- +// Test primes always attaching as scripts +$ x' $ +$ x^' $ +$ attach(x, t: ') $ +$ <' $ +$ attach(<, br: ') $ +$ op(<, limits: #true)' $ +$ limits(<)' $ + +--- +// Test forcefully attaching primes as limits +$ attach(<, t: ') $ +$ <^' $ +$ attach(<, b: ') $ +$ <_' $ + +$ limits(x)^' $ +$ attach(limits(x), t: ') $ -- cgit v1.2.3