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 methods9.2.2 Typesetting the entriesCommands are also provided to enable finer control over the typesetting of the differentkinds of entries. <strong>The</strong> parameters defining the default layout of the entries are illustrated aspart of the layouts package [Wil03a] or in [MG + 04, p. 51], and are repeated in Figure 9.2.Most of the commands in this section start as \cft..., where cft is intended as amnemonic for Table of Contents, List of Figures, List of Tables.\cftdotIn the default ToC typesetting only the more minor entries have dotted leader lines betweenthe sectioning title and the page number. <strong>The</strong> <strong>class</strong> provides for general leadersfor all entries. <strong>The</strong> ‘dot’ in a leader is given by the value of \cftdot. Its default definitionis \newcommand{\cftdot}{.} which gives the default dotted leader. By changing\cftdot you can use symbols other than a period in the leader. For example\renewcommand{\cftdot}{\ensuremath{\ast}}will result in a dotted leader using asterisks as the symbol.\cftdotsep\cftnodotsEach kind of entry can control the separation between the dots in its leader (see below).For consistency though, all dotted leaders should use the same spacing. <strong>The</strong> macro\cftdotsep specifies the default spacing. However, if the separation is too large thenno dots will be actually typeset. <strong>The</strong> macro \cftnodots is a separation value that is ‘toolarge’.\setpnumwidth{〈length〉}\setrmarg{〈length〉}<strong>The</strong> page numbers are typeset in a fixed width box. <strong>The</strong> command \setpnumwidth canbe used to change the width of the box (La<strong>TeX</strong> ’s internal \@pnumwidth). <strong>The</strong> title textswill end before reaching the righthand margin. \setrmarg can be used to set this distance(La<strong>TeX</strong> ’s internal \@tocrmarg). Note that the length used in \setrmarg should be greaterthan the length set in \setpnumwidth. <strong>The</strong>se values should remain constant in any givendocument.This manual requires more space for the page numbers than the default, so the followingwas set in the preamble:\setpnumwidth{2.55em}\setrmarg{3.55em}\cftparskipNormally the \parskip in the ToC, etc., is zero. This may be changed by changingthe length \cftparskip. Note that the current value of \cftparskip is used for theToC, LoF and LoT, but you can change the value before calling \tableofcontents or\listoffigures or \listoftables if one or other of these should have different values(which is not a good idea).149

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

Saved successfully!

Ooh no, something went wrong!