<br><br><div class="gmail_quote">On Sun, Dec 13, 2009 at 3:56 PM,  <span dir="ltr">&lt;<a href="mailto:GeorgeFLeCompte@comcast.net">GeorgeFLeCompte@comcast.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="font-family:Arial;font-size:12pt;color:#000000"><div style="font-family:Arial;color:#000000;font-size:12pt">
<p><br>Im using texworks under Windows Vista Home Premium.</p>
<p>File Simple.tex is taken from LaTeX Graphics Companion section 4.6.</p>
<p> </p>
<p>When I attempt to run it i get messenges ending in:</p>
<p> </p>
<p>! Undefined control sequence.</p>
<p style="text-indent:0px;margin:0px">&lt;recently read&gt; \c@lor@to@ps </p>
<p style="text-indent:0px;margin:0px"></p>
<p style="text-indent:0px;margin:0px">l.12 \ncline{A}{B}</p>
<p style="text-indent:0px;margin:0px"></p>
<p style="text-indent:0px;margin:0px">? </p>
<p> </p>
<p>I can&#39;t relate this to the program.  Please help or stear me to a more appropriate site.</p>
<p> </p>
<p>george</p></div></div></div></blockquote></div><br><div>I would imagine this is because you are using the pdfLaTeX command in TeXworks.  pstricks only works when output is directed to a postscript (.ps) file, not a pdf file.  This involves setting up a typesetting command that executes the following steps:</div>
<div><br></div><div>  - Runs latex on your .tex file (instead of pdflatex)</div><div><br></div><div>  - Runs dvips on the resulting .dvi file</div><div><br></div><div>  - Runs ps2pdf on the resulting .ps file</div><div><br>
</div><div>This will involve setting up three new commands in the TeXworks menu:</div><div><br></div><div>  Preferences -&gt; Typesetting</div><div><br></div><div>You could probably reduce this to one command by writing a batch file/shell script that invokes each program in order.</div>
<div><br></div><div>Personally, I would recommend sticking with pdfLaTeX and taking a look at the TikZ package which provides much of the functionality of pstricks without requiring that a certain version of the LaTeX compiler be used.  You can find some nice examples of TikZ output and usage at:</div>
<div><br></div><div>  <a href="http://www.texample.net/tikz/examples/all/date/">http://www.texample.net/tikz/examples/all/date/</a></div><div><br></div><div>Good luck!</div><div><br></div><div><br></div><div>-Charlie</div>