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 need to draw an arrow between 2 nodes but not from the center of the node. When I use a position modificator a new arrow end appears at the starting point.

This is a minimal example:

\begin{tikzpicture}
  \matrix [column sep=1cm,row sep=3cm]{
    \node [] (node1) {Node 1}; \\
    \node [] (node2) {Node 2}; \\
  };

  \begin{scope}[every path/.style={draw, thick,-latex',shorten >= 2pt}]
    \path[bend right] (node1) edge (node2);
    \path[bend right] (node1.south) edge (node2);
    \path[bend right] (node1.south east) edge (node2);
  \end{scope}
\end{tikzpicture}

And this is what I get:

Example

Any advice, please?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Set every edge/.style instead of the every path/.style:

\begin{scope}[every edge/.style={draw, thick,-latex',shorten >= 2pt}]

With this modification to your code I get the desired result:

enter image description here

share|improve this answer
    
Thanks Stefan.. –  Fernando Nadal Nov 11 '11 at 17:55

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.