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.

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

produces<br />

\[ a_0 + \cfrac{1}{a_1 + \cfrac{1}{a_2 +<br />

\cfrac{1}{a_3 + \cfrac{1}{a_4 +<br />

\dotsb }}}} \]<br />

1<br />

a0 +<br />

1<br />

a1 +<br />

1<br />

a2 +<br />

1<br />

a3 +<br />

a4 + · · ·<br />

If the optional argument pos is missing, the numera<strong>to</strong>r over is centered<br />

on the horizontal rule; otherwise it may take values of l or r <strong>to</strong> left or<br />

right justify the numera<strong>to</strong>r.<br />

12.2.4 Matrices<br />

St<strong>and</strong>ard L AT E X possesses the environment array for producing arrays<br />

<strong>and</strong> matrices. The amsmath package provides the additional environments<br />

pmatrix, bmatrix, Bmatrix, vmatrix, <strong>and</strong> Vmatrix, which au<strong>to</strong>matically<br />

add the enclosing braces (), [], {}, | | <strong>and</strong> around the array, <strong>and</strong> in the<br />

right size. For completeness, there is also a matrix environment with no<br />

braces.<br />

In contrast <strong>to</strong> the st<strong>and</strong>ard array environment (Section 4.8.1), these<br />

matrix environments do not require an explicit column specification as<br />

argument. By default, up <strong>to</strong> 10 centered columns may be used without<br />

any argument. (This maximum number may be changed by giving the<br />

special counter MaxMatrixCols a new value with either \setcounter<br />

or \add<strong>to</strong>counter.) Otherwise the matrix environments are used in the<br />

same way as the array environment.<br />

The following example is taken from Section 5.4.3 on page 134 <strong>and</strong> is<br />

recast here using A M S-L AT E X constructs.<br />

(1,2,...,n) <br />

p1

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

Saved successfully!

Ooh no, something went wrong!