typst/tests/typ/math/attach.typ
2023-02-02 14:13:56 +01:00

35 lines
623 B
XML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Test top and bottom attachments.
---
// Test basics.
$f_x + t^b + V_1^2
+ attach(A, top: alpha, bottom: beta)$
---
// Test text vs ident parsing.
$pi_1(Y), a_f(x) != a_zeta(x)$
---
// Test associativity and scaling.
$ 1/(V^2^3^4^5) $
---
// Test high subscript and superscript.
$sqrt(a_(1/2)^zeta)$
$sqrt(a_alpha^(1/2))$
$sqrt(a_(1/2)^(3/4))$
---
// Test frame base.
$ (-1)^n + (1/2 + 3)^(-1/2) $
---
// Test limit.
$ lim_(n->infty \ n "grows") sum_(k=0 \ k in NN)^n k $
---
// Test forcing scripts and limits.
$ limits(A)_1^2 != A_1^2 $
$ scripts(sum)_1^2 != sum_1^2 $
$ limits(integral)_a^b != integral_a^b $