24

I seem to remember a command to show bad boxes in a PDF when using latex, but googling is not helping me to remember.

How can I show bad boxes in my PDF?

Andrey Vihrov
  • 22,325
Mica
  • 4,629

1 Answers1

26

Pass the draft option to your document class or insert

\overfullrule=5pt

in your preamble. (Assuming that by bad boxes you mean overfull boxes.)

Andrey Vihrov
  • 22,325
  • I vaguely recall some other command, but this certainly does the job. I may be thinking of the ConTeXt command.... who knows. Thanks for your help! – Mica May 09 '11 at 23:46
  • 5
    Doesn't this solution only work for bad hboxes? The question suggests that the OP is also interested in highlighting bad vboxes, but neither the draft option nor \overfullrule=5pt in the preamble accomplishes this. – Tyson Williams Mar 03 '13 at 15:01