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.

\newtheorem{com}{Comment}<br />

12.3. Further A M S-L AT E X packages 281<br />

where the first argument is the name of the theorem type (here com) <strong>and</strong><br />

the second is the title that is printed when the theorem declaration is<br />

invoked. For example,<br />

\begin{com}<br />

Theorem declarations can have any name.<br />

\end{com}<br />

produces the declara<strong>to</strong>ry text<br />

Comment 1. Theorem declarations can have any name.<br />

In addition <strong>to</strong> the two m<strong>and</strong>a<strong>to</strong>ry arguments, the \newtheorem comm<strong>and</strong><br />

may have one of two optional ones. The complete syntax is<br />

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

or<br />

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

where num like is the name of an existing theorem-like declaration which<br />

is <strong>to</strong> be numbered in the same sequence as type, <strong>and</strong> in counter is a<br />

counter name like chapter or section <strong>to</strong> reset the numbers of the type<br />

declarations.<br />

All this is st<strong>and</strong>ard L AT E X so far. The amsthm package adds the following<br />

features.<br />

• A \newtheorem* is provided that defines an unnumbered theorem<br />

structure.<br />

• Three predefined theorem styles are available:<br />

plain in which the title <strong>and</strong> number are in bold face <strong>and</strong> the text<br />

italic;<br />

definition with title <strong>and</strong> number in bold face <strong>and</strong> the text in<br />

normal font;<br />

remark for title <strong>and</strong> number in italic <strong>and</strong> the text normal.<br />

The desired style is activated by first issuing \theoremstyle{style};<br />

all subsequent \newtheorem statements will have this style until a<br />

new one is activated.<br />

• A \swapnumbers can be issued <strong>to</strong> cause all following new theorem<br />

types <strong>to</strong> have the numbers appear before the title, as 1 Comment.<br />

• New theorem styles may be defined by the user by means of a<br />

\newtheoremstyle comm<strong>and</strong>, or additional predefined styles may<br />

be loaded with package options. Since this is fairly specialized <strong>and</strong><br />

complex, it is best <strong>to</strong> examine the example file thmtest.tex or read<br />

the documentation in amsthm.dtx.

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

Saved successfully!

Ooh no, something went wrong!