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.

4.6. Tabula<strong>to</strong>r s<strong>to</strong>ps 81<br />

which also increments the necessary counter <strong>and</strong> generates the proper<br />

number. The above examples were produced with<br />

\newtheorem{theorem}{Theorem} \newtheorem{axiom}{Axiom}[chapter]<br />

. . . . . . . . . . . . . . . .<br />

\begin{theorem}[Balzano--Weierstrass] Every .... \end{theorem}<br />

\begin{axiom} The natural numbers form ........... \end{axiom}<br />

The optional extra title also appears in bold face within parentheses ( )<br />

following the running number.<br />

Occasionally a structure is not numbered on its own but <strong>to</strong>gether with<br />

another structure. This can be included in the definition with another<br />

optional argument<br />

\newtheorem{struct type}[num like]{struct name}<br />

where num like is the name of an existing theorem structure that shares<br />

the same counter. Thus by defining \newtheorem{subthrm}[theorem]<br />

{Sub-Theorem}, the two structures theorem <strong>and</strong> subthrm will be numbered<br />

as a single series: Theorem 1, Sub-Theorem 2, Sub-Theorem 3,<br />

Theorem 4, <strong>and</strong> so on.<br />

For more powerful theorem <strong>to</strong>ols, see the A M S amsthm package (Section<br />

12.3.1) <strong>and</strong> the theorem package in the <strong>to</strong>ols collection (Section B.5.4).<br />

4.6 Tabula<strong>to</strong>r s<strong>to</strong>ps<br />

4.6.1 Basics<br />

On a typewriter it is possible <strong>to</strong> set tabula<strong>to</strong>r s<strong>to</strong>ps at various positions<br />

within a line; then by pressing the tab key the print head or carriage jumps<br />

<strong>to</strong> the next tab location.<br />

A similar possibility exists in L AT E X with the tabbing environment:<br />

\begin{tabbing} lines \end{tabbing}<br />

One can think of the set tab s<strong>to</strong>ps as being numbered from left <strong>to</strong> right.<br />

At the beginning of the tabbing environment, no tabs are set, except for<br />

the left border, which is called the zeroth tab s<strong>to</strong>p. The s<strong>to</strong>ps can be set<br />

at any spot within a line with the comm<strong>and</strong> \=, <strong>and</strong> a line is terminated<br />

by the \\ comm<strong>and</strong>:<br />

Here is the \=first tab s<strong>to</strong>p, followed by\= the second\\<br />

sets the first tab s<strong>to</strong>p after the blank following the word the, <strong>and</strong> the<br />

second immediately after the word by.<br />

After the tab s<strong>to</strong>ps have been set in this way, one can jump <strong>to</strong> each of<br />

the s<strong>to</strong>ps in the subsequent lines, starting from the left margin, with the<br />

comm<strong>and</strong> \>. A new line is started with the usual \\ comm<strong>and</strong>.

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

Saved successfully!

Ooh no, something went wrong!