# Why does \ncbar seem to ignore angleB?

I have used \ncbar before with success and it worked perfectly however the following code:

\documentclass{article}
\usepackage{pst-all}
\begin{document}
\begin{figure}[htp]
\begin{center}
\vspace{3cm}
\rput(-4,0){\rnode{A}{\psframebox[framearc=.3]{A}}}
\rput(-2,2){\rnode{B}{\psframebox[framearc=.3]{B}}}
\ncbar[angleA=90,angleB=-90,arrows=->]{A}{B}
\end{center}
\end{figure}
\end{document}


Produces me the following:

The angleB=-90 is not taken into account. The \ncdiag works just fine. I use TeXmaker on a Linux machine and I compile with LaTeX + dvips + ps2pdf.

-
Can anyone reproduce it? – Evangelos Bempelis Jul 10 '12 at 14:44
When you run the above code you also get the wrong angle or is it as it is supposed to be? – Evangelos Bempelis Jul 10 '12 at 15:06
I thought so but apart the fact that I remember me using it an example of it can be found here link to pdf file – Evangelos Bempelis Jul 10 '12 at 15:24
@VagelisBebelis: you can get such documents with running texdoc psmatrix. No need to load it from the net, it is already present on your computer. – Herbert Jul 10 '12 at 15:52
@Herbert: No need to use @VagelisBebelis because you made a comment for his own question (as well as his answer if any). – kiss my armpit Jul 10 '12 at 16:16

from the documentation:

This node connection consists of a line with arms dropping “down”, at right angles, to meet two nodes at an angle angleA. Each arm is at least of length armA or armB, but one may be need to be longer.

You are looking for \ncangle[angleA=90,angleB=-90,arrows=->]{A}{B}

-
makes no difference, you can use angle or angleA. Important is only that angleB is not of interest – Herbert Jul 10 '12 at 15:54
Indeed \ncangle did the trick. Thanks for your help. Still though I'm sure that \ncbar also takes two angles as arguments. – Evangelos Bempelis Jul 10 '12 at 16:19
no, \ncbar never used both angles. – Herbert Jul 10 '12 at 17:23
In this example \ncbar uses both angles: \documentclass{article} \usepackage{pst-all} \begin{document} \begin{pspicture}(0,1)(4,-2) \begin{psmatrix}[emnode=r] \psset{arrowscale=2} Verbinde {\rnode{A}{KnotenX}} mit {\rnode{B}{KnotenY}}! \end{psmatrix} \ncbar[nodesep=3pt,angleA=-90,angleB=90,linecolor= red,arrows=<->,arrowscale=2, arm=0.8]{A}{B} \end{pspicture} \end{document} – Evangelos Bempelis Jul 11 '12 at 13:49
set angleB to something else, eg 45 and you'll see that nothing happens! angleB=90 would be a connection from above and not below if the angle would be taken into account. – Herbert Jul 11 '12 at 13:55

Recall that the arms must be parallel then only certain angles that produce parallel arms are valid.

angle is the only valid option for \ncbar to change the direction. Both angleA and angleB are not used even though angle=angleA.

-
In documentation I find \ncbar connecting words using this notation though. It might be problematic because I use psframeboxes? – Evangelos Bempelis Jul 10 '12 at 15:38