5

Possible Duplicate:
How to make a list of unbreakable items?
How to prevent pagebreak in description environment

My short list is split across two pages. Two bullets are on the end of one page, while the next two are on following page. That is, "A,B" on one page, "C,D" on the next:

\begin{itemize}
\item A
\item B
\item C
\item D
\end{itemize}

How do I force the list (itemize or enumerate) to not break across pages?

2

1 Answer 1

10

Here is an example, using \vbox, which you can also replace with a minipage, using \begin{minipage} and \end{minipage}. The reason for me posting this particular example is to demonstrate that this might not be a typographically sound way of handling such problems. Modify the bottom on top of the example without the vbox and you can see the problems. Keeping the list contents together will either create underfull pages or overfull pages. Typographically is acceptable to break lists across pages.

\documentclass{article}
\usepackage[bottom=2.9in]{geometry}
\usepackage{lipsum}
\begin{document}
\lipsum[1-5]
\vbox{%
\begin{itemize}
\item A
\item B
\item C
\item D
\end{itemize}}

\end{document}
3
  • 1
    it does not work when "short line" is added before list Jan 30, 2012 at 23:05
  • 1
    @GrzegorzWierzowiecki: The reason why it works as-is in Yiannis' answer is because \lipsum issues a \par (a paragraph ending/beginning) giving a natural break between the text and the \vbox. If you were to enter a "short line" before \vbox without issuing some form of paragraph break, the \vbox will be set on the same line as "short line". Does any of the other suggested solutions (links above) provide an answer to your original question? Or, are you looking for something different?
    – Werner
    Jan 30, 2012 at 23:12
  • @Werner Thanks, you've clarified me how it works :). Making end of paragraph after "short line" solves problem :). Jan 30, 2012 at 23:28

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