I need to draw an arrow midway in a line.
MWE:
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw(1,1) -- (1,17);
\draw(1,17)--(7,17)--(12,12)--(9,9);
\draw (12,12)--(1,1);
\coordinate (start) at (6,6);
\coordinate (reflection) at (1,11);
\coordinate (end) at (7,17);
\draw [red] (start)--(reflection)--(end);
\node (b) at (0.7,11) {b};
\node (c) at (7,17.2) {c};
\node (a) at (6.1,5.9) {a};
\end{tikzpicture}
\end{document}
I need an arrow both between node (a)
and (b)
and between (b)
and (c)
, and both arrows should be midway.
I tried something like
\draw [red] (start) edge [->] (reflection) (reflection) edge [->] (end)(end);
but in this way the arrows are at the end of the segment.