summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzEuclide-01-3-1.tex
blob: a64287e178bb9c574796f02ae5d8a87680f1ba27 (plain)
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
\input{preamble-standalone.ltx}
\begin{document}

% Ex. No. 2 (Section  1.3.1 : Example Part I gold triangle)

  \begin{tikzpicture}
    \tkzDefPoint(0,0){C}
    \tkzDefPoint(4,0){D}
    \tkzDefSquare(C,D)
    \tkzGetPoints{e}{f}
    \tkzDefMidPoint(C,f)
    \tkzGetPoint{m}
    \tkzInterLC(C,f)(m,e)
    \tkzGetSecondPoint{n}
    \tkzInterCC[with nodes](C,C,n)(D,C,n)
    \tkzGetFirstPoint{B}
    \tkzInterLC(C,D)(D,B) \tkzGetSecondPoint{A}
    \tkzInterLC(B,A)(B,D) \tkzGetSecondPoint{E}
    \tkzInterLL(B,D)(C,E) \tkzGetPoint{F}
    \tkzDrawPoints(C,D,B)
    \tkzDrawPolygon(B,...,D)
    \tkzDrawPolygon(B,C,D)
    \tkzDrawSegments(D,A A,B C,E)
    \tkzDrawArc[delta=10](B,C)(E)
    \tkzDrawPoints(A,...,F)
    \tkzMarkRightAngle[fill=blue!20](B,F,C)
    \tkzFillAngles[fill=blue!10](C,B,D E,A,D)
    \tkzMarkAngles(C,B,D E,A,D)
    \tkzLabelAngles[pos=1.5](C,B,D E,A,D){$\alpha$}
    \tkzLabelPoints[below](A,C,D,E)
    \tkzLabelPoints[above right](B,F)
\end{tikzpicture}

\end{document}