summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-rnd.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-rnd.tex')
-rw-r--r--macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-rnd.tex27
1 files changed, 12 insertions, 15 deletions
diff --git a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-rnd.tex b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-rnd.tex
index 37e0fdb6ba..47a5bd70f0 100644
--- a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-rnd.tex
+++ b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-rnd.tex
@@ -4,32 +4,29 @@
%<--------------------------------------------------------------------------->
At the moment there are four possibilities:
\begin{enumerate}
- \item point in a rectangle,
- \item on a segment,
- \item on a straight line,
+ \item point in a rectangle;
+ \item on a segment;
+ \item on a straight line;
\item on a circle.
\end{enumerate}
\subsection{Obtaining random points}
-This is the new version that replaces \tkzcname{tkzGetRandPointOn}
-\begin{NewMacroBox}{tkzDefRandPointOn}{\oarg{local options}}
-{The result is a point with a random position that can be named with the macro \tkzcname{tkzGetPoint}. It is possible to use \tkzname{tkzPointResult} if it is not necessary to retain the results..}
-
+This is the new version that replaces \tkzcname{tkzGetRandPointOn}.
+\begin{NewMacroBox}{tkzDefRandPointOn}{\oarg{local options}}%
+{The result is a point with a random position that can be named with the macro \tkzcname{tkzGetPoint}. It is possible to use \tkzname{tkzPointResult} if it is not necessary to retain the results.}
\medskip
-\begin{tabular}{lll}
+\begin{tabular}{lll}%
\toprule
options & default & definition \\
\midrule
\TOline{rectangle=pt1 and pt2} {}{[rectangle=A and B]}
\TOline{segment= pt1--pt2} {}{[segment=A--B]}
\TOline{line=pt1--pt2}{}{[line=A--B]}
-\TOline{circle =center pt1 radius dim}{}{[circle = center A radius 2cm]}
+\TOline{circle =center pt1 radius dim}{}{[circle = center A radius 2 cm]}
\TOline{circle through=center pt1 through pt2}{}{[circle through= center A through B]}
\TOline{disk through=center pt1 through pt2}{}{[disk through=center A through B]}
- \bottomrule
\end{tabular}
-
\end{NewMacroBox}
\subsection{Random point in a rectangle}
@@ -65,10 +62,10 @@ options & default & definition \\
\begin{tikzpicture}
\tkzInit[xmax=5,ymax=5] \tkzGrid
\tkzDefPoints{0/0/A,2/2/B,3/3/C,5/5/D}
- \tkzDefRandPointOn[line = A--B]\tkzGetPoint{a}
- \tkzDefRandPointOn[line = C--D]\tkzGetPoint{d}
- \tkzDrawPoints(A,B,C,D,a,d)
- \tkzLabelPoints(A,B,C,D,a,d)
+ \tkzDefRandPointOn[line = A--B]\tkzGetPoint{E}
+ \tkzDefRandPointOn[line = C--D]\tkzGetPoint{F}
+ \tkzDrawPoints(A,...,F)
+ \tkzLabelPoints(A,...,F)
\end{tikzpicture}
\end{tkzexample}