Page break in LaTeX (newpage, clearpage, pagebreak)
\newpage ends the current page. \clearpage does the same and first prints all figures and tables that are still waiting for a place.
Start a new page
\newpage leaves the rest of the page empty. Use \clearpage before a new chapter-like part, so its floats do not drift into the next part. \cleardoublepage also skips to the next right-hand page in a two-sided document.
Text on the first page.
\newpage
Text on the second page.
\clearpage
Text on the third page.Ask for a break without forcing it
\pagebreak[2] recommends a break with a strength from 0 to 4; \pagebreak alone is 4 and forces it. Unlike \newpage it does not fill the page with empty space, so a class that aligns the last lines of all pages stretches the content to the full height.
A paragraph that may end the page.
\pagebreak[2]
The next paragraph.Keep lines on the page
\enlargethispage{\baselineskip} makes the current page one line longer, which pulls a lonely last line back. \nopagebreak after a line discourages a break at that point.
\enlargethispage{\baselineskip}
This page may be one line longer than the others.
The result follows from three steps:\nopagebreak
First the data is read.Insert a blank page
LaTeX drops a page that has no content, so two \newpage in a row give only one break. Put an empty box on the page with \mbox{}; \thispagestyle{empty} also removes its page number.
Text on the first page.
\newpage
\thispagestyle{empty}
\mbox{}
\newpage
Text on the third page.Pitfalls
- In a two-column document
\newpageand\pagebreakend the column, not the page.\clearpageends the page. - When many figures pile up and LaTeX reports too many unprocessed floats, a
\clearpageat a suitable place prints them.
Compiled with pdfLaTeX from TeX Live 2023.