28.03.2013 Views

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

\bigskip \medskip \smallskip<br />

2.7. Fine-tuning text 33<br />

which add vertical spacing depending on the font size declared in the<br />

document class.<br />

2.7.4 Page breaking<br />

Breaking text in<strong>to</strong> pages occurs au<strong>to</strong>matically in T E X <strong>and</strong> L AT E X, just as<br />

for line breaking. Here again, it may be necessary <strong>to</strong> interfere with the<br />

program’s notion of where a break should take place.<br />

Normal pages<br />

The comm<strong>and</strong>s<br />

\pagebreak[num]<br />

\nopagebreak[num]<br />

are the equivalents of \linebreak <strong>and</strong> \nolinebreak for page breaking.<br />

If \pagebreak appears between two paragraphs, a new page will be forced<br />

at that point. If it comes within a paragraph, the new page will be<br />

implemented after the current line is completed. This line will be right<br />

<strong>and</strong> left justified as usual.<br />

The comm<strong>and</strong> \nopagebreak has the opposite effect: between paragraphs,<br />

it prevents a page break from occurring there, <strong>and</strong> within a<br />

paragraph, it s<strong>to</strong>ps a page break that might take place at the end of the<br />

current line.<br />

Optional numbers between 0 <strong>and</strong> 4 express the degree of encouragement<br />

or discouragement for a page break. The analogy with the comm<strong>and</strong><br />

\linebreak goes further: just as the line before the break is left <strong>and</strong> right<br />

justified with extra interword spacing, in the same way the page before<br />

the break is exp<strong>and</strong>ed with interline spacing <strong>to</strong> make it <strong>to</strong>p <strong>and</strong> bot<strong>to</strong>m<br />

justified.<br />

The proper comm<strong>and</strong> <strong>to</strong> end a page in the middle, fill it with blank<br />

spacing, <strong>and</strong> go on <strong>to</strong> a new page is<br />

\newpage<br />

which is equivalent <strong>to</strong> \newline with regard <strong>to</strong> page breaking.<br />

Pages with figures <strong>and</strong> tables<br />

If the text contains tables, pictures, or reserved space for figures, these<br />

are inserted at the location of the corresponding comm<strong>and</strong>, provided that<br />

there is enough room for them on the current page. If there is not enough<br />

space, the text continues <strong>and</strong> the figure or table is s<strong>to</strong>red <strong>to</strong> be put on a<br />

following page.<br />

The comm<strong>and</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!