1

I'm trying to create a standalone drawing with pstricks compiled using latex>dvips>ps2pdf. I don't have any compiling errors, but the image is not cropped properly in the vertical direction. The following code gives me the image below it.

\documentclass[pstricks,border=12pt]{standalone}
\usepackage{pstricks}
\begin{document}
\begin{pspicture}[showgrid](-10,-10)(10,10)
\end{pspicture}
\end{document}

enter image description here If the size of the picture is smaller than 13 in height the grid is no longer visible. It seems that the original page is always cropped in the center although the pspicture is aligned at the top.

It used to work properly but stopped working suddenly, so I suspect some update might be the culprit. I reinstalled everything I could think off and the problem is still there. I am using MiKTeX 2.9.6

Running xelatex results in correct cropping, however I want to use pst-optexp and xelatex fails when drawing beams so that is not an option.

  • Try to run that document with xelatex. Is it also wrong cropped? – user2478 Aug 8 '16 at 14:48
  • When compiled with xelatex the cropping is correct. – R.Meijer Aug 10 '16 at 9:16

Your Answer

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

Browse other questions tagged or ask your own question.