According to the readme, the following steps need to occur:
a - You have to move all the files from the "generic" subdirectory
to a directory part of your TEXINPUTS environment variable, or to add it
in your TEXINPUTS list of paths.
b - If you are a LaTeX user (and not only a plain TeX one), you have
to do the same thing for the "latex" subdirectory, which define LaTeX
wrappers for all the PSTricks files.
a - If you use the "dvips" DVI to PostScript converter, you have
to move all the files from the "dvips" subdirectory to a directory part
of your DVIPSHEADERS environment variable, or to add it in your DVIPSHEADERS
list of paths.
I'm using the ProText installation on a PC, and I put the files above in C:\Program Files\MiKTeX 2.7\ in the generic, latex, and dvips subfolders.
Here's what I've tried:
Code: Select all
\documentclass{amsart}
\title{Why Won't This Fucking Work!?}
\author{Ed}
\date{\today}
% Check if we are compiling under latex or pdflatex, and include the
% appropriate graphics package
\ifx\pdftexversion\undefined
\usepackage[dvips]{graphicx}
\else
\usepackage[pdftex]{graphicx}
\fi
\usepackage{pstricks}
\usepackage{pst-node}
\usepackage{pst-tree}
\usepackage{pst-plot}
\begin{document}
\begin{figure}[h]
\begin{pspicture}(0,0)(3,3)
\psframe(0.7,2)(3.3,3)
\end{pspicture}
\end{figure}
\end{document}
! Undefined control sequence.
<recently read> \c@lor@to@ps
1.23 \psframe(0.7,2)(3.3,3)
! Undefined control sequence.
\XC@usec@lor ...string \color@ #1#2\endcsname \@@
\fi \space
1.23 \psframe(0.7,2)(3.3,3)
! Undefined control sequence.
<recently read> \c@lor@to@ps
1.23 \psframe(0.7,2)(3.3,3)
! Undefined control sequence.
\XC@usec@lor ...string \color@ #1#2\endcsname \@@
\fi \space
1.23 \psframe(0.7,2)(3.3,3)
On the other hand, this works without error:
Code: Select all
\documentclass{amsart}
\title{Why Won't This Fucking Work!?}
\author{Ed}
\date{\today}
% Check if we are compiling under latex or pdflatex, and include the
% appropriate graphics package
\ifx\pdftexversion\undefined
\usepackage[dvips]{graphicx}
\else
\usepackage[pdftex]{graphicx}
\fi
\usepackage{pstricks}
\usepackage{pst-node}
\usepackage{pst-tree}
\usepackage{pst-plot}
\begin{document}
\begin{figure}[h]
\begin{pspicture}(0,0)(3,3)
\end{pspicture}
\end{figure}
\end{document}