[pstricks] Probably a bug in \nodexn

Michael Sharpe msharpe at ucsd.edu
Mon Dec 30 00:45:31 CET 2013


On Dec 29, 2013, at 3:21 PM, Donut E. Knot <the.counterterrorist at yahoo.com> wrote:

> Dear folks,
> 
> I noticed \nodexn behaves abnormally as the following code represents. When C is constructed via \nodexn, it becomes rendered outside the canvas. 
> 
> \documentclass[pstricks,border=12pt]{standalone}
> 
> \usepackage{pst-eucl}
> \psset{saveNodeCoors}
> 
> \begin{document}
> \begin{pspicture}[showgrid](-3,-1)(3,3)
> 	\pstGeonode
> 		(2,0){A}
> 		(2,2){B}
> 		(!N-A.x N-B.x add 4 div N-A.y N-B.y add 4 div 2.5 add){C}
> 
> 	
> %\nodexn{.25(A)+.25(B)+(0,2.5)}{C'}% does not work
> 	%\pstGeonode(C'){C}% does not work
> 	\def\common{\psline(!N-A.x N-A.y)(!N-B.x N-B.y)(!N-C.x N-C.y)}%
> 	\pscustom
> 	{
> 		\common
> 		\reversepath
> 	
> 	
> \scale{-1 1}
> 		\common
> 		\closepath
> 	}
> \end{pspicture}
> \end{document}
> 
> 
> Thank you in advance.
> 
> 
> Best regards,
> 
> Stiff Jokes
> (http://tex.stackexchange.com/users/19356)
> _______________________________________________

Use the \shownode macro to trace the calculations: When I uncomment \nodexn and the following line, I get the correct points:
Node A: (2.0, 0.0)
Node B: (2.0, 2.0)
Node C': (1.0, 3.0)
Node C: (1.0, 3.0)

I seems to be your pscustom block that's misleading you, not a bug in \nodexn.

Michael


More information about the PSTricks mailing list