diff options
Diffstat (limited to 'tests/typ/math/attach-p2.typ')
| -rw-r--r-- | tests/typ/math/attach-p2.typ | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/typ/math/attach-p2.typ b/tests/typ/math/attach-p2.typ new file mode 100644 index 00000000..f618f21a --- /dev/null +++ b/tests/typ/math/attach-p2.typ @@ -0,0 +1,27 @@ +// Test t and b attachments, part 2. + +--- +// Test high subscript and superscript. +$ sqrt(a_(1/2)^zeta), sqrt(a_alpha^(1/2)), sqrt(a_(1/2)^(3/4)) \ + sqrt(attach(a, tl: 1/2, bl: 3/4)), + sqrt(attach(a, tl: 1/2, bl: 3/4, tr: 1/2, br: 3/4)) $ + +--- +// Test for no collisions between descenders/ascenders and attachments + +$ sup_(x in P_i) quad inf_(x in P_i) $ +$ op("fff",limits: #true)^(y) quad op("yyy", limits:#true)_(f) $ + +--- +// Test frame base. +$ (-1)^n + (1/2 + 3)^(-1/2) $ + +--- +#set text(size: 8pt) + +// Test that the attachments are aligned horizontally. +$ x_1 p_1 frak(p)_1 2_1 dot_1 lg_1 !_1 \\_1 ]_1 "ip"_1 op("iq")_1 \ + x^1 b^1 frak(b)^1 2^1 dot^1 lg^1 !^1 \\^1 ]^1 "ib"^1 op("id")^1 \ + x_1 y_1 "_"_1 x^1 l^1 "`"^1 attach(I,tl:1,bl:1,tr:1,br:1) + scripts(sum)_1^1 integral_1^1 |1/2|_1^1 \ + x^1_1, "("b y")"^1_1 != (b y)^1_1, "[∫]"_1 [integral]_1 $ |
