[texworks] PSTricks problem

GeorgeFLeCompte at comcast.net GeorgeFLeCompte at comcast.net
Mon Dec 14 06:45:46 CET 2009



thanks for the work around. 



george 


----- Original Message ----- 
From: "Charlie Sharpsteen" <chuck at sharpsteen.net> 
To: texworks at tug.org 
Sent: Sunday, December 13, 2009 8:01:20 PM GMT -08:00 US/Canada Pacific 
Subject: Re: [texworks] PSTricks problem 




On Sun, Dec 13, 2009 at 3:56 PM, < GeorgeFLeCompte at comcast.net > wrote: 








Im using texworks under Windows Vista Home Premium. 

File Simple.tex is taken from LaTeX Graphics Companion section 4.6. 



When I attempt to run it i get messenges ending in: 



! Undefined control sequence. 

<recently read> \c at lor@to at ps 



l.12 \ncline{A}{B} 



? 



I can't relate this to the program.  Please help or stear me to a more appropriate site. 



george 

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: 


  - Runs latex on your .tex file (instead of pdflatex) 


  - Runs dvips on the resulting .dvi file 


  - Runs ps2pdf on the resulting .ps file 


This will involve setting up three new commands in the TeXworks menu: 


  Preferences -> Typesetting 


You could probably reduce this to one command by writing a batch file/shell script that invokes each program in order. 


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: 


   http://www.texample.net/tikz/examples/all/date/ 


Good luck! 




-Charlie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texworks/attachments/20091214/d1019fba/attachment.html>


More information about the texworks mailing list