28.03.2013 Views

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

276 Chapter 12. Math Extensions with A M S-L AT E X<br />

explicit spacing between the two & characters in one of the lines. See<br />

Section 5.5.1 for spacing in math mode.<br />

In summary, for the align environment <strong>and</strong> its variants, the first,<br />

third, fifth, etc. & characters are alignment markers, while the second,<br />

fourth, sixth, etc. are column pair separa<strong>to</strong>rs.<br />

Nested alignment environments<br />

We have already pointed out on page 272 how the split environment<br />

is <strong>to</strong> be placed inside an equation environment. The same is true for<br />

the environments aligned <strong>and</strong> gathered, which may be used as building<br />

blocks within formulas. Their contents <strong>and</strong> behavior are otherwise the<br />

same as their related environments.<br />

Both of these environments take an optional argument pos<br />

\begin{aligned}[pos] lines \end{aligned}<br />

\begin{gathered}[pos] lines \end{gathered}<br />

which takes values of t or b <strong>to</strong> determine the vertical alignment (<strong>to</strong>p or<br />

bot<strong>to</strong>m) when they appear beside other elements. When no pos is given,<br />

they are centered. In this way<br />

α = aa<br />

β = bbbbb<br />

γ = g<br />

is produced with<br />

versus δ = dd<br />

η = eeeeee<br />

ϕ = f<br />

versus<br />

s = x + y<br />

d = u − v − w<br />

p = x ◦ y<br />

\begin{equation*}<br />

\begin{aligned} \alpha&=aa\\ \beta&=bbbbb\\ \gamma&=g<br />

\end{aligned}<br />

\qquad\text{versus}\qquad<br />

\begin{aligned}[t] \delta&=dd\\ \eta&=eeeeee\\ \varphi&=f<br />

\end{aligned}<br />

\qquad\text{versus}\qquad<br />

\begin{gathered}[b] s= x+y\\ d= u - v - w\\ p = x\circ y<br />

\end{gathered}<br />

\end{equation*}<br />

The cases environment<br />

Although it is possible with st<strong>and</strong>ard LAT EX <strong>to</strong> produce structures of the<br />

form<br />

<br />

0<br />

Pr −j =<br />

r ! (−1)<br />

if r − j is odd,<br />

(r −j)/2 if r − j is even.<br />

(12.8)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!