diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-nopagebrk.html')
-rw-r--r-- | Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-nopagebrk.html | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-nopagebrk.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-nopagebrk.html index cfae4c4a482..949742d954f 100644 --- a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-nopagebrk.html +++ b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-nopagebrk.html @@ -17,13 +17,13 @@ list items’ attempts — they suggest page breaks between items — are subverted by <code>samepage</code>). Naturally, if <code>samepage</code> <em>does</em> work, it is capable of leaving stuff jutting out at the bottom of the page. -<p/>A convenient trick is to set all the relevant stuff in a <code>\</code><code>parbox</code> -(or a <code>minipage</code> if it contains things like verbatim text -that may not be in the argument of a <code>\</code><code>parbox</code>). The resulting box -certainly <em>won’t</em> break between pages, but that’s not to say that -it will actually do what you want it to do: again, the box may be left -jutting out at the bottom of the page. -<p/>Why do neither of these obvious things work? Because TeX can’t +<p/>Another convenient trick is to set all the relevant stuff in a +<code>\</code><code>parbox</code> (or a <code>minipage</code> if it contains things like +verbatim text that may not be used in the argument of a <code>\</code><code>parbox</code>). +The resulting box certainly <em>won’t</em> break between pages, but +that’s not to say that it will actually do what you want it to do: +again, the box may be left jutting out at the bottom of the page. +<p/>Why do neither of these obvious things work? — Because TeX can’t really distinguish between infinitely awful things. <code>Samepage</code> will make any possible break point “infinitely bad” and boxes don’t even offer the option of breaks, but if the @@ -97,13 +97,22 @@ check for things that have the potential to give trouble. In such a scenario (which has Knuth’s authority behind it, if one is to believe the rather few words he says on the subject in the TeXbook) one can decide, case by case, how to deal with problems at the last -proof-reading stage. The alternatives are to insert <code>\</code><code>clearpage</code> -commands as necessary, or to use <code>\</code><code>enlargethispage</code>. Supposing you -have a line or two that stray: issue the command -<code>\</code><code>enlargethispage{2<code>\</code><code>baselineskip</code>}</code> and two lines are -added to the page you’re typesetting. It depends on the document -whether this looks impossibly awful or entirely acceptable, but the -command remains a useful item in the armoury. +proof-reading stage. At this stage, you can manually alter page +breaking, using either <code>\</code><code>pagebreak</code> or <code>\</code><code>clearpage</code>, or you can +place a <code>\</code><code>nopagebreak</code> command to suppress unfortunate breaks. +Otherwise, you can make small adjustments to the page geometry, using +<code>\</code><code>enlargethispage</code>. Supposing you have a line or two that stray: +issue the command <code>\</code><code>enlargethispage{2<code>\</code><code>baselineskip</code>}</code> and +two lines are added to the page you’re typesetting. Whether this +looks impossibly awful or entirely acceptable depends on the document +context, but the command remains a useful item in the armoury. +<p/>Note that both <code>\</code><code>pagebreak</code> and <code>\</code><code>nopagebreak</code> take an optional +number argument to adjust how the command is to be interpreted. Thus +<code>\</code><code>pagebreak[0]</code>, the command ‘suggests’ that a page break +might be worth doing, whereas <code>\</code><code>pagebreak[4]</code> ‘demands’ a +page break. Similarly <code>\</code><code>nopagebreak[0]</code> makes a suggestion, +while <code>\</code><code>nopagebreak[4]</code> is a demand. In both commands, the +default value of the optional argument is 4. <dl> <dt><tt><i>memoir.cls</i></tt><dd><a href="http://mirror.ctan.org/macros/latex/contrib/memoir.zip">macros/latex/contrib/memoir</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/memoir/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/memoir.html">catalogue entry</a> <dt><tt><i>needspace.sty</i></tt><dd><a href="http://mirror.ctan.org/macros/latex/contrib/needspace.zip">macros/latex/contrib/needspace</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/needspace/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/needspace.html">catalogue entry</a> |