Exercise on formatting equationsFormatting equations in LaTeXDisplayed equationsThe amsmath package

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}

aligned equations 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.


logo The Math 696 course pages were last modified April 5, 2005.
These pages are copyright © 1995-2005 by Harold P. Boas. All rights reserved.
 
Exercise on formatting equationsFormatting equations in LaTeXDisplayed equationsThe amsmath package