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

I want to overlay one graphic over the another in my latex, however the white background is annoyingly transparent. To over come this I want to draw a rectangle of white behind the overlayed figure. like this:

\put(50,10){\psframe[framearc=0.3,% The box !!!!!

But I get the error:

!!! Warning: Empty Bounding Box is returned by Ghostscript!
!!!   Page 8: 0 0 0 0
!!! Either there is a problem with the page or with Ghostscript.
!!! Recovery is tried by embedding the page in its original size.

I guess an all white box dosn't have its bounding box detected? Any Ideas why? Am I doing something stupid?


p.s. another minor annoance with the above is that i cant use


withough screwing up the scaling of the overlayed graphic


so i have to use scale instead and guess a good value.

share|improve this question

migrated from stackoverflow.com Feb 29 '12 at 15:22

This question came from our site for professional and enthusiast programmers.

Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question. – Werner Feb 29 '12 at 15:24

It makes no sense to mix LaTeX and PSTricks commands. However, I cannot test your example in fact of missing images. This works with a red box to make it visible:



\put(50,10){\psframe*[framearc=0.3,% The box !!!!!

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.