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 the MWE below:




\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto, node distance=3cm ,semithick]

    \node [draw,  rounded corners=2pt,rectangle, initial, initial text=\textbf{Query},initial where=above](timing) {Timing};
    \node [draw,  rounded corners=2pt,rectangle](indep)[right of=timing] {Independent};
    \node [draw,  rounded corners=2pt,rectangle](caching)[right of=indep] {Caching};
    \node [draw,  rounded corners=2pt,rectangle](pc)[right of=caching] {PC Logging};

    \node [draw, node distance=3cm, rounded corners=2pt,rectangle](stp)[right of= pc] {STP};

    \path (timing) edge[]   node{} (indep);

    \path (indep) edge[]   node{} (caching);

    \path (caching) edge[]   node{} (pc);

    \path (pc) edge[]   node{} (stp);



How can I put a vertical arrow, that is pointing upwards, on the arrow (preferably at its mid point) between the PCLogging and STP boxes ?

share|improve this question
up vote 5 down vote accepted


\draw[->] ($(stp.west)!0.5!(pc.east)$) -- ++(0,1cm) node[above] {Text}; 

is sufficient to find the midpoint and adding text at the end.

enter image description here

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.