TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
\documentclass[draft]{article} – David Carlisle Oct 3 '12 at 10:29
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
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. – yo' Oct 3 '12 at 11:27
up vote 43 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


in the document preamble.

share|improve this answer
You'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
Seems like tex.stackexchange.com/q/28294/412 provides a way to color the marker. – Dror Feb 4 '14 at 20:31
@EvanED Just for the sake of completeness, you can pass the final option to the microtype package 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 respect microtype's changes. – Christian Mar 20 '14 at 1:48
Good to know; thanks, @Christian – EvanED Mar 28 '14 at 22:00

Your Answer


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.