There are four environments that put LaTeX in math mode:

- math (see below)
- displaymath
- eqnarray
- equation

The math environment is for formulas that appear right in the text. The displaymath, eqnarray, and equation environments are for formulas that apppear on their own line(s). The math environment can be used in both paragraph and LR mode, but displaymath, eqnarray, and equation environments can be used only in paragraph mode.

However, it is used so often that it has two equivalent shorter forms:\begin{math} math equation \end{math}

or just\( math equation \)

In LaTeX2e one can also use$ math equation $

\ensuremath{math equation}

For example, Subscripts and superscripts can only be used in math mode. To include these in running text one could use:

Note that it is standard to use math mode for letters, such as the theThe formula for water is H$_2$O. If the hypotenuse is $c$, then $c^2=a^2+b^2$.

- Displaymath environment
- Eqnarray environment
- Equation environment
- LaTeX Modes
- Math fonts and styles
- Subscripts and Superscripts
- Math Symbols
- Spacing in Math Mode
- Math Miscellany
- Ellipses
`\boldmath`for a bold math font`\frac`for generating built-up fractions`\stackrel`for putting things above each other`\sqrt`for square (and nth) roots

Back to the Table of Contents

Revised by Sheldon Green, agxsg@giss.nasa.gov, 31 May 1995.