📜  \ DeclareMathOperator-Tex命令

📅  最后修改于: 2020-10-13 16:52:58             🧑  作者: Mango


名称

\ DeclareMathOperator-允许您定义自己的运算符名称。

概要

{ \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命令允许您定义自己的运算符名称;随后使用适当的字体和间距对它们进行排版。

  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)$

打印