所以我有一个自相交循环,我希望交点看起来像- -。我已经使用了 knot 包,但它似乎不能像我希望的那样适用于我的图表,尽管它可以适用于更简单的图表:
\begin{tikzpicture}
\begin{knot}[
consider self intersections]
\strand (0,0) .. controls +(3,1) and +(-3,1) .. (1,0);
\end{knot}
\end{tikzpicture}
以下是我的结图的代码:
\documentclass[a4paper,11pt]{report}
\usepackage{tikz}
\usetikzlibrary{calc,fadings,decorations.pathreplacing}
\usetikzlibrary{decorations.pathreplacing,decorations.markings}
\usetikzlibrary{fit,calc,positioning,decorations.pathreplacing,matrix}
\usetikzlibrary{arrows}
\usetikzlibrary{knots}
\usetikzlibrary{intersections}
\begin{document}
\tikzset{->-/.style={decoration={
markings,
mark=at position #1 with {\arrow{>}}},postaction={decorate}}}
\begin{tikzpicture}
\draw[ultra thick] (5,3) circle (0.9);
\draw [fill] (5,0) circle (0.1);
\begin{knot}[consider self intersections]
\strand[rounded corners,->-=.163,->-=.435,->-=.795,thick](5,0)..controls +(50:7) and +(130:6)..(5,1)..controls +(50:7) and +(130:7.5)..(5,0.5)..controls +(50:9) and +(130:9.5)..(5,0);
\end{knot}
\end{tikzpicture}
\end{document}