Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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:

Output

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.

share|improve this question
    
Can anyone reproduce it? –  Vagelis Bebelis 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? –  Vagelis Bebelis 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 –  Vagelis Bebelis 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. –  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). –  In PSTricks we trust Jul 10 '12 at 16:16

2 Answers 2

up vote 1 down vote accepted

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}

share|improve this answer
    
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. –  Vagelis Bebelis 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} –  Vagelis Bebelis 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.

share|improve this answer
    
In documentation I find \ncbar connecting words using this notation though. It might be problematic because I use psframeboxes? –  Vagelis Bebelis Jul 10 '12 at 15:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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