[pst-poly] Problem when using \degrees before to draw a polygon

Denis Girou Denis.Girou at idris.fr
Fri Jul 10 22:08:16 CEST 1998


-----------------------------------------------------------------------------
This is the PSTricks mailing list, devoted to discussions about computational
graphics in (La)TeX using the PSTricks package from Timothy van Zandt.
For help using this mailing list, see instructions at the end of message.
-----------------------------------------------------------------------------

  I recently found a problem in my `pst-poly' package, version 1.3, when
the \degrees macro is used before to draw a polygon. My test case is:

\documentclass{article}

\usepackage{pst-poly}

\pagestyle{empty}

\begin{document}

\PstTriangle
\hspace{2cm}
\degrees[3]
\rput{0.5}{\PstTriangle}

\end{document}

  Problem is that the rotation angle must not be defined as a PSTricks angle
but simply as a real number, which can be redefined internally to a PostScript
operation by the \degrees macro:

\def\fileversion{1.4}
\def\filedate{98/07/09}

\define at key{psset}{PolyRotation}{%
\edef\psk at PolyRotation{#1}}

D.G.

-----------------------------------------------------------------------------
The list interface (subscription, information, access to the archives) is on:
http://www.tug.org/cgi-bin/lwgate/pstricks
Otherway to unsubscribe, send mail to pstricks-request at mail.tug.org
with a blank subject and in body the line unsubscribe <email-address>
-----------------------------------------------------------------------------



More information about the PSTricks mailing list