<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 12pt; color: #000000'><P>thanks for the work around.</P>
<P>&nbsp;</P>
<P>george</P>
<P><BR>----- Original Message -----<BR>From: "Charlie Sharpsteen" &lt;chuck@sharpsteen.net&gt;<BR>To: texworks@tug.org<BR>Sent: Sunday, December 13, 2009 8:01:20 PM GMT -08:00 US/Canada Pacific<BR>Subject: Re: [texworks] PSTricks problem<BR><BR><BR><BR></P>
<DIV class=gmail_quote>On Sun, Dec 13, 2009 at 3:56 PM, <SPAN dir=ltr>&lt;<A href="mailto:GeorgeFLeCompte@comcast.net" target=_blank>GeorgeFLeCompte@comcast.net</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class=gmail_quote>
<DIV>
<DIV style="FONT-FAMILY: Arial; COLOR: #000000; FONT-SIZE: 12pt">
<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>&nbsp;</P>
<P>When I attempt to run it i get messenges ending in:</P>
<P>&nbsp;</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>&nbsp;</P>
<P>I can't relate this to the program.&nbsp; Please help or stear me to a more appropriate site.</P>
<P>&nbsp;</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. &nbsp;pstricks only works when output is directed to a postscript (.ps) file, not a pdf file. &nbsp;This involves setting up a typesetting command that executes the following steps:</DIV>
<DIV><BR></DIV>
<DIV>&nbsp;&nbsp;- Runs latex on your .tex file (instead of pdflatex)</DIV>
<DIV><BR></DIV>
<DIV>&nbsp;&nbsp;- Runs dvips on the resulting .dvi file</DIV>
<DIV><BR></DIV>
<DIV>&nbsp;&nbsp;- 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>&nbsp;&nbsp;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. &nbsp;You can find some nice examples of TikZ output and usage at:</DIV>
<DIV><BR></DIV>
<DIV>&nbsp;&nbsp;<A href="http://www.texample.net/tikz/examples/all/date/" target=_blank>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></div></body></html>