From e43903d625f1009befe4f2341e52a720d657ad05 Mon Sep 17 00:00:00 2001 From: damaxwell Date: Tue, 18 Jul 2023 00:26:20 -0800 Subject: split attach test (#1744) --- tests/typ/math/attach-p3.typ | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/typ/math/attach-p3.typ (limited to 'tests/typ/math/attach-p3.typ') diff --git a/tests/typ/math/attach-p3.typ b/tests/typ/math/attach-p3.typ new file mode 100644 index 00000000..0fc25d63 --- /dev/null +++ b/tests/typ/math/attach-p3.typ @@ -0,0 +1,24 @@ +// Test t and b attachments, part 3. + +--- +// Test limit. +$ lim_(n->oo \ 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 $ + +--- +// Error: 30-34 unknown variable: oops +$ attach(A, t: #locate(it => oops)) $ + +--- +// Show and let rules for limits and scripts +#let eq = $ ∫_a^b iota_a^b $ +#eq +#show "∫": math.limits +#show math.iota: math.limits.with(inline: false) +#eq +$iota_a^b$ -- cgit v1.2.3