~tex-sx/tex-sx/development

« back to all changes in this revision

Viewing changes to braids_test.tex

  • Committer: Andrew Stacey (Thargelion)
  • Date: 2011-10-18 18:18:43 UTC
  • Revision ID: stacey@math.ntnu.no-20111018181843-xoxrwfmpcz5q2gst
More tweaks on labels; added ability to configure crossing path

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
\begin{document}
7
7
\begin{tikzpicture}
8
 
\def\brint{0.5-0.2}
9
 
\pgfpathcurvebetweentime{0}{\brint}{\pgfpointxy{0}{0}}{\pgfpointxy{1}{0}}{\pgfpointxy{2}{0}}{\pgfpointxy{3}{3}}
10
 
\pgfmathsetmacro{\bht}{0.3333}
 
8
\begin{scope}[yshift=2cm]
 
9
\foreach \brtime in {0.1,0.2,...,1} {
 
10
\pgfpathcurvebetweentime{0}{\brtime}{\pgfpointxy{0}{\brtime}}{\pgfpointxy{0}{\brtime}}{\pgfpointxy{3}{\brtime}}{\pgfpointxy{3}{\brtime}}
 
11
}
 
12
\end{scope}
 
13
 
 
14
\pgfmathsetmacro{\bht}{0}
11
15
\draw (0,0) .. controls +(0,\bht) and +(0,-\bht) .. (1,1);
12
16
\draw (1,0) .. controls +(0,\bht) and +(0,-\bht) .. (0,1);
13
17
\begin{scope}[xshift=2cm]
26
30
  style strands={1}{red},
27
31
  style strands={2}{green},
28
32
  style strands={3}{blue},
29
 
  width=.5cm,
30
33
  height=.95cm,
31
 
  gap=0.17,
32
 
  strand label by origin=true,
 
34
  gap=0.1,
 
35
  control factor=0,
 
36
  nudge factor=0,
 
37
  strand label by origin=false,
33
38
  strand label/.style={circle,draw,fill=white,inner sep=0pt},
34
 
  yscale=1] (braid_1) a_2 \label[fill=blue!25]{2}{\(+\)} \label{1}{\(-\)} a_1 a_2^{-1};
 
39
  yscale=1] (braid_1) a_2 \label[fill=blue!25]{2}{\(+\)} \label{1}{\(-\)} a_1 a_2^{-1} \label[fill=red!50!blue]{1}{\(=\)} a_3;
35
40
%\node [at=(braid_1-1-s),circle,draw] {};
36
41
\end{tikzpicture}
37
42