My goal in trying to learn tkz-euclide is so that I can be able to get an arbitrary point from a circle and define the other elements of my figure from that. So far, from what I can understand from the examples given in the manual (I don't know any French), I came up with the following code.
\documentclass[tikz]{standalone}
\usepackage{tkz-euclide}
\usetkzobj{all}
\begin{document}
\begin{tikzpicture}
\tkzDefPoint(0,0){O} % Defines a point
\tkzGetRandPointOn[circle=center O radius 1.5cm]{A} % Gets random point of the circle with center at O and radius 1.5cm
\tkzDrawCircle(O,A) % Draws the circle
\tkzDefPointBy[rotation=center O angle 100](A) % Defines a point...
\tkzGetPoint{C} % named C
\tkzDefPointBy[rotation=center O angle 78](A) % Defines a point...
\tkzGetPoint{B} % named B
\tkzDrawPoints(O,A,B,C) % Draws dots
\tkzDrawSegments(C,B B,A A,O O,C) % Draws the segments
\tkzLabelPoints(O,A,B,C) % Labels the points
%\node [below] at (O) {$O$};
%\node [above] at (A) {$A$};
%\node [left] at (B) {$B$};
%\node [left] at (C) {$C$};
\end{tikzpicture}
\end{document}
This is nice. But the random positioning of the points screws up the positioning of the labels. (Try compiling several times to see.) I have tried setting up the nodes through the usual \node commands but I still end up with the same problem.How can I control the behavior of the labels so that they would not overlap with other elements of the figure?
Edit
I read this mod comment on my list of questions: Have you considered accepting an answer or starting a bounty for this question? Indeed, I have considered accepting an answer since the solution now looks trivial with tikz but I would still like to see a tkz-euclide-based solution, too. So I thought I would prolong accepting an answer for a short while. So how about starting a bounty instead? Well, why not?


