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.

80 Chapter 4. Displayed Text<br />

These are set internally by the parameters \leftmarginn, where n st<strong>and</strong>s for i,<br />

ii, iii, iv, v, or vi. These values can be changed by the user; for example, by<br />

declaring \setlength{\leftmarginiv}{12mm}, the left margin of the fourthlevel<br />

list is shifted 12 mm from that of the third. These declarations must be<br />

made outside of the list environments <strong>and</strong> not in the list decl.<br />

At each level of list nesting, the internal macro \@listn (n being i <strong>to</strong> vi) is<br />

called. This sets the value of \leftmargin equal <strong>to</strong> that of the corresponding<br />

\leftmarginn, unless \leftmargin is explicitly declared in the list environment.<br />

That is, there does not exist a single st<strong>and</strong>ard value for \leftmargin<br />

externally, but rather six different ones. The parameter \leftmargin has meaning<br />

only within a list environment.<br />

4.5 Theorem-like declarations<br />

In scientific literature one often has text structures like<br />

Theorem 1 (Balzano–Weierstrass) Every infinite set of bounded points<br />

possesses at least one maximum point.<br />

or<br />

Axiom 4.1 The natural numbers form a set S of distinct elements. For any<br />

two elements a, b, they are either identical, a = b, or different from one<br />

another, a ≠ b.<br />

Similar structures frequently appear with names such as Definition,<br />

Corollary, Declaration, Lemma, instead of Theorem or Axiom. What they<br />

have in common is that a keyword <strong>and</strong> a running number are printed in<br />

bold face <strong>and</strong> the corresponding text in italic.<br />

Of course, these could be generated by the user by explicitly giving the<br />

type styles <strong>and</strong> appropriate number, but if a new structure of that type is<br />

later inserted in the middle of the text, the user would have the tedious<br />

job of renumbering all the following occurrences. With the comm<strong>and</strong><br />

\newtheorem{struct type}{struct title}[in counter]<br />

L AT E X will keep track of the numbering au<strong>to</strong>matically. Here struct type is<br />

the user’s arbitrary designation for the structure, while struct title is the<br />

word that is printed in bold face followed by the running number (for<br />

example, Theorem). If the optional argument in counter is missing, the<br />

numbering is carried out sequentially throughout the entire document.<br />

However, if the name of an existing counter, such as chapter, is given for<br />

in counter, the numbering is reset every time that counter is augmented,<br />

<strong>and</strong> both are printed <strong>to</strong>gether, as in Axiom 4.1 above.<br />

The predefined structures are called with the comm<strong>and</strong><br />

\begin{struct type}[extra title] text \end{struct type}

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

Saved successfully!

Ooh no, something went wrong!