\DeclareMathOperator - Tex Command



NAME

\DeclareMathOperator - allows you to define your own operator names.

SYNOPSIS

{ \DeclareMathOperator #1 #2  }

OPTIONS

InputDescription
#1operator name, including the preceding backslash; only letters a–z and A–Z are allowed; in particular, no numbers are allowed in operator names
#2Replacement 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

  1. myOp(x)
    $ myOp(x) $
  2. \text{myOp}(x)
    $ \text{myOp}(x) $
  3. \DeclareMathOperator {\myOp}{myOp}
    \myOp(x)
    
    $ \DeclareMathOperator {\myOp}{myOp} \myOp(x) $
  4. \myOp_a^b(x)
    $ \myOp_a^b(x) $
Advertisements