Debian Codegraph @

texmf-dist/doc/latex/tkz-euclide/TKZdoc-euclide-show.tex

raw
1 \section{The Show}
2
3 \subsection{Show the constructions of some lines \tkzcname{tkzShowLine}}
4
5 \begin{NewMacroBox}{tkzShowLine}{\oarg{local options}\parg{pt1,pt2} or \parg{pt1,pt2,pt3}}%
6 These constructions concern mediatrices, perpendicular or parallel lines passing through a given point and bisectors. The arguments are therefore lists of two or three points. Several options allow the adjustment of the constructions. The idea of this macro comes from \tkzimp{Yves Combe}.
7
8
9 \medskip
10 \begin{tabular}{lll}%
11 \toprule
12 options & default & definition \\
13 \midrule
14 \TOline{mediator}{mediator}{displays the constructions of a mediator}
15 \TOline{perpendicular}{mediator}{constructions for a perpendicular}
16 \TOline{orthogonal}{mediator}{idem}
17 \TOline{bisector}{mediator}{constructions for a bisector}
18 \TOline{K}{1}{circle within a triangle }
19 \TOline{length}{1}{in cm, length of a arc}
20 \TOline{ratio} {.5}{arc length ratio}
21 \TOline{gap}{2}{placing the point of construction}
22 \TOline{size}{1}{radius of an arc (see bisector)}
23 \bottomrule
24 \end{tabular}
25
26 \medskip
27 You have to add, of course, all the styles of \TIKZ\ for tracings\dots
28 \end{NewMacroBox}
29
30 \subsubsection{Example of \tkzcname{tkzShowLine} and \tkzname{parallel}}
31 \begin{tkzexample}[latex=7cm,small]
32 \begin{tikzpicture}
33 \tkzDefPoints{-1.5/-0.25/A,1/-0.75/B,-1.5/2/C}
34 \tkzDrawLine(A,B)
35 \tkzDefLine[parallel=through C](A,B) \tkzGetPoint{c}
36 \tkzShowLine[parallel=through C](A,B)
37 \tkzDrawLine(C,c) \tkzDrawPoints(A,B,C,c)
38 \end{tikzpicture}
39 \end{tkzexample}
40
41 \subsubsection{Example of \tkzcname{tkzShowLine} and \tkzname{perpendicular}}
42 \begin{tkzexample}[latex=6cm,small]
43 \begin{tikzpicture}
44 \tkzDefPoints{0/0/A, 3/2/B, 2/2/C}
45 \tkzDefLine[perpendicular=through C,K=-.5](A,B)
46 \tkzGetPoint{c}
47 \tkzShowLine[perpendicular=through C,K=-.5,gap=3](A,B)
48 \tkzDefPointBy[projection=onto A--B](c)
49 \tkzGetPoint{h}
50 \tkzMarkRightAngle[fill=lightgray](A,h,C)
51 \tkzDrawLines[add=.5 and .5](A,B C,c)
52 \tkzDrawPoints(A,B,C,h,c)
53 \end{tikzpicture}
54 \end{tkzexample}
55
56 \subsubsection{Example of \tkzcname{tkzShowLine} and \tkzname{bisector}}
57 \begin{tkzexample}[latex=7 cm,small]
58 \begin{tikzpicture}[scale=1.25]
59 \tkzDefPoints{0/0/A, 4/2/B, 1/4/C}
60 \tkzDrawPolygon(A,B,C)
61 \tkzSetUpCompass[color=brown,line width=.1 pt]
62 \tkzDefLine[bisector](B,A,C) \tkzGetPoint{a}
63 \tkzDefLine[bisector](C,B,A) \tkzGetPoint{b}
64 \tkzInterLL(A,a)(B,b) \tkzGetPoint{I}
65 \tkzDefPointBy[projection = onto A--B](I)
66 \tkzGetPoint{H}
67 \tkzShowLine[bisector,size=2,gap=3,blue](B,A,C)
68 \tkzShowLine[bisector,size=2,gap=3,blue](C,B,A)
69 \tkzDrawCircle[color=blue,%
70 line width=.2pt](I,H)
71 \tkzDrawSegments[color=red!50](I,tkzPointResult)
72 \tkzDrawLines[add=0 and -0.3,color=red!50](A,a B,b)
73 \end{tikzpicture}
74 \end{tkzexample}
75
76 \subsubsection{Example of \tkzcname{tkzShowLine} and \tkzname{mediator}}
77 \begin{tkzexample}[latex=7 cm,small]
78 \begin{tikzpicture}
79 \tkzDefPoint(2,2){A}
80 \tkzDefPoint(5,4){B}
81 \tkzDrawPoints(A,B)
82 \tkzShowLine[mediator,color=orange,length=1](A,B)
83 \tkzGetPoints{i}{j}
84 \tkzDrawLines[add=-0.1 and -0.1](i,j)
85 \tkzDrawLines(A,B)
86 \tkzLabelPoints[below =3pt](A,B)
87 \end{tikzpicture}
88 \end{tkzexample}
89
90 \subsection{Constructions of certain transformations \addbs{tkzShowTransformation}}
91 \begin{NewMacroBox}{tkzShowTransformation}{\oarg{local options}\parg{pt1,pt2} or \parg{pt1,pt2,pt3}}%
92 These constructions concern orthogonal symmetries, central symmetries, orthogonal projections and translations. Several options allow the adjustment of the constructions. The idea of this macro comes from \tkzimp{Yves Combe}.
93
94 \medskip
95 \begin{tabular}{lll}%
96 \toprule
97 options & default & definition \\
98 \midrule
99 \TOline{reflection= over pt1--pt2}{reflection}{constructions of orthogonal symmetry}
100 \TOline{symmetry=center pt}{reflection}{constructions of central symmetry}
101 \TOline{projection=onto pt1--pt2}{reflection}{constructions of a projection}
102 \TOline{translation=from pt1 to pt2}{reflection}{constructions of a translation}
103 \TOline{K}{1}{circle within a triangle }
104 \TOline{length}{1}{arc length}
105 \TOline{ratio} {.5}{arc length ratio}
106 \TOline{gap}{2}{placing the point of construction}
107 \TOline{size}{1}{radius of an arc (see bisector)}
108 \end{tabular}
109 \end{NewMacroBox}
110
111 \subsubsection{Example of the use of \tkzcname{tkzShowTransformation}}
112
113 \begin{tkzexample}[latex=6cm,small]
114 \begin{tikzpicture}[scale=.5]
115 \tkzDefPoint(0,0){O} \tkzDefPoint(2,-2){A}
116 \tkzDefPoint(70:4){B} \tkzDrawPoints(A,O,B)
117 \tkzLabelPoints(A,O,B)
118 \tkzDrawLine[add= 2 and 2](O,A)
119 \tkzDefPointBy[translation=from O to A](B)
120 \tkzGetPoint{C}
121 \tkzDrawPoint[color=orange](C) \tkzLabelPoints(C)
122 \tkzShowTransformation[translation=from O to A,%
123 length=2](B)
124 \tkzDrawSegments[->,color=orange](O,A B,C)
125 \tkzDefPointBy[reflection=over O--A](B) \tkzGetPoint{E}
126 \tkzDrawSegment[blue](B,E)
127 \tkzDrawPoint[color=blue](E)\tkzLabelPoints(E)
128 \tkzShowTransformation[reflection=over O--A,size=2](B)
129 \tkzDefPointBy[symmetry=center O](B) \tkzGetPoint{F}
130 \tkzDrawSegment[color=green](B,F)
131 \tkzDrawPoint[color=green](F)\tkzLabelPoints(F)
132 \tkzShowTransformation[symmetry=center O,%
133 length=2](B)
134 \tkzDefPointBy[projection=onto O--A](C)
135 \tkzGetPoint{H}
136 \tkzDrawSegments[color=magenta](C,H)
137 \tkzDrawPoint[color=magenta](H)\tkzLabelPoints(H)
138 \tkzShowTransformation[projection=onto O--A,%
139 color=red,size=3,gap=-2](C)
140 \end{tikzpicture}
141 \end{tkzexample}
142
143 \subsubsection{Another example of the use of \tkzcname{tkzShowTransformation}}
144
145 You'll find this figure again, but without the construction features.
146 \begin{tkzexample}[latex=7cm,small]
147 \begin{tikzpicture}[scale=.6]
148 \tkzDefPoints{0/0/A,8/0/B,3.5/10/I}
149 \tkzDefMidPoint(A,B) \tkzGetPoint{O}
150 \tkzDefPointBy[projection=onto A--B](I)
151 \tkzGetPoint{J}
152 \tkzInterLC(I,A)(O,A) \tkzGetPoints{M}{M'}
153 \tkzInterLC(I,B)(O,A) \tkzGetPoints{N}{N'}
154 \tkzDefMidPoint(A,B) \tkzGetPoint{M}
155 \tkzDrawSemiCircle(M,B)
156 \tkzDrawSegments(I,A I,B A,B B,M A,N)
157 \tkzMarkRightAngles(A,M,B A,N,B)
158 \tkzDrawSegment[style=dashed,color=blue](I,J)
159 \tkzShowTransformation[projection=onto A--B,
160 color=red,size=3,gap=-3](I)
161 \tkzDrawPoints[color=red](M,N)
162 \tkzDrawPoints[color=blue](O,A,B,I,M)
163 \tkzLabelPoints(O)
164 \tkzLabelPoints[above right](N,I)
165 \tkzLabelPoints[below left](M,A)
166 \end{tikzpicture}
167 \end{tkzexample}
168
169 \endinput