The amsmath package |
If you are going beyond the most basic level
of displayed equations, you will benefit from using the
amsmath
package that plugs into
LaTeX. This package has lots of useful features for multi-line
equations, compound symbols, even commutative diagrams!
To load this package, put the command \usepackage{amsmath}
in the preamble of your LaTeX input file. Now you can make
aligned equations, for example, like this:
\documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \begin{align} \cos^2\psi+\sin^2\psi & = 1, \\ \cosh^2\omega-\sinh^2\omega &=1. \end{align} \end{document}
Here the separate lines of the display are separated in the input
file by a double backslash \\
, and the alignment point(s)
are indicated by ampersands &
. Notice the automatically
generated equation numbers; you can suppress the equation numbers
via \begin{align*} ... \end{align*}
(the "star form" of
the align environment).
Documentation for the amsmath
package is
available.
The amsmath package |