# How does flip crossings key work?

knots library supposedly has a flip crossing key which accepts a list through a modifier, or a flipcrossings macro. I first tried with the key, but it does not seem to work except for the 3d knot only. Next I tried the macro, but it was not clear where it must go. Can anyone explain how to achieve flipped crossings at every knot, not just at the last one?

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}


I cant’t comment due to the cookie policy on this computer, so please do not ask me questions!

TeX - LaTeX Asked on November 14, 2021

Your knot has four crossings, labelled top to bottom and then left to right. Based on what you call correct and incorrect it looks like you only want to flip the third crossing.

The following code shows the effect of no flips and then flipping 1,2,3,4 in order.

This was produced using the 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}


Answered by user30471 on November 14, 2021

## Related Questions

### Is there any tool/framework to convert R code into Latex?

0  Asked on March 7, 2021

### Commutative diagram generating app

5  Asked on March 7, 2021 by eridesent

### Odd and even itemize symbols

2  Asked on March 7, 2021 by lukest_dang

### How to plot the commutative triangle diagram in Tikz?

3  Asked on March 7, 2021

### Align a molecule with notation including (+) in a scheme reaction in chemfig

1  Asked on March 7, 2021 by shredder90

### ps2pdf does not preserve dimensions

0  Asked on March 7, 2021

### Conversion problem using standalone and imagemagick

3  Asked on March 7, 2021 by mazzy

### How can I reference the current (sub)section number?

4  Asked on March 7, 2021 by jvriesem

### Problem with biblatex-chicago and biber

1  Asked on March 7, 2021

### hyphenrules no longer defined in polyglossia

3  Asked on March 7, 2021

3  Asked on March 7, 2021 by pizzaguru

### TeXstudio: how to automate LaTeX biber sequence of compilation

3  Asked on March 7, 2021

2  Asked on March 7, 2021

### How can I ignore empty lines before, after, and inside an equation environment?

1  Asked on March 7, 2021 by danijar

### Where can I find the unitartu-theme package?

1  Asked on March 7, 2021

### How to solve Failed to run “xelatex .notebook.tex -quiet” command: notebook.tex:373:?

0  Asked on March 7, 2021 by yassine

### Fold code in overleaf

1  Asked on March 7, 2021

### Latex does not work in Python’s matplotlib

0  Asked on March 6, 2021 by lioncereals

### usepackage{opcit}: language and commenting

1  Asked on March 6, 2021 by william-lund

### How do you effectively debug overfull hbox warnings?

1  Asked on March 6, 2021 by grrrbytes