- Tex Commands Reference
- Tex - Tutorial Home
\DeclareMathOperator - Tex Command
NAME
\DeclareMathOperator - allows you to define your own operator names.
SYNOPSIS
{ \DeclareMathOperator #1 #2 }
OPTIONS
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. |
DESCRIPTION
\DeclareMathOperator command allows you to define your own operator names; they are subsequently typeset using the proper font and spacing.
EXAMPLE
myOp(x)
$ myOp(x) $\text{myOp}(x)
$ \text{myOp}(x) $\DeclareMathOperator {\myOp}{myOp} \myOp(x)
$ \DeclareMathOperator {\myOp}{myOp} \myOp(x) $\myOp_a^b(x)
$ \myOp_a^b(x) $
Advertisements