[pstricks] auto-pst-pdf incompatible with psgraph?

Rolf Niepraschk Rolf.Niepraschk at ptb.de
Thu Dec 18 09:45:14 CET 2008



David Arnold schrieb:
> All,
> 
> This:
> 
> \documentclass[11pt]{article}
> \usepackage{amsmath}
> \usepackage{graphicx}
> \usepackage[dvipsnames]{pstricks}
> \usepackage{pstricks-add,auto-pst-pdf}
> 
> \begin{document}
> 
> \begin{center}
> \begin{psgraph}(0,0)(5,3){6cm}{!} % x-y-axis with same unit
> \psplot[linecolor=red,linewidth=1pt]{0}{5}{x dup mul 10 div}
> \end{psgraph}
> \end{center}
> 
> \end{document}
> 
> When compiled with pdflatex, leads to this error:
...

Try the following as a work-around:
%---------------------------------------------------
\usepackage{ifpdf}
\ifpdf
  \let\psgraph=\postscript
  \let\endpsgraph=\endpostscript
\else
  \PreviewEnvironment{psgraph}
\fi
%---------------------------------------------------

In the next version of "pst-pdf" I will support the psgraph environment.

...Rolf















More information about the PSTricks mailing list