[texhax] Question

Tom Schneider toms at ncifcrf.gov
Sun Jan 17 05:48:36 CET 2010

> \documentclass{minimal}
> \usepackage{pstricks-add}
> \begin{document}
> \centering
> \begin{pspicture}(-5,-2)(5,2)
> \psaxes(0,0)(-4.5,-1.25)(4.5,1.25)
> \psplot[plotpoints=100,algebraic]{-4}{4}{sin(x)}
> \end{pspicture}\\
> $sin(x)$
> \end{document}

What a lovely example!  When I run this on the command line, it works just fine.
For file z.tex,

latex z
dvips z
ps2pdf z.ps
open z.pdf

But if I

open z.tex

and Typeset it in TexShop (version 2.18-svn) on my Mac OSX 10.6.2, I
get an error:

! Undefined control sequence.
\XC at usec@lor ...\expandafter \c at lor@to at ps #1#2\@@ 
                                                  \else \expandafter \expand...
l.9 \psplot



  Dr. Thomas D. Schneider
  National Institutes of Health
  http://alum.mit.edu/www/toms (permanent)

More information about the texhax mailing list