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


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
  • 2
    @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. – user2478 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 – user2478 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. – user2478 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. – user2478 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.