Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
add draft to the documentclass options. –  Marco Daniel May 9 '11 at 16:50
1  
Is there also an option for underfull hboxes? –  white_gecko Apr 22 '13 at 9:30

1 Answer 1

up vote 18 down vote accepted

Pass the draft option to your document class or insert

\overfullrule=5pt

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

share|improve this answer
    
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 9 '11 at 23:46
    
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 3 '13 at 15:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.