knots 库据说有一个翻转交叉键,它通过修饰符或 \flipcrossings 宏接受列表。我首先尝试使用该键,但除了 3d 结之外,它似乎不起作用。接下来我尝试了宏,但不清楚它应该放在哪里。有人能解释如何在每个结上实现翻转交叉,而不仅仅是在最后一个结上吗?
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{knots}
\begin{document}
\begin{tikzpicture}
\begin{knot}[
%draft mode=crossings ,
clip width=3,
flip crossing/.list={1,2,3},
]
\strand [ultra thick, black] (0,0) circle (1.0cm);
\strand [ultra thick, black] (1.5,0) circle (1.0cm);
\strand [ultra thick, black] (3,0) circle (1.0cm);
\end{knot}
\end{tikzpicture}
\end{document}
由于这台计算机的 cookie 政策,我无法发表评论,所以请不要问我问题!
答案1
你的结有四个交叉点,分别从上到下和从左到右进行标记。根据你所说的正确和不正确,你似乎只想翻转第三个交叉点。
下面的代码展示了不翻转,然后按顺序翻转1,2,3,4的效果。
这是使用 MWE 生成的:
\documentclass[tikz, border=2mm]{standalone}
\usetikzlibrary{knots}
\begin{document}
\begin{tikzpicture}
\begin{knot}[
%draft mode=crossings ,
clip width=3,
flip crossing/.list={},
]
\strand [ultra thick, black] (0,0) circle (1.0cm);
\strand [ultra thick, black] (1.5,0) circle (1.0cm);
\strand [ultra thick, black] (3,0) circle (1.0cm);
\end{knot}
\node[fill=white] at (1.5,1.5) {No flips};
\end{tikzpicture}
\begin{tikzpicture}
\begin{knot}[
%draft mode=crossings ,
clip width=3,
flip crossing/.list={1},
]
\strand [ultra thick, black] (0,0) circle (1.0cm);
\strand [ultra thick, black] (1.5,0) circle (1.0cm);
\strand [ultra thick, black] (3,0) circle (1.0cm);
\end{knot}
\node[fill=white] at (1.5,1.5) {Flipping 1};
\end{tikzpicture}
\begin{tikzpicture}
\begin{knot}[
%draft mode=crossings ,
clip width=3,
flip crossing/.list={2},
]
\strand [ultra thick, black] (0,0) circle (1.0cm);
\strand [ultra thick, black] (1.5,0) circle (1.0cm);
\strand [ultra thick, black] (3,0) circle (1.0cm);
\end{knot}
\node[fill=white] at (1.5,1.5) {Flipping 2};
\end{tikzpicture}
\begin{tikzpicture}
\begin{knot}[
%draft mode=crossings ,
clip width=3,
flip crossing/.list={3},
]
\strand [ultra thick, black] (0,0) circle (1.0cm);
\strand [ultra thick, black] (1.5,0) circle (1.0cm);
\strand [ultra thick, black] (3,0) circle (1.0cm);
\end{knot}
\node[fill=white] at (1.5,1.5) {Flipping 3};
\end{tikzpicture}
\begin{tikzpicture}
\begin{knot}[
%draft mode=crossings ,
clip width=3,
flip crossing/.list={4},
]
\strand [ultra thick, black] (0,0) circle (1.0cm);
\strand [ultra thick, black] (1.5,0) circle (1.0cm);
\strand [ultra thick, black] (3,0) circle (1.0cm);
\end{knot}
\node[fill=white] at (1.5,1.5) {Flipping 4};
\end{tikzpicture}
\end{document}