op
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
.
Parameters
Parameters are the inputs to a function. They are specified in
parentheses after the function name.
text
Required Positional
Positional parameters are specified in order, without names.
The operator's text.
limits
Settable
Settable parameters can be customized for all following uses of the
function with a set
rule.
Whether the operator should show attachments as limits in display mode.
Default: false