diff options
| author | damaxwell <damaxwell@alaska.edu> | 2023-07-18 00:26:20 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-18 10:26:20 +0200 |
| commit | e43903d625f1009befe4f2341e52a720d657ad05 (patch) | |
| tree | c9f970c07cfc4c89055251795d9cb105e5f007fd /tests/typ/math/attach-p3.typ | |
| parent | 7a1cd362aa150045371cc85578ef50bef2951be2 (diff) | |
split attach test (#1744)
Diffstat (limited to 'tests/typ/math/attach-p3.typ')
| -rw-r--r-- | tests/typ/math/attach-p3.typ | 24 |
1 files changed, 24 insertions, 0 deletions
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$ |
