[pstricks] using postscript calc for length but not angle
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Sun Apr 17 20:47:19 CEST 2011
Am 17.04.2011 19:54, schrieb Jon Joseph:
> All: I would like to set a pnode at \sqrt{3} and 30 degrees and let postscript make the square root calculation for me. I'm looking for
> \pnode(1.732;30) but replace 1.732 with !3 sqrt. How do I do this without pnode thinking I want the cartesian point \pnode(1.732, 30)? Thanks, Jon.
\documentclass{minimal}
\usepackage{pst-node} \SpecialCoor
\begin{document}
\psset{unit=2}
\begin{pspicture}(2,2)\psgrid
\end{pspicture}
\pnode(! 3 sqrt 30 PtoC){A}\psdot(A)
\end{document}
Herbert
More information about the PSTricks
mailing list