# [pstricks] ncangle variant is needed

Herbert Voss LaTeX at zedat.fu-berlin.de
Sat Jun 23 22:47:21 CEST 2007

Boris Veytsman wrote:
> I need a variant of \ncangle, and I am afraid my PostScript skills are
> not good enough to make it.
>
> I want a node connection like \ncangle, where arm B starts from the
> edge of the node, like in the current \ncangle, BUT its length is
> calculated from the node center rather than from the edge.
>
> Let me give an example.  In this picture:
>
> \begin{pspicture}(5,4)
>   \cnode(2.5,3.5){0.2}{A}
>   \cnode(0.5,1){0.2}{B1}
>   \cnode(1.5,1){0.4}{B2}
>   \cnode(2.6,1){0.6}{B3}
>   \cnode(4,1){0.8}{B4}
>   \psset{angleB=90,angleA=-90,armB=1}
>   \ncangle{A}{B1}
>   \ncangle{A}{B2}
>   \ncangle{A}{B3}
>   \ncangle{A}{B4}
> \end{pspicture}
>
> the horizontal arms of the node connections are not aligned because
> nodes Bi have different radii.  I can manually align them using
> different values of armB:
>
where is the problem, simply saing

\psset{angleB=90,angleA=-90,armA=1cm}

Herbert