So I am trying to add an arrow to a path of the figure-8 knot to indicate its orientation, but I can't seem to get it visible on the diagram. I'm a beginner in TikZ and any help would be appreciated. This is my code:
\documentclass{article}
\usepackage{graphicx,amssymb,amstext,amsmath}
\usepackage{tikz}
\usepackage{braids}
\usepackage{wrapfig}
\usepackage{blindtext}
\usetikzlibrary{decorations.pathreplacing,decorations.markings,hobby,knots,celtic,shapes.geometric,calc}
\tikzset{
knot diagram/every strand/.append style={
line width=3pt,violet
},
show curve controls/.style={
postaction=decorate,
decoration={show path construction,
curveto code={
\draw [blue, dashed]
(\tikzinputsegmentfirst) -- (\tikzinputsegmentsupporta)
node [at end, draw, solid, red, inner sep=2pt]{};
\draw [blue, dashed]
(\tikzinputsegmentsupportb) -- (\tikzinputsegmentlast)
node [at start, draw, solid, red, inner sep=2pt]{}
node [at end, fill, blue, ellipse, inner sep=2pt]{}
;
}
}
},
show curve endpoints/.style={
postaction=decorate,
decoration={show path construction,
curveto code={
\node [fill, blue, ellipse, inner sep=2pt] at (\tikzinputsegmentlast) {}
;
}
}
}
}
\begin{center}
\begin{tikzpicture}[use Hobby shortcut, postaction={decorate}, decoration={
markings,
mark=at position 0.2 with {\arrow[line width=3pt]{<}}}]
\begin{knot}[
consider self intersections=true,
% draft mode=crossings,
ignore endpoint intersections=false,
flip crossing=3,
rotate=180,
]
\strand ([closed]0,0) .. (1.5,1) .. (.5,2) .. (-.5,1) .. (.5,0) .. (0,-.5) .. (-.5,0) .. (.5,1) .. (-.5,2) .. (-1.5,1) .. (0,0);
\end{knot}
\path (0,-.7);
\end{tikzpicture}

