To tell TeX that an expression needs to be typeset using conventions for math, type the expression in <code>$</code>...<code>$</code>. For examples <code>$x$</code> gives <context>$x$</context>, while <code>$2$</code> gives <context>$2$</context>. Notice that the ''x'' is in italic while the ''2'' is upright. This is the usual mathematic convention.== Introduction ==
More To tell TeX that an expression needs to be typeset using conventions for math, type the expression in <code>$</code>...<code>$</code>. For examples <code>$x$</code> gives <context>$x$</context>, while <code>$2$</code> gives <context>$2$</context>. Notice that the ''x'' is in italic while the ''2'' is upright. This is the usual mathematic convention. You can also write in the math mode using the command <cmd>math</cmd> or <cmd>mathematics</cmd>. == Binary Operators Relations== Basic binary symbols can be produced by typing the correspoding keyboard character. These include + - = < > A general expressions can be input in the natural manner. For example <code>$x+y$</code> gives <context>$x+y$</context>. Notice that TeX took care of the spacing around <code>+</code>. Mathematicians use a lot of symbols that are not avialable on the keyboard. TeX (and ConTeXt) provide macros to input them. For example <code>$x \times y$</code> gives <context>$x \times y$</context>. In ConTeXt, you can see the The following is a parial list of all math macros by frequently used binary operators and relations. {| border="1"! colspan="2" | Commonly Used Binary Operators! colspan="2" | Commonly used relation symbols! colspan="2" | Set Relations|-|<cmd>pm</cmd>||<context>$\pm$</context>|<cmd>leq</cmd>||<context>$\leq$</context>|<cmd>subset</cmd>||<context>$\subset$</context>|-|<cmd>mp</cmd>||<context>$\mp$</context>|<cmd>ll</cmd>||<context>$\ll$</context>|<cmd>subseteq</cmd>||<context>$\subseteq$</context>|-|<cmd>times</cmd>||<context>$\times$</context>|<cmd>geq</cmd>||<context>$\geq$</context>|<cmd>supset</cmd>||<context>$\supset$</context>|-|<cmd>div</cmd>||<context>$\div$</context>|<cmd>gg</cmd>||<context>$\gg$</context>|<cmd>supseteq</cmd>||<context>$\supseteq$</context>|-|<cmd>ast</cmd>||<context>$\ast$</context>|<cmd>equiv</cmd>||<context>$\equiv$</context>|<cmd>cap</cmd>||<context>$\cap$</context>|-|<cmd>star</cmd>||<context>$\star$</context>|<cmd>sim</cmd>||<context>$\sim$</context>|<cmd>cup</cmd>||<context>$\cup$</context>|-|<cmd>bullet</cmd>||<context>$\bullet$</context>|<cmd>simeq</cmd>||<context>$\simeq$</context>|-|<cmd>circ</cmd>||<context>$\circ$</context>|<cmd>approx</cmd>||<context>$\approx$</context>|-|<cmd>cdot</cmd>||<context>$\cdot$</context>|<cmd>showmathcharactersneq</cmd>||<context>$\neq$</context>|}
Thus to To type the greek character ''α'' you can say <code>$\alpha$</code> which gives <context>$\alpha$</context>. If you have a utf enabled keyboard, you can also type the α directly and ConTeXt will correctly interpret it. For example,
TeX uses <code>^</code> and <code>_</code> to denote superscipts and subscipts. It is perhaps easiest to explain this by means of some examples. <context>$x_{10}^{15}$</context> is written as <code>$x_{10}^{15}$</code> or <code>$x^{15}_{10}$</code>. The order in which <code>_</code> and <code>^</code> are given does not matter. One can also type complicated expressions like <context>$a_{b_{c_{d_{e}}}}$</context> as <code>$a_{b_{c_{d_{e}}}}$</code>.
== List of All Math macros ==
In ConTeXt, you can see the list of all math macros by <cmd>showmathcharacters</cmd>