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

In a previous question I enjoyed a beautifull graph How improve tikZ graphs arrows rendering?

How can I add label on arcs produced by:

\draw[arrow] (NodeName)--(OtherNodeName);
share|improve this question
Do you mean "edge" instead of "arc"? – Tom Bombadil Oct 4 '12 at 21:55
up vote 6 down vote accepted

You simply add a node before the semi colon:

enter image description here




\draw[->, ultra thick, blue] (0,0)--(1,2) node [pos=0.5, above, red, sloped] {label};
share|improve this answer

Your Answer


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.