<div dir="ltr"><div>Unfortunately you are being mislead by texstudio's truncation of tex error messages.</div><div><br></div><div>The error is</div><div><br></div><div><br></div><div>! Undefined control sequence.<br><recently read> \c@lor@to@ps <br>                             <br>l.11         \end{pspicture}}<br>                             <br>? </div><div><br></div><div><br></div><div>so the undefined command is  \c@lor@to@ps not \end{pspicture} the latter is just the location in the source file where the error was detected.</div><div><br></div><div>pstricks has always given that error if used with pdflatex. I'm not sure why it doesn't just detect that and give a meaningful error message like</div><div>pstricks needs a postscript interpreter</div><div>but it doesn't:-)</div><div><br></div><div>If you use latex then dvips then ps2pdf it should work.</div><div><br></div><div>or you can add</div><div><br></div><div>\usepackage{auto-pst-pdf}</div><div><br></div><div>and use pdflatex --shell-escape and just the pstricks parts will be run in a latex/dvips manner and re-included as pdf into the main pdflatex document</div><div><br></div><div>David</div><div><br></div><div><br></div><div><br></div></div>