diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzEuclide-18-4-1.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzEuclide-18-4-1.tex | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzEuclide-18-4-1.tex b/Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzEuclide-18-4-1.tex new file mode 100644 index 00000000000..89419953986 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tkz-euclide/examples/tkzEuclide-18-4-1.tex @@ -0,0 +1,24 @@ +\input{preamble-standalone.ltx} +\begin{document} + +% Ex. No. 112 (Section 18.4.1 : The idea is to inscribe two squares in a semi-circle.) + +\begin{tikzpicture}[scale=.75] + \tkzInit[ymax=8,xmax=8] + \tkzClip[space=.25] \tkzDefPoint(0,0){A} + \tkzDefPoint(8,0){B} \tkzDefPoint(4,0){I} + \tkzDefSquare(A,B) \tkzGetPoints{C}{D} + \tkzInterLC(I,C)(I,B) \tkzGetPoints{E'}{E} + \tkzInterLC(I,D)(I,B) \tkzGetPoints{F'}{F} + \tkzDefPointsBy[projection=onto A--B](E,F){H,G} + \tkzDefPointsBy[symmetry = center H](I){J} + \tkzDefSquare(H,J) \tkzGetPoints{K}{L} + \tkzDrawSector[fill=yellow](I,B)(A) + \tkzFillPolygon[color=red!40](H,E,F,G) + \tkzFillPolygon[color=blue!40](H,J,K,L) + \tkzDrawPolySeg[color=red](H,E,F,G) + \tkzDrawPolySeg[color=red](J,K,L) + \tkzDrawPoints(E,G,H,F,J,K,L) +\end{tikzpicture} + +\end{document} |