Skip to main content

Questions tagged [tikz-knots]

{tikz-knots} is for questions relating to the use of the `knots` library for TikZ, which is a part of the `spath3` package.

Filter by
Sorted by
Tagged with
1 vote
0 answers
40 views

tikz: Error that appears only in a certain order of two pictures

I have a very strange behaviour in the following simple code. The purpose is to draw two knots by using tikz, with tikzlibrary knots. \documentclass{amsart} \usepackage{tikz} \usetikzlibrary{knots} \...
user126154's user avatar
2 votes
1 answer
68 views

TikZ knots issue: circular "paper-cutout"s at intersections when using double

I'm trying to draw a trinity/trefoil knot with accompanying linking circles with the knots package, but I'm encountering a "paper circular-cutout" issue at intersections as demonstrated in ...
cattywampus's user avatar
3 votes
1 answer
61 views

tikz-knots: unexpected(?) behaviour with a circle

Here's my knot: I started by drawing the red+blue strand, which went quite well with a Hobby curve. \usepackage{tikz} \usetikzlibrary{knots, hobby, shapes.geometric} \begin{document} \tikzset{ ...
DrM's user avatar
  • 153
1 vote
1 answer
98 views

two-coloured strand with the knots library in tikz

I'm trying to draw a single link diagram (like the one here: https://loopspace.mathforge.org/HowDidIDoThat/TeX/Knots/#section.5) using the knots library: \begin{tikzpicture} \begin{knot}[ flip ...
DrM's user avatar
  • 153
1 vote
1 answer
137 views

String crossing diagrams using tikz or braids

I was wondering if there is an easy way to create diagrams like the following: where a, b, c are colors and strings connect like colors. In the paper I am reading, they don't allow crossings, but I ...
Infimum's user avatar
  • 515
2 votes
2 answers
143 views

Vertically align tikzpicture inside angle brackets

I want to vertically align a TikZ image inside angled brackets. I am not able to do it by adding yshift arguments to the knot environment or to the \draw or \strand commands. \documentclass{article} \...
Apoorv Potnis's user avatar
-1 votes
1 answer
87 views

How can one draw the "input-output" forms in a braid?

How would one draw diagrams like these? I wasn't able to find any documentation regarding the closed loops, or cups and caps in the braids package. Reference: Knots and Physics, 4th ed. by Louis ...
Apoorv Potnis's user avatar
1 vote
1 answer
49 views

Crossings in knots are counted more than once

I'm new to the knots library for TikZ and I have problems drawing some simple knots. With the MWE below, the library claims there are 12 crossings although in reality there are only four. ...
Frunobulax's user avatar
  • 2,228
2 votes
1 answer
536 views

How to draw a figure 8 knot with arrows and labels

It is my first time to try to draw knot in TeX, and I find a a tutorial for drawing knot: https://loopspace.mathforge.org/HowDidIDoThat/TeX/NewKnots/ But I encountered some difficities in trying to ...
Y.Wayne's user avatar
  • 123
3 votes
1 answer
415 views

Reidemeister Moves I II and III

Im looking for a simple solution to draw the Reidemeister-Moves. I have difficulties to show the intersections. Is there a simple way to display the intersections? \documentclass{article} \usepackage{...
Hans's user avatar
  • 43
1 vote
2 answers
55 views

Tikz knots in tabular consider self intersections throws error: You can't use \unskip after \the. <argument> \unskip

I want to draw a Knot, using the tikzlibary knots, inside a tabular. When I specify consider self intersections inside the knot environment I get an error: You can't use `\unskip' after \the. <...
Phönix 64's user avatar
5 votes
1 answer
98 views

TikZ’s knots library does not find all intersections

When I tried to come up with an answer to this question, I observed a strange behaviour of TikZ’s knots library. Or maybe it is not strange at all and I just overlooked something ... Take this code: \...
Jasper Habicht's user avatar
8 votes
3 answers
916 views

How to draw this picture (draw arrows in middle of a loop generated by 'control', make break ) using tikz

I would like to draw this picture by [tikz]. The elliptic and circle are easy, and I use 'control' to draw the red loop. But I do not know how to draw the arrow in the middle of the loop and do not ...
user avatar
2 votes
1 answer
70 views

Error when using knots for a twist

The code \documentclass[tikz,border=2mm]{standalone} \usepackage{tikz} \usetikzlibrary{hobby, knots} \begin{document} \begin{tikzpicture}[rotate=90,scale=3]% remove 'scale=3' to get the error ...
314159265358979323's user avatar
1 vote
1 answer
143 views

Inconsistent behavior of the tikz knots package?

I am trying to draw a positive half-twist using knots package. I expected that every new strand lies on top of the previous ones, but that is not the case. In this the second (of the three) is on top: ...
Adam's user avatar
  • 791
5 votes
3 answers
220 views

Half-drawn crossings when using `double` with `knots`

I have something similar to the following code (apologies for the long example but this is fairly sensitive to precise numbers): \documentclass{article} \usepackage{tikz} \usetikzlibrary{ knots, ...
Chris Le Sueur's user avatar
1 vote
1 answer
280 views

How to make a Whitehead link in the tikzpicture

I made an attempt to make a Hopf link using my own code: \begin{document} \begin{tikzpicture} \begin{knot}[ clip width=3, flip crossing={2}, ] \strand [ultra thick, red ] (1.5,0) ...
wonderich's user avatar
  • 2,437
1 vote
1 answer
74 views

Adding background to a drawing with tikz knots package

I am unable to add a background to the pic on the left, matching that on the right. Here is what I have so far: \documentclass[11pt]{amsart} \usepackage{tikz} \usetikzlibrary{decorations.markings, ...
Adam's user avatar
  • 791
1 vote
1 answer
325 views

Adding an arrow to a knot diagram in tikz knots package

How can I add an arrow to a knot diagram drawn with with tikz knots package? When I add an arrow with "decorations" tikz library to an example in this SA question I get two arrows! \...
Adam's user avatar
  • 791
1 vote
2 answers
112 views

Cycle trough comma separated list in a loop-repeat environment

I'm trying to cycle trough a comma separated list in an loop-repeat environment. But all label names are printed at once and the cycle number is added. How can I define and link the list of variable ...
Nivek's user avatar
  • 125
0 votes
1 answer
73 views

Tikz-knots: Defining separate strands within foreach loops

I'm looking for a solution concerning a foreach-loop using the knots package. I figured out that defining a foreach loop and using strands inside doesn't give any output unless I'm using the draw ...
Nivek's user avatar
  • 125
2 votes
1 answer
541 views

Crossings in tikz knots package

How can I create a crossing in the picture below? I tried to follow examples in the manual for tikz Knots package. \documentclass[11pt]{amsart} \usepackage{tikz} \usetikzlibrary{knots} \begin{...
Adam's user avatar
  • 791
1 vote
0 answers
162 views

Drawing with tikz knots package

The manual for tikz Knots package has this example: \usepackage{tikz} \usetikzlibrary{knots} \usepgfmodule{decorations} \begin{document} \begin{tikzpicture} \node (A) at (0,4) [draw,minimum width=...
Adam's user avatar
  • 791
2 votes
2 answers
209 views

Dimension too large/Arithmetic overflow with three (very simple) strands

I'm trying to draw a very simple braid diagram, and the below code "half successfully" builds a PDF with the desired output (but only just before the compilation stops from the below error), ...
Tim's user avatar
  • 389
4 votes
2 answers
121 views

Knot gap disappears in a very small TikZ picture with knots library

I am trying to imitate a fancy break, but using three interlocked circles. Unfortunately, the knot gap disappears, whether I scale the TikZ picture down, or draw it of an already small size. Is it ...
user221143's user avatar
4 votes
1 answer
153 views

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 ...
tikzknotter's user avatar
1 vote
1 answer
82 views

How can I label XY pic diagrams, to cite in other parts of my LaTeX file?

I am writing up a project on knot theory, using overleaf, and decided to use XY Pic instead of Tikz as it feels more intuitive. Is there a way to either attach a label my diagram (to recall/...
Max Procter's user avatar
6 votes
1 answer
160 views

Unexpected behavior of arrow decorations on knots: Multiple arrows and gaps appear

I'm using the knots tikzlibrary to draw some knots, and wanted to orient my knots, i.e. add an arrow. I use a decoration style which I've called "arrowat", which inserts an arrow at the desired spot (...
Danu's user avatar
  • 968
0 votes
0 answers
55 views

Scaling knot diagram is losing ability to detect crossings

My goal is to be able to render knot diagrams in tek and the be able to scale them so that I can place them in environments such as equations. However, when I begin to scale the diagrams so that they ...
Walt's user avatar
  • 141
1 vote
1 answer
82 views

Smoothing a curve drawn in the knots package

I am trying to teach myself how to use the knots package for latex to render images for a paper I am writing. Unfortunately nobody else in my department has any experience with this package. I think ...
Walt's user avatar
  • 141
2 votes
2 answers
127 views

Tikz: Using self intersection of knots library in an align environment throws error

Correct me if it's bad style but I used align to horizontally order multiple tikzpicture's and discovered the following. Take the standard example for self intersections from the manual for the knots ...
Tim's user avatar
  • 95
5 votes
3 answers
303 views

Tikz : self intersection not recognized in knots library of spath3

I have troubles with self intersections in the knots library. Consider the following: \documentclass[tikz,border=1pt]{standalone} \usetikzlibrary{calc,knots} %set default length and ...
Tim's user avatar
  • 95
5 votes
1 answer
662 views

Change Path Color at Specified Points (to Tricolor Trefoil Knot)

I am currently teaching myself Knot Theory and am looking to draw related diagrams using TikZ. Using the knots library and a foreach loop, I have written a pretty solid code for drawing a monocolor ...
Shady Puck's user avatar
4 votes
1 answer
258 views

knots : The \strand command seems to have strange effect to the \clip command

I'm drawing a knot diagram and I use the \clip command to help shading the regions. However, it seems that the \strand command of the knot environment have some strange effect to \clip. For instance, ...
Jinwen's user avatar
  • 8,618
2 votes
0 answers
77 views

Drawing an angle that should not cross over an intermediate line

I want to draw an angle arc using the angles tikz library. This arc has to not cross over an intermediate line between its limits. I try to use the knots package but it doesn't seem to work well with ...
Hafid Boukhoulda's user avatar
5 votes
3 answers
229 views

dash path between two intersections with other path

I wish to dash the red path when it is between the intersections with the blue path. How can I do this using paths names? \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{intersections} \...
Victor Flux Radkow's user avatar
1 vote
1 answer
812 views

How to draw toroidal grid diagrams in TikZ [duplicate]

I am trying to turn a planar grid diagram into a 3D toroidal graph by identifying the top edge with the bottom and the left with the right, i.e: So the grid below on the left would be transformed ...
JpW's user avatar
  • 119
3 votes
2 answers
450 views

TikZ Knots package: crossing changed after scaling

I have realised that my knot diagram changes one of its crossings when it's scaled differently. The crossings should be correct in the second diagram generated by the code below. I don't know how this ...
JpW's user avatar
  • 119
3 votes
1 answer
172 views

Flip crossing doesn't work in TikZ with two strands

I am struggling to change the bottom crossing of this picture. This is for my project and the deadline is in an hour but I've just found out this mistake! Please can someone help to flip that crossing ...
JpW's user avatar
  • 119
4 votes
1 answer
958 views

How do I draw the orientation of a knot in TikZ?

So I am trying to add an arrow to a path of the figure-8 knot to indicate its orientation, but I can't seem to get it visible on the diagram. I'm a beginner in TikZ and any help would be appreciated. ...
JpW's user avatar
  • 119
2 votes
1 answer
308 views

Make a Tikz figure (a hypersurface figure made by Inkscape)

I am interested in drawing this figure through tikz: I made this figure myself though Inkscape. What is the best strategy to make this figure through tikz? Ans: The best way, for us, seems to be ...
wonderich's user avatar
  • 2,437
0 votes
1 answer
92 views

Complicated curves intertwined in the link figures (II) [closed]

This is a more advanced question following an earlier one. I am struggled to draw these types of figures: There is a package called the knot library. So I am going to try the knot library out. But ...
annie marie cœur's user avatar
2 votes
0 answers
134 views

Complicated curves intertwined in the link figures (I): Unsolved Christmas tree decoration [closed]

I am struggled to draw these types of figures: I guessed there is a package called the knot library (just learned this thing exist 2 mins ago): So I am going to try the knot library out. But in case ...
annie marie cœur's user avatar
4 votes
1 answer
631 views

Reproduce bracket polynomials

I want to reproduce the following bracket polynomials, but I'm quite clueless on how to do so. From what I've searched, people often use tikz to reproduce these knots. But how to draw knot using tikz? ...
MS1902's user avatar
  • 249
1 vote
1 answer
272 views

Force individual pin angle in knots package TikZ

I am trying to draw a knot using the knots package, but the crossing labels are straight up, which looks bad at most crossings. This is my code: \begin{tikzpicture} \begin{knot}[draft mode=crossings, ...
user avatar
3 votes
1 answer
231 views

Flipping behavior at triple point crossings in knots package for tikz

I am using Andrew Stacey's fantastic knots package, and I am having trouble getting triple point crossings displayed in the order I intend. Consider the following: \documentclass{amsart} \usepackage{...
Chris's user avatar
  • 1,213
1 vote
1 answer
213 views

Framed Knots -- Blackboard framing -- Ribbons

I'm using Tikz to draw knots. I am wondering whether there is some way of drawing framed knots i.e. when you think of your knot as being made out of ribbon so that a Type I Reidermeister move induces ...
Spiru's user avatar
  • 13
7 votes
2 answers
508 views

Shade a region in a knot diagram

Using the knots package, I have drawn a (3,7)-torus knot. I would like for the inner region of the diagram to be shaded gray. A minimal working example for the code follows. \documentclass{article} \...
Adam Lowrance's user avatar
1 vote
1 answer
410 views

How can I construct a planar tangle, shaed or un-shaded, in LaTeX or Mathematica using the tikz package?

I have tried searching for tikz code regarding planar tangles and planar algebras online, but the code does not copy over accurately. I noticed that in these online sources, the package "mathfig" was ...
Alexander's user avatar
  • 141
6 votes
4 answers
615 views

Drawing knots without overdrawing a grid

I would like to draw a knot with self intersections. This can be done with the TikZ library knots. However, in my situation I have a grid in the background which should not be overdrawn from the white ...
HeinrichD's user avatar
  • 182