When I compile my PDF from LaTeX source, do I have to care about all the messages (currently 28) about 'bad boxes'?
The PDF seems fine to me.
|
When I compile my PDF from LaTeX source, do I have to care about all the messages (currently 28) about 'bad boxes'? The PDF seems fine to me. |
|||
| show 1 more comment |
|
It is worth noting that TeX doesn't make the value judgements here. The user, or more likely, the class file on behalf of the user, has set constraints on the amount by which boxes may overflow, the amount of stretching allowed on short pages etc. TeX only warns if these user-set constraints are exceeded. So if you are setting difficult material with lots of big unbreakable chunks, that means that the constraints are probably wrong. (They were designed mostly for copy that is mostly text that can be hyphenated and with enough interword stretch to get tight fitting boxes.) Rather than TeX trying to meet un-achievable constraints and then complaining about failing to meet them, it is better to modify (relax) the constraints. But before doing that you should make sure that they really are un-achievable and it is not just user error preventing tex from finding a good layout. Some general notes added as requested: Settings that only affect warning messages. There are several setting that only affect the messages that TeX sends out. For example if you know that some boxes will be overfull by 2pt (and you don't mind this) but you want to be warned for a box that is 1cm too full then set
this will make no difference to the typesetting, but will suppress warnings for boxes that are only slightly overfull.
is the same thing for vertical boxes. Similar are The parameter Good typographic quality would indicate that you shouldn't ignore (or turn off) these warnings, However sometimes it makes sense. The PDF version of the MathML recommendation for example is set automatically by LaTeX from sources primarily designed for the normative HTML version. Because it has many one or two line paragraphs and many indented tables and examples, the right hand margin is very uneven anyway and so allowing the occasional overlarge example to protrude isn't so bad, it is set with
Settings that don't affect the typesetting of good boxes TeX3 introduced a parameter Settings that do affect the typesetting. LaTeX has a command
The setting of tolerance makes it rather more sloppy than is perhaps
desirable, and it is probably worth experimenting with just setting
The default fussy settings used by LaTeX are
For vertical page breaking, if you are getting underful boxes in the
output routine you may prefer The above are the main global settings however every aspect of the document design affects this. In particular, if the space between display elements such as lists and displayed maths, and the space between paragraphs, is stretchy then it it is much easier for TeX fo find a "good" page break, however this means that there is no vertical alignment between lines on different pages. especially for book designs using two page spreads, designers often aim to keep text on a grid where text always aligns on fixed positions. This usually means that you have to make all the vertical spaces much more rigid, which increases the chance of Tex giving warnings about over or under-full vboxes. |
|||||||
|
|
Yes, you should definitely take care of them.
How much badness requires action is difficult to say, but I would never accept a final PDF where there's some |
|||||||||||||||||||
|
microtypepackage and its protrusion feature? If so, getting messages about overfull boxes (of width usually no larger than 1 or 2 pt) is quite normal. – Mico Apr 5 '12 at 11:05\hfuzz=2ptand tex will then warn you if it is more than that. – David Carlisle Apr 5 '12 at 12:42pictureenvironment, an overfull box message will result if the width specification for the picture is larger than the text width -- even if the content of thepictureis well within the text width. no end of headaches. be careful. – barbara beeton Apr 5 '12 at 13:29