The macros know about these major portions of a book: chapters, appendices, sections, subsections, exercises; the preface, table of contents and index are created like chapters or appendices, but require some extra handling. To start a chapter, appendix, section, or subsection, use one of these:
\chapter{Title of Chapter}{pdf bookmark title}
\appendix{Title of Appendix}
\unletteredappendix{Title of Appendix}
\section{Title of Section}{Running section title}{pdf bookmark title}
\subsection{Title of Subsection}
Each of these macros will cause an entry of the appropriate
type to appear in the table of contents. Chapters will be numbered
consecutively; appendices will be lettered starting with "A'', except
those produced with \unletteredappendix
; sections will be
numbered as "cn.sn''—that is, with chapter
number (or appendix letter) and section number; and subsections will
be numbered as "cn.sn.ssn''—that is,
with chapter number (or appendix letter), section number, and
subsection number. Section numbers start at 1 with each chapter;
subsection numbers start at 1 in each section. The second parameter
to \section
, the "Running section title,'' will appear in the
header on right hand pages. If it is empty, the section title will be
used. This would typically be used if the actual section title is
quite long.
The "pdf bookmark title'' is used for the bookmark title in the pdf
file; if blank, the title (or running title, in the case of \section
)
will be used. This can be used if the normal
title contains special processing characters, like math mode, which
won't be interpreted properly for the bookmark text.
1.1.1 Subsections
Subsections are pretty much like sections, except that by default they do not appear in the table of contents. To make them appear in the table of contents, include the following definition in your file before you input the macros:
\def\subsectionsintoc{true}