~tex-sx/tex-sx/development

« back to all changes in this revision

Viewing changes to knots_test.tex

  • Committer: Andrew Stacey
  • Date: 2011-11-17 12:54:53 UTC
  • Revision ID: stacey@math.ntnu.no-20111117125453-flluidziwyaq414e
Adapted calligraphy to match modifications in spath

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
\immediate\write18{tex spath.dtx}
2
2
\immediate\write18{tex knots.dtx}
 
3
\documentclass{article}
 
4
\usepackage{tikz}
 
5
\usepackage{knots}
 
6
\begin{document}
 
7
\begin{tikzpicture}
 
8
\node (A) at (0,4) [draw,minimum width=30pt,minimum height=10pt,thick] {};
 
9
\begin{knot}[
 
10
%  draft mode=crossings,
 
11
  background colour=red,
 
12
  clip width=5,
 
13
%  consider self intersections,
 
14
]
 
15
\strand [thick,knot/only when rendering/.style={dashed}] (0,0)
 
16
to [out=up, in=down] (-1,1)
 
17
to [out=up, in=down] (0,2)
 
18
to [out=up, in=down] (-1.2,4)
 
19
to [out=up, in=down, looseness=0.7] (0,5.5)
 
20
to [out=up, in=down] (-2,7);
 
21
\strand [thick] (-1,0)
 
22
to [out=up, in=down] (1,2)
 
23
to [out=up, in=down] (A.south);
 
24
\strand [thick] (1,0)
 
25
to [out=up, in=down] (-1,2)
 
26
to [out=up, in=down] (1.5,4)
 
27
to [out=up, in=right] (0,5.5)
 
28
to [out=left, in=up] (-2,4)
 
29
to [out=down, in=up] (-2,0);
 
30
\strand [thick] (A.150)
 
31
to [out=up, in=down] (0.7,5.5)
 
32
to [out=up, in=down] (0,7);
 
33
\strand [thick] (A.30)
 
34
to [out=up, in=down] (-1,6)
 
35
to [out=up, in=down] (2,7);
 
36
\flipcrossings{6,2,9,5,11}
 
37
%\redraw{3}{(0,5.5)}
 
38
\end{knot}
 
39
\end{tikzpicture}
 
40
\end{document}
3
41
%% \documentclass{article}
4
42
%% \usepackage{tikz}
5
43
%% \usepackage{knots}
171
209
 
172
210
\end{document}
173
211
%\documentclass[border=10]{standalone}
174
 
\documentclass{article}
175
 
\usepackage{tikz}
176
 
\usepackage{knots}
177
 
\begin{document}
178
 
\begin{tikzpicture}
179
 
\node (A) at (0,4) [draw,minimum width=30pt,minimum height=10pt,thick] {};
180
 
\begin{knot}[
181
 
%  draft mode=crossings,
182
 
  background colour=red,
183
 
  clip width=5,
184
 
%  consider self intersections,
185
 
]
186
 
\strand [thick,knot/only when rendering/.style={dashed}] (0,0)
187
 
to [out=up, in=down] (-1,1)
188
 
to [out=up, in=down] (0,2)
189
 
to [out=up, in=down] (-1.2,4)
190
 
to [out=up, in=down, looseness=0.7] (0,5.5)
191
 
to [out=up, in=down] (-2,7);
192
 
\strand [thick] (-1,0)
193
 
to [out=up, in=down] (1,2)
194
 
to [out=up, in=down] (A.south);
195
 
\strand [thick] (1,0)
196
 
to [out=up, in=down] (-1,2)
197
 
to [out=up, in=down] (1.5,4)
198
 
to [out=up, in=right] (0,5.5)
199
 
to [out=left, in=up] (-2,4)
200
 
to [out=down, in=up] (-2,0);
201
 
\strand [thick] (A.150)
202
 
to [out=up, in=down] (0.7,5.5)
203
 
to [out=up, in=down] (0,7);
204
 
\strand [thick] (A.30)
205
 
to [out=up, in=down] (-1,6)
206
 
to [out=up, in=down] (2,7);
207
 
\flipcrossings{6,2,9,5,11}
208
 
%\redraw{3}{(0,5.5)}
209
 
\end{knot}
210
 
\end{tikzpicture}
211
 
\end{document}
212
212
\begin{tikzpicture}
213
213
\begin{knot}[knot/draft mode]
214
214
\strand[red,ultra thick]  (0,0) .. controls +(1,0) and +(-1,0) .. ++(2,-1) .. controls +(1,0) and +(-1,0) .. ++(2,1) .. controls +(1,0) and +(-1,0) .. ++(2,-1) .. controls +(1,0) and +(-1,0) .. ++(2,1);