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
|
%%
%% The LaTeX Graphics Companion, 2ed (first printing May 2007)
%%
%% Example 2-3-15 on page 50.
%%
%% Copyright (C) 2007 Michel Goossens, Frank Mittelbach, Denis Roegel, Sebastian Rahtz, Herbert Vo\ss
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%%
%% See http://www.latex-project.org/lppl.txt for details.
%%
\documentclass{ttctexa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{111.83385pt}
\StartShownPreambleCommands
\usepackage{xcolor,pict2e,curve2e}
\StopShownPreambleCommands
\begin{document}
\setlength\unitlength{1cm}
\begin{picture}(2.5,5)(-2.5,-2.5)
\DividE 360pt by 12pt to\Twelfth
\DirFromAngle\Twelfth to\Dir
\CopyVect -2.5,0 to\Vzero
\MultVect\Vzero by\Dir to\Vone
\MultVect\Vone by\Dir to\Vtwo
\Arc(0.0,0.0)(\Vzero){30}
\Arc(0.0,0.0)(\Vone){30}
\VectorArc(0.0,0.0)(\Vtwo){-30}
\color{blue}\MultVect\Vzero by*\Dir to\Vmone
\MultVect\Vmone by*\Dir to\Vmtwo
\Arc(0.0,0.0)(\Vzero){-30}
\Arc(0.0,0.0)(\Vmone){-30}
\VectorARC(0.0,0.0)(\Vmtwo){30}
\color{green}\thinlines
\VECTOR(0,0)(\Vzero)
\VECTOR(0,0)(\Vone)\VECTOR(0,0)(\Vmone)
\VECTOR(0,0)(\Vtwo)\VECTOR(0,0)(\Vmtwo)
\end{picture}
\end{document}
|