Is it possible to make LaTeX mark overfull boxes in the output, for example by drawing red rectangles in the PDF where the boxes overflow? The purpose -- to more easily "see" where the problems are in the output.
Asked
Active
Viewed 1.7k times
1 Answers
104
As David Carlisle and egreg said, you can use the draft option in most classes.
If you wish to do it by hand (for example, you need a final option to check for another package's rendering) or tune it, you can use
\overfullrule=1mm
in the document preamble.
-
6You're my hero. :-) Microtype was turning off its stuff because of
[draft], which apparently can have significant effects on the output. – EvanED Aug 27 '13 at 17:15 -
3Seems like http://tex.stackexchange.com/q/28294/412 provides a way to color the marker. – Dror Feb 04 '14 at 20:31
-
22@EvanED Just for the sake of completeness, you can pass the
finaloption to themicrotypepackage to make it do its thing even in draft mode. I always do this because frankly the whole display overfull boxes thing is completely useless if it doesn't respectmicrotype's changes. – Christian Mar 20 '14 at 01:48 -
I would suggest using \overfullrule=5mm, so it shows up in the PDF page thumbprints in the side panel. – Martin Vermeer Jul 30 '23 at 14:34
\documentclass[draft]{article}– David Carlisle Oct 03 '12 at 10:29draftoption to\documentclass– egreg Oct 03 '12 at 10:30underfull \hbox, norover/underfull \vboxnorover/underfull \vbox while \output is active. You have to read the.logto find these. – yo' Oct 03 '12 at 11:27