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

David Arnold dwarnold45 at suddenlink.net
Sun Dec 14 20:29:23 CET 2008


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:

[Loading MPS to PDF converter (version 2006.09.02).]
)
Preview: Fontsize 10.95pt
Preview: PDFoutput 1
Runaway argument?
linewidth=1pt]{0}{5}{x dup mul 10 div} \end {psgraph} \end {center}
! Paragraph ended before \psgraph at ii was complete.
<to be read again>
                    \par
l.14


Whereas, this will compile fine with the Tex and Ghostscript option  
in Texshop.

\documentclass[11pt]{article}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[dvipsnames]{pstricks}
\usepackage{pstricks-add}

\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}	


More information about the PSTricks mailing list