[OS X TeX] First tries with PSTricks

Michael Sharpe msharpe at ucsd.edu
Thu Jan 29 13:49:20 EST 2009

On Jan 29, 2009, at 10:15 AM, Scott, Randy wrote:

> which I think means that pstricks is loaded properly. But when I
> type even the simplest of commands, say \psline(1,1)(3,2) , I get an
> error message : undefined control sequence

That's what you will get if you process with pdftex instead of dvips
+gs or an equivalent script. Try this, assuming you're using TeXShop
with the default Engine settings.

%&latex
%!TEX TS-program = latex
\documentclass{article}
\usepackage{pstricks}
\begin{document}
\begin{pspicture}(-.5,-.5)(6.5,6.5)
\psline(0,0)(4,3)
\end{pspicture}
\end{document}

Michael