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.

14. POETRY14.2.1 Main Poem Title layout parameters\PoemTitleheadstart\printPoemTitlenonum\printPoemTitlenum\afterPoemTitlenum\printPoemTitletitle{〈title〉}\afterPoemTitle<strong>The</strong> essence of the code used to typeset a numbered 〈title〉 from a \PoemTitle is:\PoemTitleheadstart\printPoemTitlenum\afterPoemTitlenum\printPoemTitletitle{title}\afterPoemTitleIf the title is unnumbered then \printPoemTitlenonum is used instead of the\printPoemTitlenum and \afterPoemTitlenum pair of macros.<strong>The</strong> various elements of this can be modified to change the layout. By default thenumber is centered above the title, which is also typeset centered, and all in a \large font.<strong>The</strong> elements are detailed in the next section.14.2.2 Detailed Poem Title layout parameters\beforePoemTitleskip\PoemTitlenumfont\midPoemTitleskip\PoemTitlefont\afterPoemTitleskipAs defined, \PoemTitleheadstart inserts vertical space before a poem title. <strong>The</strong>default definition is:\newcommand*{\PoemTitleheadstart}{\vspace{\beforePoemTitleskip}}\newlength{\beforePoemTitleskip}\setlength{\beforePoemTitleskip}{1\onelineskip}\printPoemTitlenum typesets the number for a poem title. <strong>The</strong> default definition,below, prints the number centered and in a large font.\newcommand*{\printPoemTitlenum}{\PoemTitlenumfont \thepoem}\newcommand*{\PoemTitlenumfont}{\normalfont\large\centering}<strong>The</strong> definition of \printPoemTitlenonum, which is used when there is no number, issimply\newcommand*{\printPoemTitlenonum}{}\afterPoemTitlenum is called between setting the number and the title. It ends aparagraph (thus making sure any previous \centering is used) and then may add somevertical space. <strong>The</strong> default definition is:\newcommand*{\afterPoemTitlenum}{\par\nobreak\vskip \midPoemTitleskip}\newlength{\midPoemTitleskip}\setlength{\midPoemTitleskip}{0pt}266

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

Saved successfully!

Ooh no, something went wrong!