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.

I would like to numerate my stanzas and not only my verses. I couldn't find any option in the verse package. Is there any workaround?

Please consider the following MWE

\documentclass{article}
\usepackage{verse}

\begin{document}
\verselinenumbersleft
\setlength{\vrightskip}{-3em}
\poemtitle{Garden}
\poemlines{2}
\begin{verse}
I used to love my garden \\
But now my love is dead \\
For I found a bachelor's button \\
In black-eyed Susan's bed.\\!

I used to love my garden \\
But now my love is dead \\
For I found a bachelor's button \\
In black-eyed Susan's bed.\\!
\end{verse}

\end{document}

which produces

enter image description here

What I would like to obtain is

enter image description here

share|improve this question

2 Answers 2

up vote 4 down vote accepted

The \trlap macro of stackengine does this for you. By placing it inside the macro \nextverse with an indexing counter, the result is achieved. You will have to periodically reset the counter with \setcounter{verseno}{0} when you wish to start anew.

EDITED to ply my bardly skills at continuing the symbol-laden verse.

\documentclass{article}
\usepackage{verse}
\usepackage{stackengine}
\newcounter{verseno}
\def\nextverse{\stepcounter{verseno}\trlap{\Roman{verseno}}}
\begin{document}
\verselinenumbersleft
\setlength{\vrightskip}{-3em}
\poemtitle{Garden}
\poemlines{2}
\begin{verse}
\nextverse 
I used to love my garden \\
But now my love is dead \\
For I found a bachelor's button \\
In black-eyed Susan's bed.\\!

\nextverse
How could this mishap happen? \\
My tool I yet can wield. \\
But that bachelor found his way there; \\
I had failed to plow the field.\\!
\end{verse}

\end{document}

enter image description here

You, of course, can tailor the effect, for example,

\def\nextverse{\stepcounter{verseno}\trlap{%
  \ifnum\theverseno>1\rule{0pt}{4ex}\fi\bfseries\Roman{verseno}}}

gives boldness to the numeration, and an extra gap for each \nextverse except the first:

enter image description here

share|improve this answer
    
+1: a typical example where stackengine definitely rules :) –  Claudio Fiandrino May 6 at 14:30

I would not set a new line, as the Roman numbers are not part of the poem. The counting would be confusing, imho.

I would suggest using the approach introduced with the verse package which looks like this:

% arara: pdflatex

\documentclass{article}
\usepackage{verse}

\begin{document}
\verselinenumbersleft
\setlength{\vrightskip}{-3em}
\poemtitle{Garden}
\poemlines{2}
\begin{verse}
\flagverse{I}I used to love my garden \\
But now my love is dead \\
For I found a bachelor's button \\
In black-eyed Susan's bed.\\!

\flagverse{II}I used to love my garden \\
But now my love is dead \\
For I found a bachelor's button \\
In black-eyed Susan's bed.\\!
\end{verse}
\end{document}

enter image description here

share|improve this answer

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.