diff --git a/library/src/symbols/sym.rs b/library/src/symbols/sym.rs index 5a68cc803..6a6ca758c 100644 --- a/library/src/symbols/sym.rs +++ b/library/src/symbols/sym.rs @@ -342,7 +342,8 @@ pub(crate) const SYM: &[(&'static str, Symbol)] = symbols! { ], // Calculus. - infty: '∞', + infinity: '∞', + oo: '∞', diff: '∂', nabla: '∇', sum: ['∑', integral: '⨋'], diff --git a/tests/typ/math/attach.typ b/tests/typ/math/attach.typ index 89ecfc48d..3963c9c87 100644 --- a/tests/typ/math/attach.typ +++ b/tests/typ/math/attach.typ @@ -26,7 +26,7 @@ $ (-1)^n + (1/2 + 3)^(-1/2) $ --- // Test limit. -$ lim_(n->infty \ n "grows") sum_(k=0 \ k in NN)^n k $ +$ lim_(n->oo \ n "grows") sum_(k=0 \ k in NN)^n k $ --- // Test forcing scripts and limits. diff --git a/tests/typ/math/op.typ b/tests/typ/math/op.typ index c7b34c54a..b76a2da63 100644 --- a/tests/typ/math/op.typ +++ b/tests/typ/math/op.typ @@ -12,8 +12,8 @@ $ &sin x + log_2 x \ --- // Test scripts vs limits. #set text("Latin Modern Roman") -Discuss $lim_(n->infty) 1/n$ now. -$ lim_(n->infty) 1/n = 0 $ +Discuss $lim_(n->oo) 1/n$ now. +$ lim_(n->infinity) 1/n = 0 $ --- // Test custom operator.