I have an input file as follows.

% Test.tex







It is compiled with the following batch file.

rem Automate.bat takes an input file name without extension.
latex %1
dvips %1
gswin32c -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=%1.pdf %1.ps
pdftops -eps %1.pdf

I got a result as follows.

enter image description here

Notice that there are excessive strips outside the black frame due to rounding errors in calculating paper size. Depending on the given settings, the excessive strips may appear on the left, right, top, and bottom. Even though the excessive strips will not be noticeable by naked eyes, I want to remove them as far as there is a way to do so.

How to express my length calculation to get rid of the excessive strips?

  • 1
    run it with xelatex and everything will be fine.
    – user2478
    Jul 26, 2011 at 20:39
  • +1 but XeLaTeX renders very slowly. I cannot use it for animating PSTricks diagrams. It takes too much time, even though for a simple series of object changes. Jul 27, 2011 at 0:05

1 Answer 1


dvips -D10000 %1 and gswin32c ... -r10000 ... will use more precision in your conversions. There will still be rounding error.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .