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.2. Sectional divisionsA \section command restarts the numbering of any \subsections from one. Formost of the divisions the 〈title〉 is put on the page where the command was issued. <strong>The</strong>\book, \part and \chapter commands behave a little differently.<strong>The</strong> \book and \part commands are simpler and both behave in the same way.\book{〈title〉}\part{〈title〉}<strong>The</strong> \book{〈title〉} command puts the book name (default Book), number and 〈title〉 ona page by itself. <strong>The</strong> numbering of books has no effect on the numbering of \parts or\chapters. Similarly the \part{〈title〉} command puts the part name (default Part),number and 〈title〉 on a page by itself. <strong>The</strong> numbering of parts has no effect on the numberingof \chapters.Later I’ll give a list of La<strong>TeX</strong>’s default names, like Part.\chapter[〈toc-title〉][〈head-title〉]{〈title〉}\chapter*[〈head-title〉]{〈title〉}<strong>The</strong> \chapter command starts a new page and puts the chapter name (defaultChapter), number and 〈title〉 at the top of the page. It restarts the numbering of any\sections from one. If no optional arguments are specified, 〈title〉 is used as the ToC entryand for any page headings. If one optional argument is specified this is 〈toc-title〉 andis used for the ToC entry and for page headings. If both optional arguments are specifiedthe 〈head-title〉 is used for page headings.<strong>The</strong> \chapter* command starts a new page and puts 〈title〉 at the top of the page. Itmakes no ToC entry, changes no numbers and by default changes no page headings. If theoptional 〈head-title〉 argument is given, this is used for page headings. Use of the optionalargument has the side-effect that the secnumdepth counter is set to maxsecnumdepth (seebelow for an explanation of these).When the article option is in effect, however, things are slightly different. New chaptersdo not necessarily start on a new page. <strong>The</strong> \mainmatter command just turns on sectionalnumbering and starts arabic page numbering; the \backmatter command just turns offsectional numbering. <strong>The</strong> \tableofcontents command and friends, as well as any othercommands created via \newlistof, always 1 call thispagestyle{chapter}. If you areusing the article option you will probably want to ensure that the chapter pagestyle is thesame as you normally use for the document.Unlike the standard <strong>class</strong>es the 〈title〉 is typeset ragged right. This means that if youneed to force a linebreak in the 〈title〉 you have to use \newline instead of the more usual\\. For instance\section{A broken\newline title}In the standard <strong>class</strong>es a \section or other subhead that is too close to the bottom ofa page is moved to the top of the following page. If this happens and \flushbottom isin effect, the contents of the short page are stretched to make the last line flush with thebottom of the typeblock.1 This is a consequence of the internal timing of macro calls.75

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

Saved successfully!

Ooh no, something went wrong!