Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is there any package in LaTeX available to typeset poems. I referred this link Typesetting poems but it didn't help me out!!!!

share|improve this question
    
You have many of them: verse, gmverse, eledmac, .... –  karlkoeller Feb 15 at 5:40

2 Answers 2

up vote 7 down vote accepted
  1. Standard LaTeX provides a basic verse environment.

  2. Here's an example (from the documentation) using the verse package:

    \documentclass{article}
    \usepackage{verse}
    
    \newcommand{\attrib}[1]{%
    \nopagebreak{\raggedleft\footnotesize #1\par}}
    \renewcommand{\poemtitlefont}{\normalfont\large\itshape\centering}
    
    \begin{document}
    
    \poemtitle{Mathematics}
    \settowidth{\versewidth}{Than Tycho Brahe, or Erra Pater:}
    \begin{verse}[\versewidth]
    In mathematics he was greater \\
    Than Tycho Brahe, or Erra Pater: \\
    For he, by geometric scale, \\
    Could take the size of pots of ale;\\ \settowidth{\versewidth}{Resolve by}
    Resolve, by sines \\>[\versewidth] and tangents straight, \\
    If bread or butter wanted weight; \\
    And wisely tell what hour o’ the day \\
    The clock does strike, by Algebra.
    \end{verse}
    \attrib{Samuel Butler (1612--1680)}
    
    \end{document}
    

    enter image description here

  3. An example using poemscol:

    \documentclass{article}
    \usepackage{fancyhdr}
    \usepackage{poemscol}
    \usepackage{lmodern}
    
    \begin{document}
    
    \sequencetitle{Kentucky Mountain Farm}
    \sequencefirstsectiontitle{I. Rebuke of the Rocks}
    \begin{poem}
    \begin{stanza}
    Now on you is the hungry equinox,\verseline
    \index{Now on you is the hungry equinox}
    O little stubborn people of the hill,\verseline
    \accidental{hill,] \sameword--- {\em Nation,\/} {\em Literary Digest\/}
    \sameword, {\em Vanderbilt\/} (I include the reading
    from {\em Vanderbilt\/}
    even though it is the same as in TSP, because
    {\em Vanderbilt\/} was published
    after the other magazine versions but before TSP.)}
    The season of the obscene moon whose pull\verseline
    Disturbs the sod, the rabbit, the lank fox,\verseline
    Moving the waters, the boar’s dull blood,\verseline
    And the acrid sap of the ironwood.\end{stanza}
    \begin{stanza}
    But breed no tender thing among the rocks.\verseline
    Rocks are too old under the mad moon,\verseline
    \accidental{old\missingpunct] \sameword, {\em Vanderbilt\/}}
    Renouncing passion by the strength that locks\verseline
    The eternal agony of fire in stone.\end{stanza}
    \begin{stanza}
    Then quit yourselves as stone and cease\verseline
    \accidental{stone\missingpunct] \sameword, {\em Vanderbilt\/}}
    To break the weary stubble-field for seed;\verseline
    Let not the naked cattle bear increase,\verseline
    Let barley wither and the bright milkweed.\verseline
    \accidental{milkweed.] milk-weed. {\em Vanderbilt\/}}
    43
    Instruct the heart, lean men, of a rocky place\verseline
    That even the little flesh and fevered bone\verseline
    May keep the sweet sterility of stone.\end{stanza}
    \end{poem}
    
    \end{document}
    

    enter image description here

  4. The memoir document class offers built-in functionalities to write poems. Refer to Section 14 Poetry of the memoir manual.

  5. The section Poetry and Drama on CTAN offers other possibilities.

share|improve this answer

Separating and numbering stanzas in verse environment

Verses are frequently numbered (so, as an additional note to the first part of Gonzalo Medina's answer) you can find buried in the manual verses.pdf this explanation:

Within the verse environment, the macro \\ must be used at the end of each line of a verse, except for the last line in each stanza. If the lines in a poem are to be numbered then \\! must be used at the end of the last line in each stanza (the \\ macro increments the line numbers).

\documentclass{article}
\usepackage{url,verse}

\newcommand{\attrib}[1]{%
  \nopagebreak{\vspace{2ex}\raggedleft #1\par}}

\begin{document}
\poemtitle{Crossing the Bar}

\begin{verse}[13em]
\poemlines{2}
\begin{altverse}
Sunset and evening star, \\
  And one clear call for me! \\
And may there be no moaning of the bar, \\
  When I put out to sea, \\!

But such a tide as moving seems asleep, \\
  Too full for sound and foam, \\
When that which drew from out the boundless deep \\
  Turns again home. \\!

Twilight and evening bell, \\
  And after that the dark! \\
And may there be no sadness of farewell, \\
  When I embark; \\!

For tho' from out our bourne of Time and Place \\
  The flood may bear me far, \\
I hope to see my Pilot face to face \\
  When I have cross'd the bar. \\
\end{altverse}
\end{verse}

\attrib{Alfred, Lord Tennyson (1809\textendash 1892)}

\end{document}

Crossing the Bar

Here I could leave out the last !, but if there was a fifth verse, its numbering would be messed up by that.

share|improve this answer
    
Just a note: you can use -- instead of \textendash if you would like. –  Sean Allred Aug 2 at 19:03
    
Yes, @Sean Allred, I've checked, and 1809--1892 does give exactly the same output. –  Joseph Harriott Aug 2 at 19:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.