tags:

views:

443

answers:

3

In LyX/LaTeX, What is the difference between "Page Break" and "New Page"?

They both seem to do the same to me.

+3  A: 

I don't use LaTeX, but looking at the docs, it seems newpage always starts a new page - the content for the current page ends there, whereas pagebreak is a request for content to start on a new page, but the request may not be honoured in some situations. The pagebreak command takes a number from 0-4 as a measure of your insistence that a new page should be started.

mdma
So why would I even use `pagebreak`?
Amir Rachum
No idea. You asked for the difference and that's what I gave you. :)
mdma
ablaeul's answer is much better - it explains the actual difference.
mdma
+2  A: 

They are similar, though they have a difference:

\newpage 

Forces the current page to end and starts a new one. This will pad the page with extra space at the end of the page.

\pagebreak [number]

Breaks the current page at the point it is located. Using the optional number argument changes this from a demand to a request with priority in a scale from 0 to 4. This will not put extra space at the bottom of the page.

See http://help-csli.stanford.edu/tex/latex-pagebreaks.shtml for info on page breaking commands.

shuttle87
That's pretty much verbatim from the docs - it's good etiquette to quote your sources! :)
mdma
Added link to the relevant page.
shuttle87
+21  A: 

If you use \newpage the paragraphs of the old page will stick together. So you will have possibly a lot of free space at the bottom of the old page.

With \pagebreak the paragraphs will spread out over the old page. So you will not have an empty bottom of the old page. The old page will not look like it is the end of a chapter.

EDIT: Here is an example of the results of a \pagebreak and a \newpage

\pagebreak example                \newpage example

pagebreak example newpage example

ablaeul