views:

134

answers:

2

I'm working on a report, and some elements are outside the margins (but some are just barely outside the margins). I was wondering: Is there a way to make two vertical lines, one on each side, along the margins so that one can easily see if it goes outside them?

(Googling it, I only found information about margin notes.)

A figure is below:

|report text goes here|
|more text goes also h|ere
|and so on and so fort|h

It would certainly make correcting these kinds of mistakes very trivial. :)

Feel free to post answers that would solve/show this problem in a more "LaTeX-correct" way, if that makes any sense at all.

+10  A: 

Use the option draft in your \documentclass statement, e.g.:

\documentclass[12pt,a4paper,draft]{report}

This will produce a litte black box at the end of every overfull line (this is what Johannes Schaub must've been referring to in his comment). This makes it very easy to spot these inconvenient overlong lines ...

Alternatively, you can say \sloppy in your preamble. The typesetter will then be less strict on the grey value of your paragraphs and avoid "overfull \hbox"es more often (more frequent linebreaking).

David
Beautiful! Exactly what I needed. :) (If I had the reputation points, I would certainly vote your answer up.)
Christian Jonassen
Hehe, you're welcome!
David
You can still accept his answer though... right?
Geoff
Charles Stewart
"Vote Up requires 15 reputation".However, your answer was of course accepted. :D
Christian Jonassen
+2  A: 

If you're using pdflatex, try the microtype package.

lhf
Huh? Can you elaborate a bit (I'm interested)?
David
I meant that using the microtype package usually leads to less overfull lines.
lhf