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 271<br />

With the exception of split, all exist in a st<strong>and</strong>ard <strong>and</strong> a *-form. As for<br />

eqnarray, the st<strong>and</strong>ard form adds an au<strong>to</strong>matic equation number <strong>to</strong> each<br />

line, while the *-form does not. The st<strong>and</strong>ard L AT E X equation environment<br />

for single line formulas is also available in A M S-L AT E X in a *-form. It may<br />

be used in combination with multiline environments.<br />

Common features of alignment environments<br />

All the alignment, or multiline, environments switch <strong>to</strong> math mode at the<br />

start <strong>and</strong> back <strong>to</strong> text mode at the end, except for split which must<br />

be called in math mode. A new line is forced in the formula with the<br />

\\ comm<strong>and</strong>, as usual; an optional argument \\[len] can be added <strong>to</strong><br />

increase the line spacing by len, again as usual.<br />

The au<strong>to</strong>matic numbering with the st<strong>and</strong>ard forms can be suppressed<br />

for single lines by adding \notag before the \\ line break. Alternatively,<br />

the line can be given a desired marker with \tag{mark}. For example,<br />

with \tag{$\dag$}, the marker is (†). Using the *-form instead, the<br />

marker text is printed without the parentheses.<br />

The vertical position of the equation number or marker can be adjusted<br />

with the comm<strong>and</strong><br />

\raisetag{len}<br />

which moves the marker upwards by len for that line only. A negative<br />

value moves it downwards.<br />

The multline environment<br />

The multline environment is a variant of the equation environment for<br />

single formulas that are <strong>to</strong>o long for one line. The line breaks occur where<br />

the user forces them with the \\ comm<strong>and</strong>. The first line is left justified,<br />

the last right justified, <strong>and</strong> lines in between are centered. However, if the<br />

option fleqn has been given, all the lines appear left justified.<br />

The equation number, if present, appears at the right of the last line<br />

by default or if the option reqno has been selected; if the option leqno<br />

has been chosen, the number is placed at the left of the first line. (See<br />

Section 12.2.8 for the amsmath options.)<br />

It is possible <strong>to</strong> shift individual lines fully <strong>to</strong> the left or right with<br />

the comm<strong>and</strong>s \shoveleft{formula} <strong>and</strong> \shoveright{formula}. The<br />

entire formula text for that line, except the terminating \\, is placed in<br />

their arguments.<br />

The left <strong>and</strong> right margins for the formula are set by the length parameter<br />

\multlinegap which is initially 10 pt. This may be altered by the<br />

user with the \setlength or \add<strong>to</strong>length comm<strong>and</strong>s.

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

Saved successfully!

Ooh no, something went wrong!