TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 2 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.