Possible Duplicate:
How to use PSTricks in pdfLaTeX?
What is wrong with this code:
\documentclass{article}
\usepackage{pstricks}
\begin{document}
\begin{pspicture}(-0.5,0)(2.5,1)
\psdots(0,0)(2,0)(1,1)
\end{pspicture}
\end{document}
I am trying to compile it with pdflatex, and getting following error:
! Undefined control sequence.
<recently read> \c@lor@to@ps
l.6 \psdots(
0,0)(2,0)(1,1)
?
xelatexand look also at http://tug.org/PSTricks/main.cgi?file=pdf/pdfoutput – Mar 15 '12 at 20:56