~tex-sx/tex-sx/development

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{knots}

\tikzset{
  basic strand/.style={
    draw=red,
    double=white,
    double distance=9pt,
  },
  crossing strand/.style={
    line width=13pt,
    only when rendering/.style={%
      draw=white,%
      line width=9pt,
      double=none,
    }
  }
}

\begin{document}

\def\x{-569} % xshift
\def\y{-341} %yshift

\begin{tikzpicture}[scale=0.8]

\draw[color=black!20!white] (0,0) grid[step=1] (20,12);
\draw[line width=3] (0,0) -- (20,0) -- (20,12) -- (0,12) -- (0,0)% Rahmen
(0,4)--(2,4)% Horizontal
(0,8)--(2,8)%
(2,6)--(4,6)%
(5,7)--(7,7)%
(5,5)--(7,5)%
(8,6)--(12,6)%
(9,9)--(11,9)%
(9,3)--(11,3)%
(13,7)--(15,7)%
(13,5)--(15,5)%
(16,6)--(18,6)%
(18,8)--(20,8)%
(18,4)--(20,4)%
(3,1)--(3,5)% Vertikal
(3,7)--(3,11)%
(6,2)--(6,4)%
(6,8)--(6,10)%
(10,0)--(10,2)%
(10,4)--(10,8)%
(10,10)--(10,12)%
(14,2)--(14,4)%
(14,8)--(14,10)%
(17,1)--(17,5)%
(17,7)--(17,11)%
;

\begin{knot}[consider self intersections=no splits,
        end tolerance=1pt,%
        line width=2pt ,%
        line join=round,%
        clip width=1,%
        ignore endpoint intersections=true,%
        background color=red,%
        every intersection/.style={
          crossing strand
        },
        only when rendering/.style={
          basic strand
        },
        ]

\strand (0.5,1) to [out=north, in=south] (2.5,4) to [out=north, in=south] (0.5,7) -- (0.5,7) -- (0.5,7.5) -- (1,7.5) to [out=east, in=west] (3,6.5) to [out=east, in=225] (4.5,7.5) to [out=45, in=south] (5.5,9) to [out=north, in=-45] (4.5,10.5) to [out=135,in=east] (3,11.5) to [out=west, in=45] (1.5,10.5) to [out=225,in=north] (0.5,9) -- (0.5,8.5) -- (1,8.5) to [out=east, in=south] (2.5,10) to [out=north, in=east](1,11.5) -- (0.5,11.5) -- (0.5,11) to [out=south, in=north] (2.5,8) to [out=south, in=north] (0.5,5) -- (0.5,4.5) -- (1,4.5) to [out=east, in=west] (3,5.5) to [out=east, in=135] (4.5,4.5) to [out=-45, in=north] (5.5,3) to [out=south, in=45] (4.5,1.5) to [out=225, in=east] (3,0.5) to [out=west, in=-45] (1.5,1.5) to [out=135, in=south] (0.5,3) -- (0.5,3.5) -- (1,3.5) to [out=east, in=north] (2.5,2) to [out=south, in=east] (1,0.5) -- (0.5,0.5) -- (0.5,1);

\strand[xscale=-1, xshift=\x] (0.5,1) to [out=north, in=south] (2.5,4) to [out=north, in=south] (0.5,7) -- (0.5,7) -- (0.5,7.5) -- (1,7.5) to [out=east, in=west] (3,6.5) to [out=east, in=225] (4.5,7.5) to [out=45, in=south] (5.5,9) to [out=north, in=-45] (4.5,10.5) to [out=135,in=east] (3,11.5) to [out=west, in=45] (1.5,10.5) to [out=225,in=north] (0.5,9) -- (0.5,8.5) -- (1,8.5) to [out=east, in=south] (2.5,10) to [out=north, in=east](1,11.5) -- (0.5,11.5) -- (0.5,11) to [out=south, in=north] (2.5,8) to [out=south, in=north] (0.5,5) -- (0.5,4.5) -- (1,4.5) to [out=east, in=west] (3,5.5) to [out=east, in=135] (4.5,4.5) to [out=-45, in=north] (5.5,3) to [out=south, in=45] (4.5,1.5) to [out=225, in=east] (3,0.5) to [out=west, in=-45] (1.5,1.5) to [out=135, in=south] (0.5,3) -- (0.5,3.5) -- (1,3.5) to [out=east, in=north] (2.5,2) to [out=south, in=east] (1,0.5) -- (0.5,0.5) -- (0.5,1);

\strand (10,8.5) to [out=west, in=45] (8.5,7.5) to (7.5,6.5) to [out=225, in=east] (6,5.5) to [out=west, in=-45] (4.5,6.5) to [out=135, in=south] (3.5,8) to [out=north, in=225] (4.5,9.5) to (5.5,10.5) to [out=45, in=west] (7,11.5) to [out=east, in=135] (8.5,10.5) to [out=-45, in=west] (10,9.5) to [out=east, in=225] (11.5,10.5) to[out=45, in=west] (13,11.5) to [out=east, in=135] (14.5,10.5) to (15.5,9.5) to [out=-45, in=north] (16.5,8) to [out=south, in=45] (15.5,6.5) to [out=225, in=east] (14,5.5) to [out=west, in=-45] (12.5,6.5) to (11.5,7.5) to [out=135, in=east] (10,8.5);

\strand[yscale=-1, yshift=\y] (10,8.5) to [out=west, in=45] (8.5,7.5) to (7.5,6.5) to [out=225, in=east] (6,5.5) to [out=west, in=-45] (4.5,6.5) to [out=135, in=south] (3.5,8) to [out=north, in=225] (4.5,9.5) to (5.5,10.5) to [out=45, in=west] (7,11.5) to [out=east, in=135] (8.5,10.5) to [out=-45, in=west] (10,9.5) to [out=east, in=225] (11.5,10.5) to[out=45, in=west] (13,11.5) to [out=east, in=135] (14.5,10.5) to (15.5,9.5) to [out=-45, in=north] (16.5,8) to [out=south, in=45] (15.5,6.5) to [out=225, in=east] (14,5.5) to [out=west, in=-45] (12.5,6.5) to (11.5,7.5) to [out=135, in=east] (10,8.5);

\strand (3.5,10) to [out=north, in=west] (5,11.5) to [out=east, in=135] (6.5,10.5) to (8.5,8.5) to [out=-45, in=north] (9.5,7) -- (9.5,6.5) -- (9,6.5) to [out=west, in=-45] (7.5,7.5) to [out=135, in=south] (6.5,9) to [out=north, in=225] (7.5,10.5) to [out=45, in=west] (9,11.5) -- (9.5,11.5) -- (9.5,11) to [out=south, in=45] (8.5,9.5) to (7.5,8.5) to [out=225, in=east] (6,7.5) to [out=west, in=-45] (4.5,8.5) to [out=135, in=south] (3.5,10);

\strand[xscale=-1, xshift=\x] (3.5,10) to [out=north, in=west] (5,11.5) to [out=east, in=135] (6.5,10.5) to (8.5,8.5) to [out=-45, in=north] (9.5,7) -- (9.5,6.5) -- (9,6.5) to [out=west, in=-45] (7.5,7.5) to [out=135, in=south] (6.5,9) to [out=north, in=225] (7.5,10.5) to [out=45, in=west] (9,11.5) -- (9.5,11.5) -- (9.5,11) to [out=south, in=45] (8.5,9.5) to (7.5,8.5) to [out=225, in=east] (6,7.5) to [out=west, in=-45] (4.5,8.5) to [out=135, in=south] (3.5,10);

\strand[yscale=-1, yshift=\y] (3.5,10) to [out=north, in=west] (5,11.5) to [out=east, in=135] (6.5,10.5) to (8.5,8.5) to [out=-45, in=north] (9.5,7) -- (9.5,6.5) -- (9,6.5) to [out=west, in=-45] (7.5,7.5) to [out=135, in=south] (6.5,9) to [out=north, in=225] (7.5,10.5) to [out=45, in=west] (9,11.5) -- (9.5,11.5) -- (9.5,11) to [out=south, in=45] (8.5,9.5) to (7.5,8.5) to [out=225, in=east] (6,7.5) to [out=west, in=-45] (4.5,8.5) to [out=135, in=south] (3.5,10);

\strand[xscale=-1, xshift=\x, yscale=-1, yshift=\y] (3.5,10) to [out=north, in=west] (5,11.5) to [out=east, in=135] (6.5,10.5) to (8.5,8.5) to [out=-45, in=north] (9.5,7) -- (9.5,6.5) -- (9,6.5) to [out=west, in=-45] (7.5,7.5) to [out=135, in=south] (6.5,9) to [out=north, in=225] (7.5,10.5) to [out=45, in=west] (9,11.5) -- (9.5,11.5) -- (9.5,11) to [out=south, in=45] (8.5,9.5) to (7.5,8.5) to [out=225, in=east] (6,7.5) to [out=west, in=-45] (4.5,8.5) to [out=135, in=south] (3.5,10);

\flipcrossings{2,3,6,8,10,12,14,16,18,21,22,24,26,28,30,32,34,36,38,39,40,42,44,48,50,51,55,57,59,60,61,63,65,67,70,72,74}

\end{knot}
\end{tikzpicture}
\end{document}