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 methods\cftKnumwidthThis length controls the space allowed for typesetting title numbers (numwidth in Figure9.2). It can be changed using \setlength. Second and subsequent lines of a multilinetitle will be indented by this amount.<strong>The</strong> remaining commands are related to the specifics of typesetting an entry. This is asimplified pseudo-code version for the typesetting of numbered and unnumbered entries.{\cftKfont {{\cftKname \cftKpresnum SNUM\cftKaftersnum\hfil} \cftKaftersnumb TITLE}}{\cftKleader}{\cftKformatpnum{PAGE}}\cftKafterpnum\par{\cftKfont TITLE}{\cftKleader}{\cftKformatpnum{PAGE}}\cftKafterpnum\parwhere SNUM is the section number, TITLE is the title text and PAGE is the page number. Inthe numbered entry the pseudo-code{\cftKpresnum SNUM\cftaftersnum\hfil}is typeset within a box of width \cftKnumwidth, see the \...numberlinebox macroslater on.\cftKfontThis controls the appearance of the title (and its preceding number, if any). It may bechanged using \renewcommand.\cftKfont takes no arguments as such, but the the number and title is presented toit as an argument. Thus one may end \cftKfont with a macro taking one argument, say\MakeUppercase, and which then readjust the text as needed.Caveat. Please read the section entitled About upper og lower casing TOC entries on page 158if you consider using upper/lower cased TOC entries and especially if you are also using the hyperrefpackage.\cftKname<strong>The</strong> first element typeset in an entry is \cftKname. 3 Its default definition is\newcommand*{\cftKname}{}so it does nothing. However, to put the word ‘Chapter’ before each chapter number in aToC and ‘Fig.’ before each figure number in a LoF do:\renewcommand*{\cftchaptername}{Chapter\space}\renewcommand*{\cftfigurename}{Fig.\space}\cftKpresnum \cftKaftersnum \cftKaftersnumb<strong>The</strong> section number is typeset within a box of width \cftKnumwidth. Within the box themacro \cftKpresnum is first called, then the number is typeset, and the \cftKaftersnummacro is called after the number is typeset. <strong>The</strong> last command within the box is \hfilto make the box contents flushleft. After the box is typeset the \cftKaftersnumbmacro is called before typesetting the title text. All three of these can be changed by\renewcommand. By default they are defined to do nothing.3 Suggested by Danie Els.151

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

Saved successfully!

Ooh no, something went wrong!