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?
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?
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
\advance\arrowsize by .5\pgflinewidth
\pgfarrowsleftextend{-4\arrowsize-.5\pgflinewidth}
\pgfarrowsrightextend{.5\pgflinewidth}
}
{
\arrowsize=0.2pt
\advance\arrowsize by .5\pgflinewidth
\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}

arrows.meta library, the above arrowheads are called Arc Barb and Arc Barb[reversed].
– Neil G
Feb 07 '14 at 07:54
arrowstikz library. Check out section 23.4 in the current pgf manual: http://www.ctan.org/tex-archive/graphics/pgf/base/doc/generic/pgf/pgfmanual.pdf – qubyte Mar 03 '12 at 10:33