But with a small change, removing the quotes library and changing the
"..."
syntax to label={...}
, this should now run with older TikZ too:Code: Select all
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning,decorations.markings}
\begin{document}
\begin{tikzpicture}[
dot/.style = {circle, draw, fill, inner sep=2pt},
decoration = {
markings,
mark=at position 0.5 with {\pgftransformscale{2}\arrow{stealth}}},
]
\node (gamma-a) [dot,label={$\gamma(a)$}] {};
\node (gamma-b) [above right = 1cm and 4 cm of gamma-a,
dot,label={$\gamma(b)$}] {};
\node (below) [below right = 0.5cm and 1 cm of gamma-a] {};
\node (above) [above left = 0.5cm and 1 cm of gamma-b] {};
\draw [postaction={decorate}] (gamma-a)
to [out=0, in=180] (below)
to [out=0, in=180] (above)
to [out=0, in=180] (gamma-b);
\node (gamma-t) [below left = 0.1cm and 2.2 cm of gamma-b]
{$\gamma(t)$};
\end{tikzpicture}
\end{document}