summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tkz/tkz-euclide/examples/tkzEuclide-17.1.3.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/tkz/tkz-euclide/examples/tkzEuclide-17.1.3.tex')
-rw-r--r--macros/latex/contrib/tkz/tkz-euclide/examples/tkzEuclide-17.1.3.tex27
1 files changed, 27 insertions, 0 deletions
diff --git a/macros/latex/contrib/tkz/tkz-euclide/examples/tkzEuclide-17.1.3.tex b/macros/latex/contrib/tkz/tkz-euclide/examples/tkzEuclide-17.1.3.tex
new file mode 100644
index 0000000000..a767a6b163
--- /dev/null
+++ b/macros/latex/contrib/tkz/tkz-euclide/examples/tkzEuclide-17.1.3.tex
@@ -0,0 +1,27 @@
+\input{preamble-standalone.ltx}
+\begin{document}
+
+% Ex. No. 126 (Section 17.1.3 : Pythagorean Theorem and \tkzcname{tkzDefSquare} )
+
+\begin{tikzpicture}[scale=.5]
+\tkzInit
+\tkzDefPoint(0,0){C}
+\tkzDefPoint(4,0){A}
+\tkzDefPoint(0,3){B}
+\tkzDefSquare(B,A)\tkzGetPoints{E}{F}
+\tkzDefSquare(A,C)\tkzGetPoints{G}{H}
+\tkzDefSquare(C,B)\tkzGetPoints{I}{J}
+\tkzFillPolygon[fill = red!50 ](A,C,G,H)
+\tkzFillPolygon[fill = blue!50 ](C,B,I,J)
+\tkzFillPolygon[fill = purple!50](B,A,E,F)
+\tkzFillPolygon[fill = orange,opacity=.5](A,B,C)
+\tkzDrawPolygon[line width = 1pt](A,B,C)
+\tkzDrawPolygon[line width = 1pt](A,C,G,H)
+\tkzDrawPolygon[line width = 1pt](C,B,I,J)
+\tkzDrawPolygon[line width = 1pt](B,A,E,F)
+\tkzLabelSegment[](A,C){$a$}
+\tkzLabelSegment[](C,B){$b$}
+\tkzLabelSegment[swap](A,B){$c$}
+\end{tikzpicture}
+
+\end{document} \ No newline at end of file