What's the difference? I know that \pagebreak
can take an optional argument that specifies how much a page break is desired, but is there any difference if the optional argument is not used?
-
1See also the duplicate question What is the difference between “Page Break” and “New Page”? for potential additional answers.– Martin ScharrerFeb 5, 2020 at 10:32
5 Answers
Both commands start a new page.
If the optional argument is not used, \pagebreak
will start a new page and the paragraphs of the old page will be spread out so that the old page will not look like the end of a chapter.
With \newpage
, on the other hand, the old page will have the blank space at the bottom, because the paragraphs will stick together as if the chapter had ended there.
This link will be useful, and the answer to a duplicate question (that was migrated from SO to this site later) gives the following example:
-
Thanks! Not sure how I missed that SO question in my Googling, but I did… Jul 31, 2010 at 20:37
-
4@Ben: even if you had seen it, it is useful to have the answer here as well!– ViviJul 31, 2010 at 20:39
-
@Juan: thanks... I wish I could take more of the credit, but the real work was done by the person who answer the SO question linked above :)– ViviAug 4, 2010 at 9:38
-
12and you have the same difference between \newline and \linebreak on the line scale. Aug 10, 2010 at 11:47
-
9Basically the same spacing differences exist for
\linebreak
vs.\newline
. Jul 6, 2011 at 7:15
\pagebreak
tries to make the page the same height as other pages if it's possible (by stretching intervals between paragraphs etc) and \newpage
just fills the page with empty space.
\newpage
forces a new page at the point at which it occurs.
\pagebreak
without options forces a new page at the end of the line in which it occurs.
-
References: LaTeX/Command Glossary and LaTeX/Page Layout: Manual page formatting Feb 18, 2020 at 1:02
If you really want the page to be changed, one of the most useful way I found so far is :
\clearpage
\pagebreak
The multicols
environment has \columnbreak
, but it seems to behave more like \newpage
than \pagebreak
.
-
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.– Community BotOct 1, 2021 at 22:07