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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

12.2. St<strong>and</strong>ard features of A M S-L AT E X 267<br />

\hdotsfor[2.0]{4}\\<br />

a_{q_kq_1} & a_{q_kq_2} & \dots & a_{q_kq_k}<br />

\end{vmatrix} \]<br />

Comparing this input text with that on page 134, one sees that it<br />

is simpler <strong>and</strong> easier <strong>to</strong> follow. The only new comm<strong>and</strong> used here is<br />

\hdotsfor which has the syntax<br />

\hdotsfor[stretch]{n}<br />

<strong>and</strong> which prints a continuous line of dots through n columns. The<br />

optional argument stretch is a multiplicative number <strong>to</strong> increase the dot<br />

density, being 1.0 by default.<br />

\[ \begin{matrix} a & b & c & d & e\\<br />

x & \hdotsfor{3} & z<br />

\end{matrix} \]<br />

a b c d e<br />

x . . . . . . . . . z<br />

Compare the st<strong>and</strong>ard dot spacing above with that from \hdotsfor[2.0]<br />

in the previous example.<br />

The initial letter of each of the xmatrix environments indicates the<br />

type of braces that enclose it: pmatrix for (round) parentheses, bmatrix<br />

for (square) brackets, Bmatrix for (curly) braces, vmatrix for vertical<br />

lines, <strong>and</strong> Vmatrix for double vertical lines. They appear as<br />

r s t<br />

u v w<br />

x y z<br />

⎧<br />

⎪⎨ r s<br />

⎫<br />

t ⎪⎬<br />

u<br />

⎪⎩<br />

x<br />

v<br />

y<br />

w<br />

⎪⎭<br />

z<br />

⎛<br />

r<br />

⎜<br />

⎝u<br />

s<br />

v<br />

⎞<br />

t<br />

⎟<br />

w⎠<br />

x y z<br />

<br />

<br />

r<br />

<br />

u<br />

<br />

x<br />

s<br />

v<br />

y<br />

<br />

t <br />

<br />

<br />

w<br />

<br />

z <br />

where each matrix has been produced with<br />

⎡<br />

r<br />

⎢<br />

⎣u<br />

s<br />

v<br />

⎤<br />

t<br />

⎥<br />

w⎦<br />

x y z<br />

<br />

<br />

r<br />

<br />

u<br />

<br />

x<br />

s<br />

v<br />

y<br />

<br />

t <br />

<br />

<br />

w<br />

<br />

z <br />

\[ \begin{xmatrix} r & s & t\\ u & v & w\\ x & y & z<br />

\end{xmatrix} \]<br />

where xmatrix is set <strong>to</strong> matrix, pmatrix, bmatrix, Bmatrix, vmatrix,<br />

<strong>and</strong> Vmatrix one after the other.<br />

To generate a small array within a text formula, one can apply the<br />

smallmatrix environment. In this way <br />

a b c<br />

e m r can be made with<br />

$ \bigl( \begin{smallmatrix} a & b & c\\ e & m & r<br />

\end{smallmatrix} \bigr) $<br />

12.2.5 User extensions <strong>and</strong> fine adjustments<br />

Function names<br />

St<strong>and</strong>ard LAT Package:<br />

EX recognizes a number of preprogrammed function names<br />

amsopn (Section 5.3.8) that are printed in math made by placing a backslash in

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

Saved successfully!

Ooh no, something went wrong!