GNU TeXmacsUser manualReferenceAboutEnglish·Français·Deutsch·Español·Italiano·Português·Polski·中文
Typing mathematical symbols

The Greek characters are obtained in TeXmacs using the ⇧F7-key. For instance, ⇧F7A yields \(\alpha\) and ⇧F7⇧G yields \(\Gamma\). Similarly, F6, F7, F8 and ⇧F6 can be used in order to type bold, calligraphic, fraktur and blackboard bold characters. For instance, F8M yields \(\mathfrak{m}\), ⇧F6⇧R yields \(\mathbb{R}\) and F6F7⇧Z yields \(\boldsymbol{\mathcal{Z}}\).

Greek characters can also be obtained as “variants” of Latin characters using the ⇥-key. For instance, P⇥ yields \(\pi\). The ⇥-key is also used for obtaining variants of the Greek letters themselves. For instance, both ⇧F7P⇥ and P⇥⇥ yield \(\varpi\). An alternative way to enter blackboard bold characters is to type the same capital twice. For instance, ⇧Z⇧Z yields \(\mathbb{Z}\).

Some symbols admit many variants. For instance, < yields \(<\), <⇥ yields \(\in\), <⇥⇥ yields \(\subset\), <⇥⇥⇥ yields \(\prec\), and so on. You may “cycle back” among the variants using ⇧⇥. For instance, <⇥⇥⇧⇥ is equivalent to <⇥.

Many other mathematical symbols are obtained by “natural” key-combinations. For instance, -> yields \(\rightarrow\), --> yields \(\longrightarrow\) and >= yields \(\geqslant\). Similarly, |⇥- yields \(\vdash\), |-> yields \(\mapsto\) and -><- yields \(\rightleftarrows\). The following general rules hold in order to enter mathematical symbols:

⇥

is the main key for obtaining variants. For instance, >= yields \(\geqslant\), but >=⇥ yields \(\geq\). Similarly, <⇥⇥ yields \(\subset\), <⇥⇥= yields \(\subseteq\) and <⇥⇥=⇥ yields \(\subseteqq\). Also, ⇧P⇥ yields \(\wp\) and E⇥ yields the constant \(\mathrm{e} = \exp (1)\).

@

is used for putting symbols into circles or boxes. For instance, @+ yields \(\oplus\) and @X yields \(\otimes\). Similarly, @⇥+ yields \(\boxplus\).

/

is used for negations. For instance, =/ yields \(\neq\) and <=/ yields \(\not{\leqslant}\). Notice that <=⇥⇥/ yields \(\nleqq\), while <=⇥⇥/⇥ yields \(\lneqq\).

!

is used after arrows in order to force scripts to be placed above or below the arrow. For instance, -->^X yields \(\longrightarrow^x \), but -->!^X yields \(\mathop{\longrightarrow}\limits^x\).

The logical relations \(\wedge\) and \(\vee\) are obtained using & and %. The operators \(\cap\) and \(\cup\) are natural variants &⇥ and %⇥. Various miscellaneous symbols can be obtained using the ⇧F5 prefix.

Notice that certain symbols with a different mathematical meaning are sometimes denoted in a similar way; such symbols are called homoglyphs. For instance, the vertical bar \(|\) can be used as a separator for defining sets \(R^{>} = \{ x \in R|x > 0 \}\), but also as the binary relation “divides” \(11 \mathrel{|} 1001\). Often, but not always, homoglyphs admit a different spacing. The most annoying ambiguity is between invisible multiplication \(xy\) and function application \(\sin x\), which are entered using the shortcuts * resp. ␣.

In order to facilitate certain automated treatments of your documents, such as mathematical syntax checking, we incite authors to pay attention to the homoglyph problem when entering formulas. For more information on this issue and how TeXmacs can assist you to use the appropriate notations, we refer to our section on the semantics of mathematical symbols.

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".