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 that red edges become arrows, I use \draw[->] but the end of the drawn line is the same as the beginning, this is not an arrow!

This is my code:


\Tree [.\node(8){8}; 
                 \node(4){4}; ]
                \node(6){6}; ] 
             \node(12){12}; ]
\Tree [.\node(H){H}; 
                 \node(D){D}; ]
                \node(F){F}; ] 
             \node(O){O}; ]
\draw[->,thick,red](8)  to[out=315,in=225] node[below]{g} (H);
\draw[->,thick,red](12) to[out=315,in=225] node[below]{g} (O);
\draw[->,thick,red](5)  to[out=315,in=225] node[below]{g} (E);
\draw[->,thick,red](3)  to[out=315,in=225] node[below]{g} (C);

and this is the image produced: enter image description here

share|improve this question

closed as too localized by Joseph Wright Mar 3 '12 at 21:13

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

This \draw[thick,red](8) to[->,out=315,in=225] node[below]{g} (H); doesn't work. – tyranitar Feb 18 '12 at 15:53
With your code, I do get the arrows. – Marc van Dongen Feb 18 '12 at 15:54
Indeed, with your code, I also get the arrows. Maybe needs to be compiled a few times. I've deleted my previous comments since they are misleading. – percusse Feb 18 '12 at 15:56
No problem here with pgf 2.1 cvs and the last qtree (engine pdftex) – Alain Matthes Feb 18 '12 at 16:23
I use pdflatex by MiKTeX (Windows) – tyranitar Feb 18 '12 at 17:55