Page LayoutStarting enumerations on a new page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
davewild
Posts: 1
Joined: Tue Nov 25, 2014 12:05 pm

Starting enumerations on a new page

Post by davewild »

Dear All,

I wonder if you can help me...? I have a number of \item (s) inside a \begin{enumerate} \end{enumerate}

I want to ensure that each \item will start on a new page if there's not enough room on the current page. I've got this working with the code below. However, I don't want to have the final \item at the bottom of the page. Instead I want it to fill the top of the page.

Code: Select all

\usepackage{lipsum} \
                                \newenvironment{absolutelynopagebreak}
                                {\par\nobreak\vfill\penalty0\vfilneg
                                \vtop\bgroup}
                                {\par\xdef\tpd{\the\prevdepth}\egroup
                                \prevdepth=\tpd}
Your help would be very much appreciated. Thanks in advance.

Dave

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply