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.

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

If I scale the graphic by, say 2.0, I can see the graphic poking out from behind the \fbox.

share|improve this question
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. – lockstep Sep 16 '11 at 14:33
Can you give us an example (source code)? – JF Meier Sep 16 '11 at 14:33
How do I do it - as a file? – Keith77777 Sep 20 '11 at 14:26
Sorry, I am generating a dvi file not a pdf. Already got the xcolor package included. This happens to ALL graphics and happened suddenly, but I cannot figure what it was that caused it. – Keith77777 Sep 20 '11 at 15:51

The default \fbox draws the four lines of the frame and places the content in one go. Therefore some lines are placed before and some after the content. If the content is a trimmed image then the trimmed part will be printed over the lines placed before. Also, depending on the zoom level the PDF viewer might mix up both. You can't do much about the latter, but if you load the xcolor package than \fbox gets redefined so that the content is placed first and then the lines are drawn, so that they are always shown above it, as it is supposed to be.

share|improve this answer

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.