diff options
Diffstat (limited to 'Master/texmf-doc/doc/english/FAQ-en/html/FAQ-overfull.html')
-rw-r--r-- | Master/texmf-doc/doc/english/FAQ-en/html/FAQ-overfull.html | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-overfull.html b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-overfull.html index f708e6696e9..b518a27bc39 100644 --- a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-overfull.html +++ b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-overfull.html @@ -2,7 +2,7 @@ <title>UK TeX FAQ -- question label overfull</title> </head><body> <h3>(La)TeX makes overfull lines</h3> -<p>When TeX is building a paragraph, it can make several attempts to +<p/>When TeX is building a paragraph, it can make several attempts to get the line-breaking right; on each attempt it runs the same algorithm, but gives it different parameters. You can affect the way TeX’s line breaking works by adjusting the parameters: this answer @@ -10,7 +10,7 @@ deals with the “tolerance” and stretchability parameters. The other vital ‘parameter’ is the set of hyphenations to be applied: see “<a href="FAQ-nohyph.html">my words aren’t being hyphenated</a>” (and the questions it references) for advice. -<p>If you’re getting an undesired “overfull box”, what has happened is +<p/>If you’re getting an undesired “overfull box”, what has happened is that TeX has given up: the parameters you gave it don’t allow it to produce a result that <em>doesn’t</em> overfill. In this circumstance, Knuth decided the best thing to do was to produce a warning, and to @@ -23,7 +23,7 @@ cases it’s impossible to solve the problem without adjusting the parameters. This answer discusses the approaches one might take to resolution of the problem, on the assumption that you’ve got the hyphenation correct. -<p>The simplest case is where a ‘small’ word fails to break at the end of +<p/>The simplest case is where a ‘small’ word fails to break at the end of a line; pushing the entire word to a new line isn’t going to make much difference, but it might make things just bad enough that TeX won’t do it by default. In such a case on can <em>try</em> the LaTeX @@ -31,7 +31,7 @@ do it by default. In such a case on can <em>try</em> the LaTeX will save an awful lot of fiddling. Otherwise, one needs to adjust parameters: to do that we need to recap the details of TeX’s line breaking mechanisms. -<p>TeX’s first attempt at breaking lines is performed without even +<p/>TeX’s first attempt at breaking lines is performed without even trying hyphenation: TeX sets its “tolerance” of line breaking oddities to the internal value <code>\</code><code>pretolerance</code>, and sees what happens. If it can’t get an acceptable break, TeX adds the @@ -40,7 +40,7 @@ using the internal <code>\</code><code>tolerance</code> value. If this pass als the internal <code>\</code><code>emergencystretch</code> value is positive, TeX will try a pass that allows <code>\</code><code>emergencystretch</code> worth of extra stretchability to the spaces in each line. -<p>In principle, therefore, there are three parameters (other than +<p/>In principle, therefore, there are three parameters (other than hyphenation) that you can change: <code>\</code><code>pretolerance</code>, <code>\</code><code>tolerance</code> and <code>\</code><code>emergencystretch</code>. Both the <code>tolerance</code> values are simple numbers, and should be set by TeX primitive count @@ -53,7 +53,7 @@ assignment — for example For both, an “infinite” tolerance is represented by the value <code>10</code><code>000</code>, but infinite tolerance is rarely appropriate, since it can lead to very bad line breaks indeed. -<p><code>\</code><code>emergencystretch</code> is a TeX-internal ‘dimen’ register, and can +<p/><code>\</code><code>emergencystretch</code> is a TeX-internal ‘dimen’ register, and can be set as normal for dimens in Plain TeX; in LaTeX, use <code>\</code><code>setlength</code> — for example: <blockquote> @@ -61,17 +61,17 @@ be set as normal for dimens in Plain TeX; in LaTeX, use \setlength{\emergencystretch}{3em} </pre> </blockquote><p> -<p>The choice of method has time implications — each of the +<p/>The choice of method has time implications — each of the passes takes time, so adding a pass (by changing <code>\</code><code>emergencystretch</code>) is less desirable than suppressing one (by changing <code>\</code><code>pretolerance</code>). However, it’s unusual nowadays to find a computer that’s slow enough that the extra passes are really troublesome. -<p>In practice, <code>\</code><code>pretolerance</code> is rarely used other than to manipulate +<p/>In practice, <code>\</code><code>pretolerance</code> is rarely used other than to manipulate the use of hyphenation; Plain TeX and LaTeX both set its value to <code>100</code>. To suppress the first scan of paragraphs, set <code>\</code><code>pretolerance</code> to <code>-1</code>. -<p><code>\</code><code>tolerance</code> is often a good method for adjusting spacing; +<p/><code>\</code><code>tolerance</code> is often a good method for adjusting spacing; Plain TeX and LaTeX both set its value to <code>200</code>. LaTeX’s <code>\</code><code>sloppy</code> command sets it to <code>9999</code>, as does the <code>sloppypar</code> environment. This value is the largest @@ -95,7 +95,7 @@ LaTeX users could use an environment like: </pre> </blockquote><p> enclosing entire paragraphs (or set of paragraphs) in it. -<p>The value of <code>\</code><code>emergencystretch</code> is added to the assumed +<p/>The value of <code>\</code><code>emergencystretch</code> is added to the assumed stretchability of each line of a paragraph, in a further run of the paragraph formatter in case that the paragraph can’t be made to look right any other way. (The extra scan happens if @@ -108,7 +108,7 @@ lots of spaces, this could be reasonable, but with (say) only three spaces on the line, each could stretch to four times its natural width. It is therefore clear that <code>\</code><code>emergencystretch</code> needs to be treated with a degree of caution. -<p>More subtle (but more tricky to manage) are the microtypographic +<p/>More subtle (but more tricky to manage) are the microtypographic extensions provided by PDFTeX. Since PDFTeX is the default ‘engine’ for LaTeX and ConTeXt work in all distributions, nowadays, the extensions are available to all. There are two @@ -120,7 +120,7 @@ Font expansion works like a subtler version of the trick that may be stretched (or shrunk) to a certain extent, and will do that “on the fly” to optimise the setting of a paragraph. This is a powerful tool in the armoury of the typesetter. -<p>As mentioned above, the microtypographic extensions are tricky beasts +<p/>As mentioned above, the microtypographic extensions are tricky beasts to control; however, the <i>microtype</i> package relieves the user of the tedious work of specifying how to perform margin adjustments and how much to scale each font ... for the fonts the package @@ -129,5 +129,5 @@ specification of adjustments for yet more fonts are always welcome. <dl> <dt><tt><i>microtype.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/microtype.zip">macros/latex/contrib/microtype</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/microtype.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/microtype/">browse</a>) </dl> -<p><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=overfull">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=overfull</a> +<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=overfull">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=overfull</a> </body> |