MathML Demo: <mo> - operator, fence, separator, or accent 编辑

Binary Operators and Relations

The following table contains instances of all operators found on the SWP Binary Operations and Binary Relations panels. The symbols occur in the context of a simple expression. In general, the lspace and rspace around the relation should be greater than that around the operation. Operator and relations center vertically on the math axis.

a±bcabca×bcabca*bc
abcabcabcabca÷bc
abcabcabcabcabc
abcabcabcabcabc
abcabcabcabcabc
abcabcabcabcabc
abcabca⨿bcabcabc
abcabcabcabcabc
abcabcabcabcabc
abcabcabcabcabc
abcabcabcabcabc
abcabcabca·bcabc
a&bca±bcabca×bcabc
a*bcabcabcabcabc
a÷bcabcabcabcabc
abcabcab\smallsmilecab\smallfrowncabc
abcabcabcabcabc
abcabcabcabcabc
abcabcabca⨿bcabc
abcabcabcabcabc
abcab\vartrianglec   

Arrows

The following table contains instances of all arrows found on the SWP Arrows panel. The symbols occur in the context of a simple expression. In general, the lspace and rspace around arrows should be similar to the spacing around relations.

There is an issue with the markup of "long" LaTeX arrows in MathML. There are entities from these arrows, &xlarr; &xlArr; &xrarr; etc. but they have no standard unicodes. They can be viewed as stretched versions of short arrows. \longleftarrow can be scripted as <mo>&xlarr;</mo> or as <mo stretchy="true" minsize="1.8">&larr;</mo>.

abcabcabcabcabc
abcabcabcabcabc
abcabcabcabcabc
abcabcabca+bca-bc
a+bca-bca+bca-bca+bc
a-bca+bca-bca+bca-bc
a+bca-bca+bca-bca+bc
a-bca+bca-bca+bca-bc
a+bca-bca+bca-bca+bc
a-bca+bc   

Negated Relations

The following table contains instances of all negated relations found on the SWP panel. The symbols occur in the context of a simple expression. In general, the lspace and rspace around negated relations should be similar to the spacing around relations.

a+bcda+b=cda-bc*da-bc*da+b≨︀c×d
a+bc×da-b≩︀c÷da-bc÷da+bcda-bc*d
a+bc×da-bc÷da+bcda-bc*da+bc×d
a-bc÷da+b⩽̸cda-b⩾̸c*da+bc×da-bc÷d
a+b⪯̸cda-b⪰̸c*da+bc×da-bc÷da+bcd
a-bc*da+b≦̸c×da-b≧̸c÷da+bcda-bc*d
a+bc×da-bc÷da+bcda-bc*da+bc×d
a-bc÷da+b⊊︀cda-b⊋︀c*da+b⫅̸c×da-b⫆̸c÷d
a+bcda-bc*da+b⫋︀c×da-b⫌︀c÷da+bcd
a-bc*da+bc×da-bc÷da+bcda-bc*d
a+bc×da+bc÷da+bcda+bc*da+bc×d
a+bc÷da+bcda+bc*da+bc×da+bc÷d
a+bcda+bc*da+bc×da+bc÷da+bcd
a+bc*d    

Fences

LaTeX fences that begin with \left and \right are stretchy. They grow vertically to the height and depth of the enclosed math run. This growth is continuous and symmetric. Here are examples of the standard LaTeX fences (x)[y]{1}Ta.|π|||Σ|| and /F/\n\1.0x2xa2xM. Here are some examples with a bit more stretching (k122)[k122]{k122}k122k122k122|k122|k122 and /k122/\k122\k122k122k122k122k122k122

Generally, it is safest to script all attributes that configure an <mo> as a fence (fence, stretchy, symmetric, lspace, rspace). This is especially important for vertical arrows used as fences. The default attributes given in the MathML Operator Dictionary don't configure vertical arrows as fences.

In LaTeX, the lspace on a left side fence delimiter and the rspace on a right side fence delimiter is not 0. Here's an example to illustrate spacing around fences M[MMM]M(MM)M{MM}MMMM|MM|MMM[MMM]+(MM)+{MM}+MM+|MM|MMM[MMM](MM){MM}MM|MM|MM

In LaTeX, all fencing symbols are symmetric - they have equal extent above and below the math axis of the run of math in which they occur directly.

Fences that enclose fractions illustrate the symmetry issue as seen below.(12345)+1

Given the symmetric restriction on fences, it is very difficult for LaTeX to produce the product of a fenced row vector and a fenced column vector as shown below. [abcd][abcd]We want the row vector to typeset at the same level as the top row of the column vector, but this is difficult to achieve.

This problem can be solved using aligned arrays, as followsabcdabcdHowever, all reasonable attempts to fence the column vector will fail because LaTeX fences are symmetric.

In MathML, operators that are used for fencing are never symmetric and are always stretchy by default. (i.e., as documented in the suggested Operator Dictionary). Hence <mo symmetric="true"> must be scripted if the intent is to emulated LaTeX fence behavior.

The commands \big, \Big, \bigg and \Bigg produce a discreet set of increasingly taller fences, |1+|2+|3+|4+|.|+5|+6|+7|+8| . Here's the same expression in a display|1+|2+|3+|4+|.|+5|+6|+7|+8|The size ratio is 3.0 : 2.4 : 1.8 : 1.2. Fixed sized fences are useful with nested fences as in the following example[[AB]+[BA]]+[AB]

LaTeX fences that are built into fractions (\binom, etc.) are not stretchy, but they are taller in displays. Emulating this behavior in MathML would require a context sensitive transaltion. Further, non-stretchy fences aren't usually desirable. Hence we script binomial fences as stretchy in MathML.

Some examples of inline fractions (8-58)+[12]+122+1xyx+1+|e-2πtθ| with built in fences. Same expression in a display.(8-58)+[12]+122+1xyx+1+|e-2πtθ|

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:54 次

字数:63159

最后编辑:7 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文