TeX Overfull Boxes: Raise Tolerance or Reword Text?
TeX flags overfull boxes when text cannot fit the line width. Raising tolerance can remove black rules, but looser spacing has typographic costs.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
TeX flags overfull boxes when text cannot fit the line width. Raising tolerance can remove black rules, but looser spacing has typographic costs.
TeX's Knuth–Plass paragraph builder retries breakpoint selection once with \emergencystretch after \pretolerance and \tolerance passes fail. The goal is to confirm whether that single emergencystretch attempt is the engine's final fallback when no acceptable breakpoints exist, or whether an additional automatic retry is available in any TeX engine. Documente
A step‑by‑step diagnostic guide for identifying and fixing Overfull \\hbox warnings in LaTeX, covering URLs, narrow columns, non‑breakable spaces, and microtype adjustments.
When compiling a TeX document you may notice that some lines are too tight, others too loose, or that TeX reports an overfull \\hbox warning. This happens because TeX must decide where to break each paragraph into lines.
TeX's Knuth–Plass algorithm optimizes whole paragraphs at once instead of breaking lines greedily. Here's how the tolerance and emergency-stretch knobs work, with a narrow-column example.
The goal is to configure TeX so that a positive \emergencystretch behaves as a binding upper bound on paragraph badness, preventing any overfull \hbox from being shipped out. In TeX82, \emergencystretch is consulted only after the first and second line-breaking passes fail, and it does not guarantee the elimination of overfull boxes; TeX still accepts a brea