
\DeclareMathOperator - allows you to define your own operator names.
{ \DeclareMathOperator #1 #2 }
| Input | Description |
|---|---|
| #1 | operator name, including the preceding backslash; only letters a–z and A–Z are allowed; in particular, no numbers are allowed in operator names |
| #2 | Replacement text for the operator name. |
\DeclareMathOperator command allows you to define your own operator names; they are subsequently typeset using the proper font and spacing.
myOp(x)
\text{myOp}(x)
\DeclareMathOperator {\myOp}{myOp}
\myOp(x)
\myOp_a^b(x)