[pstricks] specifying angles by direction vectors
Herbert Voss
Herbert.Voss at alumni.TU-Berlin.DE
Fri Nov 26 16:21:14 CET 2004
John Frampton wrote:
> \makeatletter
> \def\ps at dir(#1:#2){#1 #2 }
> \def\ps at dirtoangle{\pst at number\psyunit mul exch
> \pst at number\psxunit mul atan }
> \def\psset at dirA#1{\edef\psk at angleA{\ps at dir#1\noexpand\ps at dirtoangle}}
> \def\psset at dirB#1{\edef\psk at angleB{\ps at dir#1\noexpand\ps at dirtoangle}}
> \makeatother
it is better to use the xkeyval package. PSTricks has so many
optional arguments, that no one really knows which one are
still defined.
CTAN/macros/latex/contrib/xkeyval/
it provides also a package pst-xkey.tex for the TeX users
Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
More information about the PSTricks
mailing list