# [texhax] Problem with pstricks

Alan Litchfield alan at alphabyte.co.nz
Mon Jun 27 02:24:12 CEST 2005

Hi all,

Not sure what the problem is here, hopefully someone can help me out.

I have a pspicture that is being included into a figure environment but I keep
getting this error

! Undefined control sequence.
\XC@@usecolor ...expandafter \c at lor@to at ps #1#2\@@
\else \expandafter \expand...
l.47 \psline[linewidth=0.15mm](
5,175)(35,215)

I have defined \usepackage{pstricks} and the file looks like this:

\psset{xunit=1mm,yunit=1mm,runit=1mm}
\psset{dotsize=0.7 2.5,dotscale=1 1,fillcolor=black}
\psset{arrowsize=1,arrowlength=1,arrowinset=0.25,tbarsize=0.7,bracketlength=0.15,rbracketlength=0.15}
\begin{pspicture}(0,0)(140,225)
...

% It all seems to run ok until it hits the first psline:
...
\psline[linewidth=0.15mm](5,175)(35,215)
...

\end{pspicture}

TIA
Alan