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.

9.2. <strong>The</strong> <strong>class</strong> ToC methodsTable 9.2: Values for X in macros for styling the titles of ‘List of. . . ’toc lof lot ...In the standard <strong>class</strong>es the ToC, etc., are set in one column even if the document as awhole is set in two columns. This limitation is removed. Following the \onecoltocetcdeclaration, which is the default, the ToC and friends will be set in one column butafter the \twocoltocetc declaration they will be set in two columns. Following the\doccoltocetc declaration they will be set in either one or two columns to match thedocument <strong>class</strong> onecolumn or twocolumn option.\maxtocdepth{〈secname〉}\settocdepth{〈secname〉}<strong>The</strong> <strong>class</strong> \maxtocdepth command sets the tocdepth counter. It is currently not used inthe <strong>memoir</strong> <strong>class</strong>.<strong>The</strong> <strong>memoir</strong> <strong>class</strong> command \settocdepth is somewhat analagous to the\setsecnumdepth command described in §6.3. It sets the value of the tocdepth counterand puts it into the ToC to (temporarily) modify what will appear. <strong>The</strong> \settocdepthand \maxtocdepth macros are from the tocvsec2 package [Wil99b].\phantomsectionNOTE: <strong>The</strong> hyperref package [Rahtz02] appears to dislike authors using\addcontentsline. To get it to work properly with hyperref you normally have toput \phantomsection (a macro defined within this <strong>class</strong> and the hyperref package)immediately before \addcontentsline.9.2.1 Changing the titlesCommands are provided for controlling the appearance of the ToC, LoF and LoT titles.\contentsname \listfigurename \listtablenameFollowing La<strong>TeX</strong> custom, the title texts are the values of the \contentsname,\listfigurename and \listtablename commands.<strong>The</strong> commands for controlling the typesetting of the ToC, LoF and LoT titles all followa similar pattern, so for convenience (certainly mine, and hopefully yours) in the followingdescriptions I will use X, as listed in Table 9.2, to stand for the file extension for theappropriate ‘List of. . . ’. That is, any of the following:• toc or• lof or• lot.For example, \Xmark stands for \tocmark or \lofmark or \lotmark.<strong>The</strong> code for typesetting the ToC title looks like:\tocheadstart\printtoctitle{\contentsname}\tocmark147

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

Saved successfully!

Ooh no, something went wrong!