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 Scharrer♦ Feb 5 '20 at 10:32
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… – Sophie Alpert Jul 31 '10 at 20:37
-
3@Ben: even if you had seen it, it is useful to have the answer here as well! – Vivi Jul 31 '10 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 :) – Vivi Aug 4 '10 at 9:38
-
12and you have the same difference between \newline and \linebreak on the line scale. – Caroline Fontaine Aug 10 '10 at 11:47
-
9Basically the same spacing differences exist for
\linebreak
vs.\newline
. – Martin Scharrer♦ Jul 6 '11 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 – l --marc l Feb 18 '20 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