一元/二元运算符

You can choose various unary and binary operators to build your LibreOffice Math formula. Unary refers to operators that affect one placeholder. Binary refers to operators that connect two placeholders. The lower area of the Elements pane displays the individual operators. The context menu of the Commands window also contains a list of these operators, as well as additional operators. If you need an operator that is not contained in the Elements pane, use the context menu or type it directly in the Commands window.

要访问此命令...

打开“命令”窗口的上下文菜单 - 选择一元/二元运算符

Choose View - Elements; then on the Elements pane select Unary/Binary Operators from the listbox.


The following is a complete list of the unary and binary operators. The symbol next to the operator indicates that it can be accessed through the Elements pane (choose View - Elements) or through the context menu of the Commands window.

一元和二元运算符

Icon

加号

插入带有一个占位符的加号您也可以在命令窗口中输入+<?>

Icon

减号

插入带有一个占位符的减号您也可以在命令窗口中输入-<?>

Icon

正负符号

插入带有一个占位符的加/减号您也可以在命令窗口中输入+-<?>

Icon

负正符号

插入带有一个占位符的减/加号您也可以在命令窗口中输入-+<?>

Icon

加号

插入带两个占位符的加号您也可以在“命令”窗口中输入<?>+<?>

Icon

乘法(点)

插入带有两个占位符的点运算符。您也可以在命令窗口中输入<?>cdot<?>

Icon

乘法 (x)

插入带有两个占位符的 'x' 乘号您也可以在命令窗口中输入<?>times<?>

Icon

乘法 (*)

插入带有两个占位符的乘号。你也可以在命令窗口中输入<?>*<?>

Icon

减法

插入带有两个占位符的减号,您也可以在命令窗口中输入<?>-<?>

Icon

除法(分数线)

插入带有两个占位符的分数。您也可以在命令窗口中输入<?>over<?>

Icon

除法

插入带两个占位符的除号。您也可以在命令窗口中输入<?>div<?>

Icon

除法(斜线)

插入带有两个占位符的 '/' 斜线。您也可以在命令窗口中输入<?>/<?>

Icon

布尔型 NOT

用一个占位符插入一个布尔型 NOT您也可以在命令窗口中输入neg<?>

Icon

布尔型 AND

插入带有两个占位符的布尔型 AND您也可以在命令窗口中输入<?> and <?>

Icon

布尔型 OR

插入带有两个占位符的布尔型 OR您也可以在命令窗口中输入<?>or<?>

Icon

连接

插入带有两个占位符的连接符号您也可以在命令窗口中输入circ

You can also insert user-defined unary operators by typing uoper in the Commands window, followed by the syntax for the character. This function is useful for incorporating special characters into a formula. For example, the command uoper %theta x produces a small Greek letter theta (a component of the LibreOffice Math character set). You can also insert characters not in the LibreOffice character set by choosing Tools - Symbols - Edit.

You can also insert user-defined binary commands by typing boper into the Commands window. For example, the command y boper %theta x produces the small Greek letter theta preceded by a y and followed by an x. You can also insert characters not in the LibreOffice character set by choosing Tools - Symbols - Edit.

通过在命令窗口中输入<?>oplus<?>,您可以在文档中插入一个带圆圈的加号运算符

命令窗口中输入<?>ominus<?> 可插入一个带圆圈的减号

命令窗口中输入<?>odot<?> 可在公式中插入一个带圆圈的点运算符

命令窗口中输入<?>odivide<?> 可在公式中插入带圆圈的除法运算符

命令窗口输入 a widebslash b,可产生两个字符并且二者之间有一条从左下角到右上角的斜线。这两个字符被设置为:斜线左边的字符高、斜线右边的字符低。该命令也可通过命令窗口的上下文菜单获得。

命令窗口输入 a widebslash b,可产生两个字符并且二者之间有一条从左上角到右下角的斜线。这两个字符被设置为:斜线左边的字符低、斜线右边的字符高。该命令也可通过命令窗口的上下文菜单获得。

命令 subsup 可以用来在您公式中的字符上加上根指数和幂,例如 a sub 2。

提示图标

If you want to use a colon ':' as division sign, choose Tools - Symbols or click the Symbols icon on the Tools bar. Click the Edit button in the dialog that appears, then select the Special symbol set. Enter a meaningful name next to Symbol, for example, "divide" and then click the colon in the set of symbols. Click Add and then OK. Click OK to close the Symbols dialog,too. Now you can use the new symbol, in this case the colon, by entering its name in the Commands window, for example, a %divide b = c.


警告图标

在“命令”窗口中手动输入时应注意,对于很多运算符而言,空格符是对保证结构的正确必不可少的。尤其是当您用数值代替占位符时,例如,建立除式 4 div 3 或 a div b 时。