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. POETRY\end{verse}Note how the alternate lines are automatically indented in the typeset result below.Love’s lostI used to love my gardenBut now my love is deadFor I found a bachelor’s buttonIn black-eyed Susan’s bed.It is left up to you how you might want to add information about the author of a poem.Here is one example of a macro for this:\newcommand{\attrib}[1]{%\nopagebreak{\raggedleft\footnotesize #1\par}}This can be used as in the next bit of doggerel.\PoemTitle{Fleas}\settowidth{\versewidth}{What a funny thing is a flea}\begin{verse}[\versewidth]What a funny thing is a flea. \\You can’t tell a he from a she. \\But he can. And she can. \\Whoopee!\end{verse}\attrib{Anonymous}FleasWhat a funny thing is a flea.You can’t tell a he from a she.But he can. And she can.Whoopee!Anonymous<strong>The</strong> next example demonstrates the automatic line wrapping for overlong lines.\PoemTitle{In the beginning}\settowidth{\versewidth}{And objects at rest tended toremain at rest}\begin{verse}[\versewidth]<strong>The</strong>n God created Newton, \\And objects at rest tended to remain at rest, \\And objects in motion tended to remain in motion, \\And energy was conservedand momentum was conservedand matter was conserved \\268

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

Saved successfully!

Ooh no, something went wrong!