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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6.3. Numbering<strong>The</strong> appendices environment acts like the \appendix command in that it resets the numberingand naming of chapters. However, at the end of the environment, chapters are restoredto their original condition and any chapter numbers continue in sequence as thoughthe appendices environment had never been there.\begin{subappendices} text \end{subappendices}\namedsubappendices \unnamedsubappendices<strong>The</strong> subappendices environment can be used to put appendices at the end of a chapter.Within the environment \section starts a new sub-appendix. You may put\addappheadtotoc at the start of the environment if you want a heading entry in theToC. If you put the declaration \namedsubappendices before the subappendices environment,the sub-appendix number in the body of the document will be preceded by thevalue of \appendixname. <strong>The</strong> \unnamedsubappendices declaration, which is the default,may be used to switch off this behaviour.Caveat: <strong>The</strong> implementation of the named subappendices make use of\setsecnumformat, thus if you have used this command to change the formating of thesection number you will need to re-do this in a special manner inside the subappendicesenvironemt. Something like this (where a user wanted to use old style numerials forsectioning numbers)\begin{subappendices}\setsecnumformat{\sectionname\\oldstylenums{\csname the#1\endcsname\quad}}<strong>The</strong> macro sectionname is a special macro that only lives inside the subappendicesenvironment and is only available when \namedsubappendices is applied.6.3 NUMBERINGEach type of sectional division has an associated level as shown in Table 6.1. Divisions arenumbered if the value of the secnumdepth counter is equal to or greater than their level.For example, with\setcounter{secnumdepth}{2}then subsections up to book will be numbered.\setsecnumdepth{〈secname〉}\maxsecnumdepth{〈secname〉}Instead of having to remember the levels if you want to change what gets numbered youcan use the \setsecnumdepth command. It sets secnumdepth so that divisions 〈secname〉and above will be numbered. <strong>The</strong> argument 〈secname〉 is the name of a sectional divisionwithout the backslash. For example, to have subsections and above numbered:\setsecnumdepth{subsection}You can also use all or none for 〈secname〉 which will either turn on numbering for alllevels, or turn off numbering altogether.77

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

Saved successfully!

Ooh no, something went wrong!