# How do I make a path with a custom head in tikz?

I want to make a half circle border, as an arrow head in a tikz diagram.

Does anyone have an idea how to make this style?

-
 Something like this is already available in the arrows tikz library. Check out section 23.4 in the current pgf manual: ctan.org/tex-archive/graphics/pgf/base/doc/generic/pgf/… – Mark S. Everitt Mar 3 '12 at 10:33 Have a look at this question: tex.stackexchange.com/questions/42611/… – Marco Daniel Mar 3 '12 at 10:42

Using the arrows library and a dash of PGF code, you can do the following (adapted from an example in the manual, see section 74.2).

\documentclass[a4paper]{article}
\usepackage{tikz}
\usetikzlibrary{arrows}

\begin{document}

% Code for the new arrow tip, called halfcirc.
\pgfarrowsdeclare{halfcirc}{halfcirc}
{
\arrowsize=0.2pt
\pgfarrowsleftextend{-4\arrowsize-.5\pgflinewidth}
\pgfarrowsrightextend{.5\pgflinewidth}
}
{
\arrowsize=0.2pt
\pgfsetdash{}{0pt} % do not dash
\pgfsetroundjoin % fix join
\pgfsetroundcap % fix cap
\pgfpathmoveto{\pgfpoint{-4\arrowsize}{4\arrowsize}}
\pgfpatharc{90}{-90}{4\arrowsize}
\pgfusepathqstroke
}

% Declare a reversed version called revhalfcirc.
\pgfarrowsdeclarereversed{revhalfcirc}{revhalfcirc}{halfcirc}{halfcirc}

% Demonstration of the arrow tip.
\begin{tikzpicture}
\draw[help lines] (-3,-2) grid (3,2);
\draw[line width=10pt, revhalfcirc-halfcirc] (-2,0) -- (0,0);
\end{tikzpicture}

\end{document}


-
 If you want a semicircles instead (filled or unfilled) this is also pretty straight forward. I can easily adjust the answer to suit you if you want something slightly different from the above. – Mark S. Everitt Mar 3 '12 at 11:53