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

  • 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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