Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
48 views

Align and Math

The document discusses the align and split environments provided by the amsmath package for displaying mathematical equations over multiple lines. The align environment allows for multiple lines of math with alignment points for optional multiple columns. The split environment is used to break a single equation over multiple lines with alignment. These two environments are sufficient for most math display needs, though amsmath provides other environments as well.

Uploaded by

science1990
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views

Align and Math

The document discusses the align and split environments provided by the amsmath package for displaying mathematical equations over multiple lines. The align environment allows for multiple lines of math with alignment points for optional multiple columns. The split environment is used to break a single equation over multiple lines with alignment. These two environments are sufficient for most math display needs, though amsmath provides other environments as well.

Uploaded by

science1990
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1

Math with amsmath


The amsmath package provides much more advanced math capability com-
pared to basic LATEX. While it provides many environments in which to
display math, I am only showing a small number of them in this document.
The most versatile environment for displaying math is align. It allows
multiple lines of math (numbering each line), with an alignment point for
(optional) multiple columns.
The basic environment, without an equation number (by using the
‘starred’ version of the environment, align*). Without alignment, the
equation is centred, the same as using \[...\]:

a+b=c+d

Use the familiar \\ to start a new line, and an ampersand (&) for alignment:1

a+b=c+d (1)
e=f +g+h (2)

With multiple columns:

a=b+c j =k+l+m u+v =w (3)


d+e=f n+o+p=q x=y+z (4)

The amsmath package defines the split environment to break a single equa-
tion over multiple lines. See now how easy it is to align the three lines when
the alignment point lies after the equals sign:

x=y+z (5)
a=b+c
(6)
+d+e

I find these two environments sufficient for almost everything. Look at one
of the various math guides for other environments the amsmath package
provides if align and split do not serve your purposes.

1
I align my equations after the equals sign, for reasons that become clear later; for
correct spacing, empty curly braces must be inserted before the ampersand.

You might also like