[pstricks] Version of \pscircle for use on Postscript side

Michael Sharpe msharpe at ucsd.edu
Fri Aug 22 04:24:48 CEST 2008

I was looking for a way to use a macro like \pscircle, but with the  
ability to use \SpecialCoor to specify all parameters. That's possible  
now with all except the radius. (I realize that the pst-eucl package  
contains a number of special cases allowing construction of circles  
from nodes, but unless I'm being obtuse, there is not a macro that  
works in the generality I wanted.) To cut a long story short, it turns  
out that the answer was already there in pstricks---\psellipse. The  
fact that you specify the two radii as a pair (a,b) means that the  
parser allows Postscript code for a,b, or a \pnode. For example:

\psLCNode(C){-1}(D){1}{R}% R=CtoD
\psellipse(C)(! \psGetNodeCenter{R} R.x R.y Pyth dup) %circle, center  
C, through D

More information about the PSTricks mailing list