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.
Result
Page 1 of the compiled examplePage 1
Page 2 of the compiled examplePage 2
Page 3 of the compiled examplePage 3

Open in the editor

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.
Result
The compiled example

Open in the editor

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.
Result
The compiled example

Open in the editor

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.
Result
Page 1 of the compiled examplePage 1
Page 3 of the compiled examplePage 3

Open in the editor

Pitfalls

Compiled with pdfLaTeX from TeX Live 2023.

Related pages