这tikz Knots 包手册有这个例子:
\usepackage{tikz}
\usetikzlibrary{knots}
\usepgfmodule{decorations}
\begin{document}
\begin{tikzpicture}
\node (A) at (0,4) [draw,minimum width=30pt, minimum height=10pt , thick ] {};
\begin{knot}[clip width=5, clip radius=8pt]
\strand [thick, only when rendering/.style={dashed}] (0,0)
to [out=up, in=down] (−1,1)
to [out=up, in=down] (0,2)
to [out=up, in=down] (−1.2,4)
to [out=up, in=down, looseness=0.7] (0,5.5)
to [out=up, in=down] (−2,7);
\strand [ thick ] (−1,0)
to [out=up, in=down] (1,2)
to [out=up, in=down] (A.south);
\strand [ thick, blue] (1,0)
to [out=up, in=down] (-1, 2)
to [out=up, in=down] (1.5, 4)
to [out=up, in=right] (0,5.5) to [out=left, in=up] (−2,4)
to [out=down, in=up] (−2,0);
\strand [ thick ] (A.150)
to [out=up, in=down] (0.7,5.5)
to [out=up, in=down] (0,7);
\strand [ thick ] (A.30)
to [out=up, in=down] (−1,6)
to [out=up, in=down] (2,7);
\flipcrossings {6,2,9,5,11}
\end{knot}
\end{tikzpicture}
\end{document}
但是,对其进行 latex 处理会产生此错误。我该如何修复它?
11:缺少插入的 \endcsname。
\protect。l.11
至 [out=up, in=down] (-1,1)