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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.4. Book and part headings<strong>The</strong> code for \book headings is similar.<strong>The</strong> general layout for \book, \part and \chapter headings is similar and you maywish to refer to Figure 6.1 which, although it shows the vertical layout for a chapter head,is also applicable to \book and \part heads with appropriate changes in the names of thecommands.\beforebookskip \afterbookskip\beforepartskip \afterpartskip<strong>The</strong>se commands effectively control the spacing before and after the book and part titles.<strong>The</strong>ir default definitions are:\newcommand*{\beforebookskip}{\null\vfil}\newcommand*{\afterbookskip}{\vfil\newpage}\newcommand*{\beforepartskip}{\null\vfil}\newcommand*{\afterpartskip}{\vfil\newpage}Together, these vertically center any typesetting on the page, and then start a new page. Tomove the \part title upwards on the page, for example, you could do:\renewcommand*{\beforepartskip}{\null\vskip 0pt plus 0.3fil}\renewcommand*{\afterpartskip}{\vskip 0pt plus 0.7fil \newpage}\midbookskip\midpartskip<strong>The</strong> macros \midbookskip and \midpartskip are the spacings between the numberlines and the titles. <strong>The</strong> default definitions are:\newcommand{\midbookskip}{\par\vspace 2\onelineskip}\newcommand{\midpartskip}{\par\vspace 2\onelineskip}and they can be changed.\printbookname \booknamefont\booknamenum\printbooknum \booknumfont\printpartname \partnamefont\partnamenum\printpartnum \partnumfont<strong>The</strong> macro \printbookname typesets the book name (the value of \bookname) usingthe font specified by \booknamefont. <strong>The</strong> default is the \bfseries font in the\huge size. Likewise the book number is typeset by \printbooknum using the fontspecified by \booknumfont, which has the same default as \booknamefont. <strong>The</strong> macro\booknamenum, which is defined to be a space, is called between printing the book nameand the number. All these can be changed to obtain different effects.Similarly, the macro \printpartname typesets the part name (the value of\partname) using the font specified by \partnamefont. <strong>The</strong> default is the \bfseriesfont in the \huge size. Likewise the part number is typeset by \printpartnum using thefont specified by \partnumfont, which has the same default as \partnamefont. <strong>The</strong>macro \partnamenum, which is defined to be a space, is called between printing the partname and the number.79

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

Saved successfully!

Ooh no, something went wrong!