[Tex/LaTex] How to indent every second stanza in verse environment

indentationpoetryverse

I'm trying to typeset a poem to look like this:

The first line of first stanza
The second line of first stanza
The third line of first stanza
    The first line of second stanza
    The second line of second stanza
    The third line of second stanza
    The fourth line of second stanza
The first line of third stanza
The second line of third stanza
    The first line of fourth stanza
    The second line of fourth stanza

For this I'm using verse package which allows such indentation by using \indentpattern and specifying the number of lines in each stanza to be indented. The problem in my case however is that many stanzas have different number of lines so I would end up with ridiculous patterns like \indentpattern{00011110011...}. What I'm looking for is something like altverse environment, only for stanzas. If someone could suggest how to make one I would be very grateful.

Minimal working example:

\documentclass{scrartcl}
\usepackage{fontspec}
\setmainfont{CMU Serif}
\usepackage{verse}

\begin{document}
\settowidth{\versewidth}{The first line of first stanza}
\poemtitle{Some Glorious Poem}
\begin{verse}[\versewidth]
The first line of first stanza\\
The second line of first stanza\\
The third line of first stanza

    The first line of second stanza\\
    The second line of second stanza\\
    The third line of second stanza\\
    The fourth line of second stanza

The first line of third stanza\\
The second line of third stanza

    The first line of fourth stanza\\
    The second line of fourth stanza
\end{verse}
\end{document}

The output it produces:

Compiled document

Best Answer

Possibly something like this?

For Anne Gregory

\documentclass{article}
\usepackage{verse,attrib}
\usepackage{enumitem}
\newenvironment{altstanza}[1][\vindent]{%
  \begin{itemize}[label={},leftmargin=#1]
    \item}{%
  \end{itemize}}

\title{For Anne Gregory}
\author{WB Yeats}
\date{}


\begin{document}

\settowidth{\versewidth}{That he had found a text to prove}
\addtolength{\versewidth}{\vindent}
\begin{verse}[\versewidth]
  \poemtitle{For Anne Gregory}

  Never shall a young man,\\
  Thrown into despair\\
  By those great honey-coloured\\
  Ramparts at your ear,\\
  Love you for yourself alone\\
  And not your yellow hair.

  \begin{altstanza}
  But I can get a hair-dye\\
  And set such colour there,\\
  Brown, or black, or carrot,\\
  That young men in despair\\
  May love me for myself alone\\
  And not my yellow hair.
  \end{altstanza}

  I heard an old religious man\\
  But yesternight declare\\
  That he had found a text to prove\\
  That only God, my dear,\\
  Could love you for yourself alone\\
  And not your yellow hair.\\

\end{verse}

  \attrib{WB Yeats}


\end{document}
Related Question