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.

3.3. Parts of the document 57<br />

(The comm<strong>and</strong> \setcounter is explained in Section 8.1.) In article, num may<br />

take on values from 0 <strong>to</strong> 5, <strong>and</strong> in book <strong>and</strong> report from −1 <strong>to</strong> 5.<br />

It is possible <strong>to</strong> change the initial value of a sectioning comm<strong>and</strong> within a<br />

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

\setcounter{sec name}{num}<br />

where sec name is the name of the sectioning comm<strong>and</strong> without the preceding<br />

\ character. This procedure may be useful when individual sections are <strong>to</strong> be<br />

processed by L AT E X as single files. For example,<br />

\setcounter{chapter}{2}<br />

sets the \chapter counter <strong>to</strong> 2. The counter will be incremented on the next call<br />

<strong>to</strong> \chapter which then produces Chapter 3.<br />

3.3.4 Appendix<br />

An appendix is introduced with the declaration<br />

\appendix<br />

It has the effect of resetting the section counter for article <strong>and</strong> the<br />

chapter counter for book <strong>and</strong> report <strong>and</strong> changing the form of the numbering<br />

for these sectioning comm<strong>and</strong>s from numerals <strong>to</strong> capital letters A,<br />

B, . . . . Furthermore, the word ‘Chapter’ is replaced by ‘Appendix’ so that<br />

subsequent chapter headings are preceded by ‘Appendix A’, ‘Appendix B’,<br />

etc. The numbering of lower sectioning comm<strong>and</strong>s contains the letter in<br />

place of the chapter number, for example A.2.1.<br />

3.3.5 Book structure<br />

To simplify the structuring of a book, the comm<strong>and</strong>s<br />

\frontmatter<br />

preface, table of contents<br />

\mainmatter<br />

main body of text<br />

\backmatter<br />

bibliography, index, colophon<br />

are provided in the book class. The \frontmatter comm<strong>and</strong> switches<br />

page numbering <strong>to</strong> Roman numerals <strong>and</strong> suppresses the numbering of<br />

chapters; \mainmatter resets the page numbering <strong>to</strong> 1 with Arabic numbers<br />

<strong>and</strong> reactivates the chapter numbering; this is once again turned off<br />

with \backmatter.<br />

Exercise 3.9: Insert at the beginning of your exercise text the comm<strong>and</strong><br />

\section{Title A} <strong>and</strong> at some appropriate place near the middle \section{Title<br />

B}. Select some suitable text for Title A <strong>and</strong> Title B. Insert at appropriate places

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

Saved successfully!

Ooh no, something went wrong!