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.

20.4 SPECIFYING THE SECTIONAL TITLING STYLES20.4.1 <strong>The</strong> chapter styleSpecifyingthe sectionaltitling stylesRecapping, chapter titles are in small caps, lowercase, in a larger font than for the maintext, and a rule is placed between the title and the typeblock. <strong>The</strong> total vertical space usedby a chapter title is three text lines. Chapters are not numbered in the text but are in theToC. Titles in the ToC are in mixed case.<strong>The</strong> definition of the chapterstyle is remarkably simple, as shown below.%% Bringhurst chapter style\makechapterstyle{bringhurst}{%\renewcommand{\chapterheadstart}{}\renewcommand{\printchaptername}{}\renewcommand{\chapternamenum}{}\renewcommand{\printchapternum}{}\renewcommand{\afterchapternum}{}\renewcommand{\printchaptertitle}[1]{%\raggedright\Large\scshape\MakeLowercase{##1}}\renewcommand{\afterchaptertitle}{%\vskip\onelineskip \hrule\vskip\onelineskip}}Most of the specification consists of nulling the majority of the normal La<strong>TeX</strong> specification,and modifying just two elements.<strong>The</strong> chapter title (via \printchaptertitle) is typeset raggedright using the \Largesmallcaps fonts. <strong>The</strong> \MakeLowercase macro is used to ensure that the entire title is lowercasebefore typesetting it. Titles are input in mixed case.After the title is typeset the \afterchaptertitle macro specifies that one line isskipped, a horizontal rule is drawn and then another line is skipped.20.4.2 Lower level divisionsSection titles are in small caps, lowercase, in the same size as the text font. <strong>The</strong> titles arenumbered, with both the chapter and section number.<strong>The</strong> specification is:\setsecheadstyle{\raggedright\scshape\MakeLowercase}\setbeforesecskip{-\onelineskip}\setaftersecskip{\onelineskip}<strong>The</strong> macro \setsecheadstyle lowercases the title and typesets it small caps.<strong>The</strong> default skips before and after titles are rubber lengths but this does not bode wellif we are trying to line something up with a particular line of text — the presence of sectiontitles may make slight vertical adjustments to the text lines because of the flexiblespacing. So, we have to try and have fixed spacings. A single blank line is used before(\setbeforesecskip) and after (\setaftersecskip) the title text.A subsection title, which is the lowest subdivision in the book, is in the italic form ofthe textfont and is typeset as a numbered non-indented paragraph. <strong>The</strong> code for this isbelow.354

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

Saved successfully!

Ooh no, something went wrong!