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.

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}
share|improve this question
add comment

1 Answer 1

up vote 9 down vote accepted

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.

share|improve this answer
    
+1 for pointing out it should be considered as a bug! –  tohecz Aug 26 '12 at 18:48
1  
Thanks, it seems to work. I've written to Will Robertson. –  Francesco Endrici Aug 27 '12 at 6:33
add comment

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.