Align and Math
Align and Math
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)
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.