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

If I set \pagecolor{} to any color other than white, I will get a strange result.

rem batch.bat takes a file name without extension.
latex -interaction=nonstopmode %1
dvips -E %1 -o %1-temp.eps
epstool --copy --bbox %1-temp.eps %1.eps
ps2pdf -dEPSCrop %1.eps
\pagecolor{red}% please try white or disable it.

Is it a bug?

share|improve this question
up vote 2 down vote accepted

No, this is not a bug in ps2pdf.

ps2pdf -dEPSCrop takes the boundingbox from the eps file. Here, epstool has put a very large bounding box in the file. epstool --copy --bbox uses the ghostscript bbox device to calculate the bounding box, and you already know that this has a problem in recent versions of ghostscript when there is a coloured background (whether you want to call this a "bug" in ghostscript is debatable).

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.