[pstricks] pst-pdf and auto-pst-pdf

George pinkisntwell at gmail.com
Fri Aug 13 16:19:37 CEST 2010

2010/8/13 Herbert Voss <Herbert.Voss at fu-berlin.de>:

> I have no problem with the following minimal example.
> Replace the /tmp/demo.png with another png image.
> You must run "pdflatex -shell-escape <fiel>"
> Herbert
> \documentclass{article}
> \usepackage{pstricks}
> \usepackage{auto-pst-pdf}
> \begin{document}
> \begin{pspicture}(2,4)
> \psline(0,0)(2,0)(0,2)(1,4)(2,2)(0,0)
> \end{pspicture}
> \bigskip
> \includegraphics[width=\linewidth]{/tmp/demo.png}
> \end{document}

This gave me the same error. The problem was that auto-pst-pdf uses the
'crop' option by default, which needs perl, which I hadn't.
Admittedly, this is mentioned in
http://tug.org/PSTricks/main.cgi?file=pdf/pdfoutput , however I didn't
notice it.

Once I installed perl it worked, but it cropped my diagrams and thus
moved them off-center. I could edit my diagrams to fix this, however I
just set the 'crop' option and it worked.

Thanks for the help.

More information about the PSTricks mailing list