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.7. Fancy anonymous breaksTypeset example 6.1: A variety of subhead stylesBold raggedrightSMALL CAPS RAGGEDRIGHTItalic raggedrightLarge centeredLARGE CENTERED UPPERCASEBold centeredSMALL CAPS CENTEREDSMALL CAPS INDENTEDBold centered but taking up no more than 3inches if a long titleItalic flushrightto use \marginhead to typeset the heading.\setparahook and \setsecnumformat.∗<strong>The</strong> format for the number is reset viaA different approach is to create new macros, each named by the type of sectional macroit formats, and then make the number format call these macros. In this example we willprovide separate formatting for \section and \subsection.\setsecnumformat{\csname #1secnumformat\endcsname}\newcommand\sectionsecnumformat{\thesection:\quad}\newcommand\subsectionsecnumformat{\fbox{\enspace\thesubsection\enspace}\enspace}Since the macro is only called in the proper context, we can use \thesection directly inthe code for \section.6.7 FANCY ANONYMOUS BREAKSOften, in novels, there is a need to break up the text to indicate that there is a major break inthe story, but not enough to warrant starting a new chapter. I have called these anonymousdivisions as there is neither number nor title associated with them.\plainbreak{〈num〉} \plainbreak*{〈num〉}\fancybreak{〈text〉} \fancybreak*{〈text〉}<strong>The</strong> \plainbreak is an anonymous division. It puts 〈num〉 blank lines into the typescriptand the first line of the following paragraph is not indented. Another anonymousdivision is \fancybreak which puts 〈text〉 centered into the typescript and the initial lineof the following paragraph is not indented. For example:97

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

Saved successfully!

Ooh no, something went wrong!