# What is the command to highlight bad boxes in pdf? [duplicate]

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?

• add `draft` to the documentclass options. May 9 '11 at 16:50
• Is there also an option for underfull hboxes? Apr 22 '13 at 9:30

Pass the `draft` option to your document class or insert
``````\overfullrule=5pt
• 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. Mar 3 '13 at 15:01