[pstricks] A polygonal node
Herbert Voss
LaTeX at zedat.fu-berlin.de
Fri Apr 28 23:08:56 CEST 2006
Boris Veytsman wrote:
> HV> Date: Fri, 28 Apr 2006 22:43:05 +0200
> HV> From: Herbert Voss <LaTeX at zedat.fu-berlin.de>
>
> HV> give a working minimal example of what you did.
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> \def\simplenode#1{
> \rnode{#1}{%
> \pspicture[shift=-0.25](-0.25,-0.25)(0.25,0.25)%
> \pspolygon(0,0.25)(0.25,0)(0,-0.25)(-0.25,0)%
> \endpspicture}}
>
> \begin{pspicture}(6,6)
> \rput(3,3){\simplenode{A}}
> \rput(4,2){\simplenode{B}}
> \rput(3,1){\simplenode{C}}
> \ncline{A}{B}
\ncline[nodesep=-3pt]{A}{B}
> \ncline{A}{C}
> \end{pspicture}
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> I want the line between A and B to stop at the border (diamond), like
> the line between A and C
Why can't you use \dianode ??
\begin{pspicture}(6,6)
\rput(3,3){\dianode{A}{A}}
\rput(4,2){\dianode{B}{B}}
\rput(3,1){\dianode{C}{C}}
\ncline{A}{B}
\ncline{A}{C}
\end{pspicture}
Herbert
More information about the PSTricks
mailing list