Math/basic
TODO: add navigation (See: To-Do List) |
To tell TeX that an expression needs to be typeset using conventions for math, type the expression in $
...$
. For examples $x$
gives , while $2$
gives . Notice that the x is in italic while the 2 is upright. This is the usual mathematic convention.
More general expressions can be input in the natural manner. For example $x+y$
gives . Notice that TeX took care of the spacing around +
. Mathematicians use a lot of symbols that are not avialable on the keyboard. TeX (and ConTeXt) provide macros to input them. For example $x \times y$
gives . In ConTeXt, you can see the list of all math macros by \showmathcharacters
Here is the first page of this list
Thus to type the greek character α you can say $\alpha$
which gives . If you have a utf enabled keyboard, you can also type the α directly and ConTeXt will correctly interpret it. For example,
\enableregime[utf] Here is some Greek math $α^2 + β^2 = γ^2$
subscript and superscipt
TeX uses ^
and _
to denote superscipts and subscipts. It is perhaps easiest to explain this by means of some examples. is written as $x_{10}^{15}$
or $x^{15}_{10}$
. The order in which _
and ^
are given does not matter. One can also type complicated expressions like as $a_{b_{c_{d_{e}}}}$
.