[pstricks] pstricks and SpecialCoor

David Wood davidw at scs.carleton.ca
Tue Jul 22 20:41:34 CEST 2003


Can some explain why the code that follows produces the 
error:

  PSTricks error.  See User's Guide for further information.
                   Type  H <return>  for immediate help.
  ! Bad number: `\temp '. 0 substituted..

And more importantly, how can I use a variable length with
polar coordinates?

Thanks,
- David

----------------------------------------------

\documentclass{article}
\usepackage{pst-all}
\pagestyle{empty}
\begin{document}
\psset{unit=15mm}

\SpecialCoor

\begin{TeXtoEPS}
\begin{pspicture}(-8,-8)(8,8)

\newlength{\temp}
\pssetlength{\temp}{1}

% this works
\psline(6,\temp)(6;0)

% but this doesn't
\psline(6;\temp)(6;0)

\end{pspicture}
\end{TeXtoEPS}

\end{document}





More information about the PSTricks mailing list