[pstricks] Requesting a new feature for nodesep and offset

Michael Sharpe msharpe at ucsd.edu
Sun Jul 7 07:28:45 CEST 2013

On Jul 5, 2013, at 9:01 PM, Counter Terrorist <the.counterterrorist at yahoo.com> wrote:

> May I request a new feature such that both nodesep and offset can be expressed in RPN? 
> I believe it is possible recall that Herbert Voss has successfully made the first argument (label separation) of \uput can be in RPN (see pst-news13 for the details).
> \documentclass[pstricks,border=12pt]{standalone}
> \usepackage{pst-eucl}
> \begin{document}
> \begin{pspicture}[showgrid](4,4)
> 	\pstGeonode
> 		(1,1){O}
> 		([nodesep=1,angle=30]O){P}
> 		([nodesep=2,angle={!30 90 add}]P){A}
> 		([nodesep=1.7205,offset=1]P){B}% I prefer ([nodesep={! 3 sqrt },offset={! 1}]P){B}
> 	\pstCircleOA{O}{P}
> 	\psline(A)(P)(B)
> \end{pspicture}
> \end{document}

You may work around this using pstricks abilities to parse the coordinates of points with great flexibility. For example,
you may replace the line

> 		([nodesep=1.7205,offset=1]P){B}% I prefer ([nodesep={! 3 sqrt },offset={! 1}]P){B}

	\nodexn{(! 3 sqrt 1)+(P)}{B}
 to much the same effect, except that \pstGeonode doesn't create a label.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20130706/a2da7f09/attachment.html>

More information about the PSTricks mailing list