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.

The knots library for TikZ is written by Andrew Stacey. On CTAN it is part of the spath3 package for manipulating soft paths. Use this tag in combination with for questions about using this library to draw knot diagrams with TikZ or if you are facing problems with installation.

59 questions
4
votes
1 answer

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. This is my code:…
JpW
  • 119
3
votes
1 answer

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{ knot diagram/every strand/.append style={ ultra…
MairAW
  • 128
  • 7
3
votes
2 answers

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 has happened. I have tried using draft…
JpW
  • 119
2
votes
1 answer

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 \begin{knot}[flip crossing=1,consider self…
1
vote
1 answer

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 that I have figured out the basic commands and I…
Walt
  • 141
1
vote
1 answer

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, clip width=10pt,consider self intersections,end…
user166643
0
votes
1 answer

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 option. But no knots are recognised since the red…
Nivek
  • 115
0
votes
0 answers

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 are sufficiently small to not look awkward in an…
Walt
  • 141