[pstricks] Probably a bug in \nodexn
Donut E. Knot
the.counterterrorist at yahoo.com
Mon Dec 30 20:03:20 CET 2013
The issue still exists even without pscustom. So what is misleading me now? :-)
\documentclass{minimal}
\usepackage{pst-eucl}
\psset{saveNodeCoors}
\def\xy#1{!N-#1.x N-#1.y}
\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
\psline(\xy{A})(\xy{B})(\xy{C})
\end{pspicture}
\end{document}
Stiff Jokes
On Monday, December 30, 2013 6:45 AM, Michael Sharpe <msharpe at ucsd.edu> wrote:
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20131230/65ad083d/attachment.html>
More information about the PSTricks
mailing list