<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 31 October 2015 at 13:26, Moritz Sichert <span dir="ltr"><<a href="mailto:moritz.sichert@googlemail.com" target="_blank">moritz.sichert@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I have this code:<br>
<br>
\begin{description}<br>
  \item[first item] \hfill \\<br>
    Description of first item<br>
  \item[second item] \hfill \\<br>
    Description of second item<br>
\end{description}<br>
<br>
<br>
And it generates something like this:<br>
<br>
First Item<br>
  Description of first Item<br>
Second Item<br>
-------- PAGE BREAK ----------<br>
  Description of second item<br>
<br>
<br>
How can I prevent the page break between the title of an item and its<br>
description?<br>
<br>
I tried adding \nopagebreak after \descriptionlabel like this:<br>
<br>
\let\orig@descriptionlabel\descriptionlabel<br>
\renewcommand*{\descriptionlabel}[1]{\orig@descriptionlabel{#1}\nopagebreak}<br>
<br>
But that didn't change anything. Adding \nopagebreak around the second<br>
item in the code also didn't prevent the break.<br>
<br>
</blockquote></div><br></div><div class="gmail_extra">You don't really want \hfill\\ in the document markup, the document just wants<br><br>  \item[first item]<br>    Description of first item<br><br></div><div class="gmail_extra">with the fact that there is a linebreak after the item label part of the list design,<br></div><div class="gmail_extra">Something like the following which puts the labels into a 2-line box with empty second line<br><br><br>\documentclass{article}<br><br><br>\renewcommand*\descriptionlabel[1]{\hspace\labelsep<br> \makebox[0pt][l]{\parbox[b]{\linewidth}{%<br>    \normalfont\bfseries #1\\\mbox{}}\hspace{-\labelsep}}}<br><br><br>\begin{document}<br><br>\vspace*{41\baselineskip}<br><br>\begin{description}<br>  \item[first item]<br>    Description of first item<br>  \item[second item]<br>    Description of second item<br>\end{description}<br><br>\end{document}<br></div></div>