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. DOCUMENT DIVISIONS<strong>The</strong> absolute value of the 〈skip〉 length argument is the space to leave above the heading.If the actual value is negative then the first line after the heading will not be indented. <strong>The</strong>default 〈skip〉 depends on the particular level of heading, but for a \section (i.e., whenS = sec) it is-3.5ex plus -1ex minus -.2exwhere the plus and minus values are the allowable stretch and shrink; note that all thevalues are negative so that there is no indentation of the following text. If you wantedindentation then you could do\setbeforesecskip{3.5ex plus 1ex minus .2ex}\setSindent{〈length〉}<strong>The</strong> value of the 〈length〉 length argument is the indentation of the heading (number andtitle) from the lefthand margin. This is normally 0pt.\setSheadstyle{〈font〉}This macro specifies the style (font) for the sectional number and title. As before, the defaultvalue of the 〈font〉 argument depends on the level of the heading. For a \subsection(i.e., S=subsec) it is \large\bfseries\raggedright, to typeset in the \bfseries fontin the \large size; the title will also be set ragged right (i.e., there will be no hyphenationin a multiline title).Note that the very last element in the 〈font〉 argument may be a macro that takesone argument (the number and title of the heading). So, if for some reason you wanted\subsubsection titles to be all uppercase, centered, and in the normal font, you can do\setsubsubsecheadstyle{\normalfont\centering\MakeUppercase}As another example, although I don’t recommend this, you can draw a horizontal lineunder section titles via:\newcommand{\ruledsec}[1]{%\Large\bfseries\raggedright #1 \rule{\textwidth}{0.4pt}}\setsecheadstyle{\ruledsec}\setafterSskip{〈skip〉}If the value of the 〈skip〉 length argument is positive it is the space to leave between thedisplay heading and the following text. If it is negative, then the heading will be runinand the value is the horizontal space between the end of the heading and the followingtext. <strong>The</strong> default 〈skip〉 depends on the particular level of heading, but for a \section (i.e.,when S = sec) it is 2.3ex plus .2ex, and for a \subparagraph (i.e., S = subpara),which is a run-in heading, it is -1em.∗\@hangfrom{〈code〉}\sethangfrom{〈code〉}Internally all the titling macros use a macro called \@hangfrom which by default makesmultiline titles look like a hanging paragraph. <strong>The</strong> default definition of \@hangfrom (infile ltsect.dtx) is effectively:94

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

Saved successfully!

Ooh no, something went wrong!