9

This MWE shows that LaTeX can put a break after the title of a poem (written with the \poemtitle command of the verse package). Can someone advice me a way to prevent this behaviour?

\documentclass{article} 
\usepackage{verse}
\usepackage{lipsum}
\begin{document}
text

\lipsum[2-6]
\poemtitle{Poem title}
\begin{verse}
first\\
second
\end{verse}
text
\end{document}

1 Answer 1

9

if you add the following code to your preamble, the page break should go away.

\makeatletter
\renewcommand{\@vstypeptitle}[1]{%
  \vspace{\beforepoemtitleskip}
  {\poemtitlefont #1\par}\nobreak
  \vspace{\afterpoemtitleskip}
}
\makeatother

the change was to add \nobreak after the title.

in my opinion, this is a bug, or at least a misfeature, and you would be doing a service to report it to the author of the verse package.

1
  • 1
    Thanks, it seems to work. I've written to Will Robertson. Aug 27, 2012 at 6:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .