12.07.2015 Views

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6. DOCUMENT DIVISIONSTable 6.1: Division levelsDivisionLevel\book -2\part -1\chapter 0\section 1\subsection 2\subsubsection 3\paragraph 4\subparagraph 5When used in the preamble \setsecnumdepth also calls \maxsecnumdepth, which isthe numbering level used once \mainmatter is called. You can use \setsecnumdepthanywhere in the \mainmatter to (temporarily) change the numbering level.By default, the <strong>class</strong> sets:\setsecnumdepth{section}\maxsecnumdepth{section}<strong>The</strong> \frontmatter commands sets the numbering level to none. <strong>The</strong> commands\mainmatter and \mainmatter* set the numbering level to the value specified by\maxsecnumdepth.<strong>The</strong> number setting commands come from the tocvsec2 package [Wil99b].6.4 BOOK AND PART HEADINGSBook and part headings always start on a new page with the book and part pagestyles,respectively. <strong>The</strong> typical book and part heading consists of the name (e.g., ‘Book’ or ‘Part’)followed by a number represented as an uppercase Roman numeral. <strong>The</strong>re is a verticalspace after which the title is printed. Finally a new page is started.Several aspects of the typesetting of the \book and \part title are configurable. Ignoringdetails, such as the optional argument, the code for printing \part headings looks likethis:\newcommand{\part}[1]{% % THIS IS A VERY SIMPLIFIED VERSION\cleardoublepage % start a new recto page\thispagestyle{part} % set the page style\beforepartskip% space before Name and Number\printpartname\partnamenum\printpartnum\midpartskip% space after Name and Number\printparttitle{#1} % print the title\partpageend}% finish off\newcommand{\partpageend}{% THIS IS SIMPLIFIED\afterpartskip% ifblankpage then blank next page and restore twocolumn if necessary}78

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

Saved successfully!

Ooh no, something went wrong!