op
ElementElementElement functions can be customized with set
and show
rules.
Element
Element functions can be customized with
set
and show
rules.A text operator in an equation.
Example
$ tan x = (sin x)/(cos x) $
$ op("custom",
limits: #true)_(n->oo) n $

Predefined Operators
Typst predefines the operators arccos
, arcsin
, arctan
, arg
, cos
,
cosh
, cot
, coth
, csc
, csch
, ctg
, deg
, det
, dim
, exp
,
gcd
, lcm
, hom
, id
, im
, inf
, ker
, lg
, lim
, liminf
,
limsup
, ln
, log
, max
, min
, mod
, Pr
, sec
, sech
, sin
,
sinc
, sinh
, sup
, tan
, tanh
, tg
and tr
.
ParameterParameterParameters are input values for functions. Specify them in parentheses after the function name.
Parameter
Parameters are input values for functions. Specify them in parentheses after the function name.
text
RequiredRequiredRequired parameters must be specified when calling the function.PositionalPositionalPositional parameters can be set by specifying them in order, omitting the parameter name.
Required
Required
Required parameters must be specified when calling the function.
Positional
Positional
Positional parameters can be set by specifying them in order, omitting the parameter name.
The operator's text.
limits
SettableSettableSettable parameters can be set using the set
rule, changing the default value used thereafter.
Settable
Settable
Settable parameters can be set using the
set
rule, changing the default value used thereafter.Whether the operator should show attachments as limits in display mode.
Default value: false