GNU TeXmacsUser manualReferenceAboutEnglish·Deutsch·中文
算术操作

<plus|expr-1|\(\cdots\)|expr-n>

<minus|expr-1|\(\cdots\)|expr-n>
(加法和减法)

对数或者长度加或减.例如,<plus|1|2.3|5>得到8.3以及<plus|1cm|5mm>得到. 对于减法,其返回值是最后一个参数之前的所有参数的和减去最后一个参数所得.比如<minus|1>产生-1,<minus|1|2|3|4>得到2.

<times|expr-1|\(\cdots\)|expr-n>
(乘法)

返回n个表达式的乘积的值.若是长度的运算,则只允许有一个长度的表达式.比如,<times|3|3> = 9,<times|3|2cm> = .

<over|expr-1|\(\cdots\)|expr-n>
(除法)

返回前n-1个表达式的积除以最后一个表达式所得的值.例如,<over|1|2|3|4|5|6|7> = 102.857,<over|3spc|7> = ,<over|1cm|1pt> = 28.4528.

<div|expr-1|expr-2>

<mod|expr-1|expr-2>
(除法和模)

例如<div|18|7>=2 and <mod|18|7>=4.

<equal|expr-1|expr-2>

<unequal|expr-1|expr-2>

<less|expr-1|expr-2>

<lesseq|expr-1|expr-2>

<greater|expr-1|expr-2>

<greatereq|expr-1|expr-2>
(数或长度比较)

返回值是布尔类型的.例如,<less|123|45>返回false,<less|123mm|45cm>返回true.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".