Tell me more ×
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.

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.

share|improve this question
3  
\documentclass[draft]{article} – David Carlisle Oct 3 '12 at 10:29
3  
This is the duty of the draft option to \documentclass – egreg Oct 3 '12 at 10:30
So simple... thanks! – Vegard Oct 3 '12 at 10:32
2  
Out of curiosity: are there other visual warnings available? – Christian Lindig Oct 3 '12 at 11:05
@ChristianLindig unfortunately, not really. You cannot visualize underfull \hbox, nor over/underfull \vbox nor over/underfull \vbox while \output is active. You have to read the .log to find these. – tohecz Oct 3 '12 at 11:27
show 1 more comment

1 Answer

up vote 19 down vote accepted

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.

share|improve this answer

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.