summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tkz/tkz-base/examples/tkzBase-8.10.1.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/tkz/tkz-base/examples/tkzBase-8.10.1.tex')
-rw-r--r--macros/latex/contrib/tkz/tkz-base/examples/tkzBase-8.10.1.tex23
1 files changed, 23 insertions, 0 deletions
diff --git a/macros/latex/contrib/tkz/tkz-base/examples/tkzBase-8.10.1.tex b/macros/latex/contrib/tkz/tkz-base/examples/tkzBase-8.10.1.tex
new file mode 100644
index 0000000000..50b72e5ba0
--- /dev/null
+++ b/macros/latex/contrib/tkz/tkz-base/examples/tkzBase-8.10.1.tex
@@ -0,0 +1,23 @@
+\input{preamble-standalone.ltx}
+\begin{document}
+
+% Ex. No. 72 (Section 8.10.1 : Example with \tkzcname{tkzAutoLabelPoints})
+
+\begin{tikzpicture}[scale=1.25]
+ \tkzDefPoint(2,1){O}
+ \tkzDefRandPointOn[circle=center O radius 1.5cm]
+ \tkzGetPoint{A}
+ \tkzDrawCircle(O,A)
+ \tkzDefPointBy[rotation=center O angle 100](A)
+ \tkzGetPoint{C}
+ \tkzDefPointBy[rotation=center O angle 78](A)
+ \tkzGetPoint{B}
+ \tkzDrawPoints(O,A,B,C)
+ \tkzDrawSegments(C,B B,A A,O O,C)
+ \tkzDefCentroid(A,B,C,O)
+ \tkzDrawPoint(tkzPointResult)
+ \tkzAutoLabelPoints[center=tkzPointResult,
+ dist=.3,red](O,A,B,C)
+\end{tikzpicture}
+
+\end{document} \ No newline at end of file