summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-compass.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-compass.tex')
-rw-r--r--macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-compass.tex113
1 files changed, 113 insertions, 0 deletions
diff --git a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-compass.tex b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-compass.tex
new file mode 100644
index 0000000000..0521c58722
--- /dev/null
+++ b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-compass.tex
@@ -0,0 +1,113 @@
+\section{Utilisation du compas}
+
+\subsection{Macro principale \tkzcname{tkzCompass}}
+\begin{NewMacroBox}{tkzCompass}{\oarg{local options}\parg{A,B}}
+Cette macro permet de laisser une trace de compas autrement dit un arc en un point désigné. Il faut indiquer le centre. Plusieurs options spécifiques vont modifier l'aspect de l'arc ainsi que les options de TikZ comme le style, la couleur, l'épaisseur du trait etc.
+
+\medskip
+\begin{tabular}{lll}
+\toprule
+options & default & definition \\
+\midrule
+\TOline{delta} {0}{Modifie l'angle de l'arc en l'augmentant symétriquement}
+\TOline{length}{1}{Modifie la longueur}
+\bottomrule
+\end{tabular}
+\end{NewMacroBox}
+
+\subsubsection{Option \tkzname{length}}
+\begin{tkzexample}[latex=7cm,small]
+\begin{tikzpicture}
+ \tkzDefPoint(1,1){A}
+ \tkzDefPoint(6,1){B}
+ \tkzInterCC[R](A,4cm)(B,3cm)
+ \tkzGetPoints{C}{D}
+ \tkzDrawPoint(C)
+ \tkzCompass[color=red,length=1.5](A,C)
+ \tkzCompass[color=red](B,C)
+ \tkzDrawSegments(A,B A,C B,C)
+\end{tikzpicture}
+\end{tkzexample}
+
+\subsubsection{Option \tkzname{delta}}
+\begin{tkzexample}[latex=7cm,small]
+\begin{tikzpicture}
+ \tkzDefPoint(0,0){A}
+ \tkzDefPoint(5,0){B}
+ \tkzInterCC[R](A,4cm)(B,3cm)
+ \tkzGetPoints{C}{D}
+ \tkzDrawPoints(A,B,C)
+ \tkzCompass[color=red,delta=20](A,C)
+ \tkzCompass[color=red,delta=20](B,C)
+ \tkzDrawPolygon(A,B,C)
+ \tkzMarkAngle(A,C,B)
+\end{tikzpicture}
+\end{tkzexample}
+
+\subsection{Multiples constructions \tkzcname{tkzCompasss}}
+\begin{NewMacroBox}{tkzCompasss}{\oarg{local options}\parg{pt1,pt2 pt3,pt4,...}}
+\tkzHandBomb\ Attention les arguments sont des listes de deux points. Cela permet d'économiser quelques lignes de codes.
+\begin{tabular}{lll}
+\toprule
+options & default & definition \\
+\midrule
+\TOline{delta} {0}{Modifie l'angle de l'arc en l'augmentant symétriquement}
+\TOline{length}{1}{Modifie la longueur}
+\end{tabular}
+\end{NewMacroBox}
+
+\begin{tkzexample}[latex=7cm,small]
+\begin{tikzpicture}[scale=.75]
+ \tkzDefPoint(2,2){A} \tkzDefPoint(5,-2){B}
+ \tkzDefPoint(3,4){C} \tkzDrawPoints(A,B)
+ \tkzDrawPoint[color=red,shape=cross out](C)
+ \tkzCompasss[color=orange](A,B A,C B,C C,B)
+ \tkzShowLine[mediator,color=red,
+ dashed,length = 2](A,B)
+ \tkzShowLine[parallel = through C,
+ color=blue,length=2](A,B)
+ \tkzDefLine[mediator](A,B) \tkzGetPoints{i}{j}
+ \tkzDefLine[parallel=through C](A,B) \tkzGetPoint{D}
+ \tkzDrawLines[add=.6 and .6](C,D A,C B,D)
+ \tkzDrawLines(i,j) \tkzDrawPoints(A,B,C,i,j,D)
+ \tkzLabelPoints(A,B,C,i,j,D)
+\end{tikzpicture}
+\end{tkzexample}
+
+
+\subsection{Macro de configuration \tkzcname{tkzSetUpCompass}}
+
+\begin{NewMacroBox}{tkzSetUpCompass}{\oarg{local options}}
+\begin{tabular}{lll}
+options & default & definition \\
+\midrule
+\TOline{line width} {0.4pt}{épaisseur du trait}
+\TOline{color} {black!50}{couleur du trait}
+\TOline{style} {solid}{style du trait solid, dashed,dotted,...}
+\end{tabular}
+\end{NewMacroBox}
+
+\begin{tkzltxexample}[]
+ \tkzSetUpCompass[color=blue,line width=.3 pt]
+\end{tkzltxexample}
+
+\begin{tkzexample}[latex=7cm,small]
+\begin{tikzpicture}[scale=.75,
+ showbi/.style={bisector,size=2,gap=3}]
+ \tkzSetUpCompass[color=blue,line width=.3 pt]
+ \tkzDefPoints{0/1/A, 8/3/B, 3/6/C}
+ \tkzDrawPolygon(A,B,C)
+ \tkzDefLine[bisector](B,A,C) \tkzGetPoint{a}
+ \tkzDefLine[bisector](C,B,A) \tkzGetPoint{b}
+ \tkzShowLine[showbi](B,A,C)
+ \tkzShowLine[showbi](C,B,A)
+ \tkzInterLL(A,a)(B,b) \tkzGetPoint{I}
+ \tkzDefPointBy[projection= onto A--B](I)
+ \tkzGetPoint{H}
+ \tkzDrawCircle[radius,color=gray](I,H)
+ \tkzDrawSegments[color=gray!50](I,H)
+ \tkzDrawLines[add=0 and -.2,color=blue!50 ](A,a B,b)
+ \tkzShowBB
+\end{tikzpicture}
+\end{tkzexample}
+\endinput \ No newline at end of file