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.5. Chapter headings<strong>The</strong> command \chapterprecis prints its argument both at the point in the documentwhere it is called, and also adds it to the .toc file. For example:...\chapter{}% first chapter\chapterprecis{Our hero is introduced; family tree; early days.}...Now for the details.\prechapterprecisshift<strong>The</strong> length \prechapterprecisshift controls the vertical spacing before a\chapterprecis. If the precis immediately follows a \chapter then a different space isrequired depending on whether or not the article <strong>class</strong> option is used. <strong>The</strong> <strong>class</strong> sets:\ifartopt\setlength{\prechapterprecisshift}{0pt}\else\setlength{\prechapterprecisshift}{-2\baselineskip}\fi\chapterprecishere{〈text〉}\chapterprecistoc{〈text〉}<strong>The</strong> \chapterprecis command calls these two commands to print the 〈text〉 inthe document (the \chapterprecishere command) and to put it into the ToC (the\chapterprecistoc command). <strong>The</strong>se can be used individually if required.\precisfont\prechapterprecis \postchapterprecis<strong>The</strong> \chapterprecishere macro is intended for use immediately after a \chapter. <strong>The</strong>〈text〉 argument is typeset in the \precisfont font in a quote environment. <strong>The</strong> macro’sdefinition is:\newcommand{\chapterprecishere}[1]{%\prechapterprecis #1\postchapterprecis}where \prechapterprecis, \postchapterprecis and \precisfont are defined as:\newcommand{\prechapterprecis}{%\vspace*{\prechapterprecisshift}%\begin{quote}\precisfont}\newcommand{\postchapterprecis}{\end{quote}}\newcommand*{\precisfont}{\normalfont\itshape}Any or all of these can be changed if another style of typesetting is required.Next the following macros control the formatting of the precis text in the ToC.\precistoctext{〈text〉} \precistocfont \precistocformat<strong>The</strong> \chapterprecistoc macro puts \precistoctext{〈text〉} into the toc file. <strong>The</strong>default definition similar to (but not exactly 15 )15 Internally we use a different name for \leftskip and \rightskip to make it easier to do right to leftdocument with the <strong>class</strong> and the bidi package.91

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

Saved successfully!

Ooh no, something went wrong!