## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ Arrow in middle of loop Topic is solved

Information and discussion about graphics, figures & tables in LaTeX documents.
psionman
Posts: 30
Joined: Thu Nov 10, 2011 3:33 pm

### Arrow in middle of loop

I am attempting to produce an arrow half way along a loop. I can produce an arrow half way along a line, but how can I get the arrow in the middle of the loop?

\documentclass{article}\usepackage{tikz}\usetikzlibrary{arrows,decorations.markings} \begin{document} \begin{tikzpicture}[scale=1]       \draw[fill=black](0,0) circle (0.5mm) coordinate(1);       \draw[fill=black](3,0) circle (0.5mm) coordinate(2);        \begin{scope}[thick,decoration={markings, mark=at position 0.5 with {\arrow{>}}}]	\draw[postaction={decorate}] (1) -- (2);      \tikzset{loop/.style={min distance=10mm,in=-45,out=45}}     \path [postaction={decorate}](2) edge [loop left] (2);     \end{scope}    \end{tikzpicture} \end{document}

Thanks

psionman
Posts: 30
Joined: Thu Nov 10, 2011 3:33 pm
As no one seems to able to help I've used a workaround using

\draw [postaction={decorate}] (1) .. controls (a) and (b) .. (1);

Thanks to all who read

Stefan Kottwitz
Site Admin
Posts: 9568
Joined: Mon Mar 10, 2008 9:44 pm
Thank you for posting your solution!
I was also wondering how to do it.

Stefan
LaTeX.org admin

Return to “Graphics, Figures & Tables”

### Who is online

Users browsing this forum: No registered users and 4 guests