1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
############################################################
Math Formulae ::(::)::[::]::$::
############################################################
There are three environments that put LaTeX in math mode:
math For Formulae that appear right in the text.
displaymath For Formulae that appear on their own line.
equation The same as the displaymath environment
except that it adds an equation number in
the right margin.
The math environment can be used in both paragraph and LR mode,
but the displaymath and equation environments can be used only
in paragraph mode. The math and displaymath environments are
used so often that they have the following short forms:
\(...\) instead of \begin{math}...\end{math}
\[...\] instead of \begin{displaymath}...\end{displaymath}
In fact, the math environment is so common that it has an even
shorter form:
$ ... $ instead of \(...\)
Subscripts & Superscripts: Also known as exponent or index.
Math Symbols: Various mathematical squiggles.
Spacing in Math Mode: Thick, medium, thin and negative spaces.
Math Miscellany: Stuff that doesn't fit anywhere else.
############################################################
Subscripts & Superscripts ::_::^::
############################################################
To get an expression exp to appear as a subscript, you just
type _{exp}. To get exp to appear as a superscript, you type
^{exp}. LaTeX handles superscripted superscripts and all of
that stuff in the natural way. It even does the right
thing when something has both a subscript and a superscript.
############################################################
Math Symbols
############################################################
LaTeX provides almost any mathematical symbol you're likely
to need. The commands for generating them can be used only in
math mode. For example, if you include $\pi$ in your source,
you will get the symbol in your output.
############################################################
Spacing in Math Mode
############################################################
In a math environment, LaTeX ignores the spaces you type and
puts in the spacing that it thinks is best. LaTeX formats
mathematics the way it's done in mathematics texts. If you
want different spacing, LaTeX provides the following four
commands for use in math mode:
\; - a thick space ::;::
\: - a medium space :::::
\, - a thin space ::,::
\! - a negative thin space ::!::
############################################################
Math Miscellany
############################################################
\cdots ::cdots::
Produces a horizontal ellipsis where the dots are raised to
the centre of the line. eg.
\ddots ::ddots::
Produces a diagonal ellipsis. eg.
\frac{num}{den} ::frac::
Produces the fraction num divided by den. eg.
\ldots ::ldots::
Produces an ellipsis. This command works in any mode, not
just math mode. eg.
\overbrace{text} ::overbrace::
Generates a brace over text. eg.
\overline{text} ::overline::
Causes the argument text to be overlined. eg.
\sqrt[root]{arg} ::sqrt::
Produces the square root of its argument. The optional argument,
root, determines what root to produce, i.e., the cube root
of x+y would be typed
as $\sqrt[3]{x+y}$. eg.
\underbrace{text} ::underbrace::
Generates text with a brace underneath. eg.
\underline{text} ::underline::
Causes the argument text to be underlined. This command can
also be used in paragraph and LR modes. eg.
\vdots ::vdots::
Produces a vertical ellipsis. eg.
|