summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tkz/tkz-euclide/doc
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-01-24 03:02:57 +0000
committerNorbert Preining <norbert@preining.info>2023-01-24 03:02:57 +0000
commitb06c6695162b493aeec3b594c6beb518c15c98ba (patch)
tree0c1dc3cfc73ea789d6bdc4673d776f3ef652d6d8 /macros/latex/contrib/tkz/tkz-euclide/doc
parent4451a2090261307c963209bc65fea9fde4eceeea (diff)
CTAN sync 202301240302
Diffstat (limited to 'macros/latex/contrib/tkz/tkz-euclide/doc')
-rw-r--r--macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-FAQ.tex2
-rw-r--r--macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-angles.tex2
-rw-r--r--macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-examples.tex36
-rw-r--r--macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-labelling.tex2
-rw-r--r--macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-lua.tex22
-rw-r--r--macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-main.tex17
-rw-r--r--macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-marking.tex140
-rw-r--r--macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-news.tex13
-rw-r--r--macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-others.tex5
-rw-r--r--macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-presentation.tex12
-rw-r--r--macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-tools.tex7
-rw-r--r--macros/latex/contrib/tkz/tkz-euclide/doc/tkz-euclide.pdfbin1109639 -> 1115481 bytes
12 files changed, 106 insertions, 152 deletions
diff --git a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-FAQ.tex b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-FAQ.tex
index 8aee9b7021..97e137007e 100644
--- a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-FAQ.tex
+++ b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-FAQ.tex
@@ -25,7 +25,7 @@
\item Do not mix the syntax of \tkzNamePack{pgfmath} and \tkzNamePack{xfp}. I've often chosen \tkzNamePack{xfp} but if you prefer pgfmath then do your calculations before passing parameters.
- \item Error "dimension too large" : In some cases, this error occurs. One way to avoid it is to use the "\tkzname{xfp}" option. When this option is used in an scope, the "veclen" function is replaced by a function dependent on "xfp". Do not use intersection macros in this scope. For example, an error occurs if you use the macro \tkzcname{tkzDrawArc}
+ \item Error "dimension too large" : In some cases, this error occurs. One way to avoid it is to use the "\tkzname{veclen}" option. When this option is used in an scope, the "veclen" function is replaced by a function dependent on "xfp". Do not use intersection macros in this scope. For example, an error occurs if you use the macro \tkzcname{tkzDrawArc}
with too small an angle. The error is produced by the \NameLib{decoration} library when you want to place a mark on an arc. Even if the mark is absent, the error is still present.
\end{itemize}
diff --git a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-angles.tex b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-angles.tex
index d077256d8a..3ab43bd43e 100644
--- a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-angles.tex
+++ b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-angles.tex
@@ -20,7 +20,7 @@ Let us agree that an angle measured counterclockwise is positive.
\tkzname{Angles} are involved in several macros like \tkzcname{tkzDefPoint},\tkzcname{tkzDefPointBy[rotation = \dots]}, \tkzcname{tkzDrawArc}
and the next one \tkzcname{tkzGetAngle}. With the exception of the last one, all these macros accept negative angles.
- \begin{figure}[!h]
+ \begin{figure}[!ht]
\centering
\begin{tabular}{|c|c|}
\hline
diff --git a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-examples.tex b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-examples.tex
index 45a9be0f98..e436c406fe 100644
--- a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-examples.tex
+++ b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-examples.tex
@@ -94,24 +94,24 @@ The figure below shows a semicircle, with diameter $AB$. A tangent line is drawn
\end{tikzpicture}%
\begin{tkzexample}[vbox,small]
-\begin{tikzpicture}[scale=.75]
- \tkzDefPoint(0,0){D} \tkzDefPoint(8,0){A}
- \tkzDefSquare(D,A) \tkzGetPoints{B}{C}
- \tkzDefMidPoint(D,A) \tkzGetPoint{E}
- \tkzInterLC(D,A)(E,B)\tkzGetSecondPoint{F}
- \tkzInterLC(A,B)(A,F)\tkzGetSecondPoint{G}
- \tkzDefSquare(A,F)\tkzGetFirstPoint{H}
- \tkzInterLL(C,D)(H,G)\tkzGetPoint{I}
- \tkzFillPolygon[teal!10](I,G,B,C)
- \tkzFillPolygon[teal!10](A,F,H,G)
- \tkzDrawArc[angles](E,B)(0,120)
- \tkzDrawSemiCircle(A,F)
- \tkzDrawSegments(A,F E,B H,I F,H)
- \tkzDrawPolygons(A,B,C,D)
- \tkzDrawPoints(A,...,I)
- \tkzLabelPoints[below right](A,E,D,F,I)
- \tkzLabelPoints[above right](C,B,G,H)
-\end{tikzpicture}
+ \begin{tikzpicture}[scale=.75]
+ \tkzDefPoint(0,0){D} \tkzDefPoint(8,0){A}
+ \tkzDefSquare(D,A) \tkzGetPoints{B}{C}
+ \tkzDefMidPoint(D,A) \tkzGetPoint{E}
+ \tkzInterLC(D,A)(E,B)\tkzGetSecondPoint{F}
+ \tkzInterLC[near](B,A)(A,F)\tkzGetFirstPoint{G}
+ \tkzDefSquare(A,F)\tkzGetFirstPoint{H}
+ \tkzInterLL(C,D)(H,G)\tkzGetPoint{I}
+ \tkzFillPolygon[teal!10](I,G,B,C)
+ \tkzFillPolygon[teal!10](A,F,H,G)
+ \tkzDrawArc[angles](E,B)(0,120)
+ \tkzDrawSemiCircle(A,F)
+ \tkzDrawSegments(A,F E,B H,I F,H)
+ \tkzDrawPolygons(A,B,C,D)
+ \tkzDrawPoints(A,...,I)
+ \tkzLabelPoints[below right](A,E,D,F,I)
+ \tkzLabelPoints[above right](C,B,G,H)
+ \end{tikzpicture}
\end{tkzexample}
\newpage
diff --git a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-labelling.tex b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-labelling.tex
index 4fbe35123c..f3c8a0b3da 100644
--- a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-labelling.tex
+++ b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-labelling.tex
@@ -93,7 +93,7 @@ Here the points are positioned relative to the center of gravity of $A,B,C \text
\tkzDrawCircle(O,A)
\tkzDrawPoints(O,A,B,C)
\tkzDrawSegments(C,B B,A A,O O,C)
- \tkzDefCentroid(A,B,C,O)
+ \tkzDefTriangleCenter[centroid](A,B,C) \tkzGetPoint{O}
\tkzDrawPoint(tkzPointResult)
\tkzLabelPoints(O,A,C,B)
\end{tikzpicture}
diff --git a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-lua.tex b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-lua.tex
new file mode 100644
index 0000000000..e5e9f999dd
--- /dev/null
+++ b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-lua.tex
@@ -0,0 +1,22 @@
+\newpage
+\section{Working with lua : option \tkzname{lua}} \label{calc_with_lua}
+
+You can now use the "lua" option with \tkzname{\tkznameofpack} version 5.
+You just have to write in your preamble
+
+ |usepackage[lua]{tkz-euclide}|.
+ Évidemment vous devrez compiler avec LuaLaTeX. Nothing changes for the syntax.
+
+Without the option you can use \tkzname{\tkznameofpack} with the proposed code of version 4.25.
+
+This version is not yet finalized although the documentation you are currently reading has been compiled with this option.
+
+Some information about the method used and the results obtained. Concerning the method, I considered two possibilities. The first one was simply to replace everywhere I could the calculations made by "xfp" or sometimes by "lua". This is how I went from "fp" to "xfp" and now to "lua". The second and more ambitious possibility would have been to associate to each point a complex number and to make the calculations on the complexes with "lua". Unfortunately for that I have to use libraries for which I don't know the license.
+
+Otherwise the results are good. This documentation with "LualaTeX" and "xfp" compiles in 47s while with "lua" it takes only 30s for 236 pages.
+
+Another document of 61 pages is compiled 16s with "pdflaTeX" and "xfp" and 13s with "LualaTeX" and "xfp".
+
+This documentation compiles with |\usepackage{tkz-base}| and |\usepackage[lua]{tkz-euclide}| but I didn't test all the interactions thoroughly.
+
+\endinput \ No newline at end of file
diff --git a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-main.tex b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-main.tex
index 9203b9e562..1f4e33dd60 100644
--- a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-main.tex
+++ b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-main.tex
@@ -1,6 +1,6 @@
% !TEX TS-program = lualatex
% encoding : utf8
-% Documentation of tkz-euclide v4
+% Documentation of tkz-euclide v5
% Copyright 2022 Alain Matthes
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
@@ -22,10 +22,10 @@
]{tkz-doc}
%\usepackage{etoc}
\gdef\tkznameofpack{tkz-euclide}
-\gdef\tkzversionofpack{4.25c}
+\gdef\tkzversionofpack{5.00c}
\gdef\tkzdateofpack{\today}
\gdef\tkznameofdoc{doc-tkz-euclide}
-\gdef\tkzversionofdoc{4.25c}
+\gdef\tkzversionofdoc{5.00c}
\gdef\tkzdateofdoc{\today}
\gdef\tkzauthorofpack{Alain Matthes}
\gdef\tkzadressofauthor{}
@@ -37,7 +37,9 @@
% -- Packages ---------------------------------------------------
\usepackage[dvipsnames,svgnames]{xcolor}
\usepackage{calc}
-\usepackage{tkz-base,tkz-euclide,pgfornament}
+\usepackage{tkz-base}
+\usepackage[lua]{tkz-euclide}
+\usepackage{pgfornament}
\usetikzlibrary{backgrounds}
\usepackage[colorlinks,pdfencoding=auto, psdextra]{hyperref}
\hypersetup{
@@ -113,11 +115,11 @@
\begin{document}
\parindent=0pt
-\tkzTitleFrame{tkz-euclide\\Euclidean Geometry}
+\tkzTitleFrame{tkz-euclide v5\\Euclidean Geometry}
\clearpage
\defoffile{\lefthand\
-From version 4.00, \tkzname{\tkznameofpack} became independent from \tkzname{tkz-base} . This has implied some changes : the next major step will be the version 5 which will see the introduction of Lua. To prepare for this change, I removed the last macros that allowed to plot and define at the same time. Indeed Lua will be there to make all the calculations and define all the necessary nodes. As for \TIKZ\ , it will remain to carry out the tracings, the markings and the labels.\\
+\tkzname{\tkznameofpack} passes in version 5 with the possibility of carrying out part of the calculations using \tkzname{lua}. See the "news" and "lua" sections for more information.\\
\tkzname{\tkznameofpack} is a set of convenient macros for drawing in a plane (fundamental two-dimensional object) with a Cartesian coordinate system. It handles the most classic situations in Euclidean Geometry. \tkzname{\tkznameofpack} is built on top of PGF and its associated front-end \TIKZ\ and is a (La)TeX-friendly drawing package. The aim is to provide a high-level user interface to build graphics relatively simply. The idea is to allow you to follow step by step a construction that would be done by hand as naturally as possible.\\
English is not my native language so there might be some errors.
}
@@ -128,7 +130,7 @@ English is not my native language so there might be some errors.
\lefthand\ Firstly, I would like to thank \textbf{Till Tantau} for the beautiful \LaTeX{} package, namely \href{http://sourceforge.net/projects/pgf/}{\TIKZ}.
\vspace*{12pt}
-\lefthand\ Acknowledgements : I received much valuable advice, remarks, corrections and examples from \tkzimp{Jean-Côme Charpentier}, \tkzimp{Josselin Noirel}, \tkzimp{Manuel Pégourié-Gonnard}, \tkzimp{Franck Pastor}, \tkzimp{David Arnold}, \tkzimp{Ulrike Fischer}, \tkzimp{Stefan Kottwitz}, \tkzimp{Christian Tellechea}, \tkzimp{Nicolas Kisselhoff}, \tkzimp{David Arnold}, \tkzimp{Wolfgang Büchel}, \tkzimp{John Kitzmiller}, \tkzimp{Dimitri Kapetas}, \tkzimp{Gaétan Marris}, \tkzimp{Mark Wibrow}, \tkzimp{Yves Combe} for his work on a protractor, \tkzimp{Paul Gaborit}, \tkzimp{Laurent Van Deik} for all his corrections, remarks and questions and \tkzimp{Muzimuzhi Z} for the code about the option "dim".
+\lefthand\ Acknowledgements : I received much valuable advice, remarks, corrections and examples from \tkzimp{Jean-Côme Charpentier}, \tkzimp{Josselin Noirel}, \tkzimp{Manuel Pégourié-Gonnard}, \tkzimp{Franck Pastor}, \tkzimp{David Arnold}, \tkzimp{Ulrike Fischer}, \tkzimp{Stefan Kottwitz}, \tkzimp{Christian Tellechea}, \tkzimp{Nicolas Kisselhoff}, \tkzimp{David Arnold}, \tkzimp{Wolfgang Büchel}, \tkzimp{John Kitzmiller}, \tkzimp{Dimitri Kapetas}, \tkzimp{Gaétan Marris}, \tkzimp{Mark Wibrow}, \tkzimp{Yves Combe} for his work on a protractor, \tkzimp{Paul Gaborit}, \tkzimp{Laurent Van Deik} for all his corrections, remarks and questions and \tkzimp{Muzimuzhi Z} for the code about the option "dim". A big thank you to \tkzimp{Chetan Shirore} and \tkzimp{Dr. Ajit Kumar} because their work on complex numbers in their package \tkzimp{luamaths} helped me a lot.
\vspace*{12pt}
\lefthand\ I would also like to thank Eric Weisstein, creator of MathWorld:
@@ -152,6 +154,7 @@ Project Public License Distributed from \href{http://www.ctan.org/}{CTAN}\ arch
\part{General survey : a brief but comprehensive review}
\input{TKZdoc-euclide-news.tex}
+\input{TKZdoc-euclide-lua.tex}
\input{TKZdoc-euclide-installation.tex}
\input{TKZdoc-euclide-presentation.tex}
\input{TKZdoc-euclide-elements.tex}
diff --git a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-marking.tex b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-marking.tex
index c23d56a460..97bf596219 100644
--- a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-marking.tex
+++ b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-marking.tex
@@ -126,118 +126,6 @@ More delicate operation because there are many options. The symbols used for mar
|, ||,|||, z, s, x, o, oo
\end{tkzltxexample}
-% Their definitions are as follows
-%
-% \begin{tkzltxexample}[]
-% \pgfdeclareplotmark{||}
-% %double bar
-% {%
-% \pgfpathmoveto{\pgfqpoint{2\pgflinewidth}{\pgfplotmarksize}}
-% \pgfpathlineto{\pgfqpoint{2\pgflinewidth}{-\pgfplotmarksize}}
-% \pgfpathmoveto{\pgfqpoint{-2\pgflinewidth}{\pgfplotmarksize}}
-% \pgfpathlineto{\pgfqpoint{-2\pgflinewidth}{-\pgfplotmarksize}}
-% \pgfusepathqstroke
-% }
-% \end{tkzltxexample}
-%
-% \begin{tkzltxexample}[]
-% %triple bar
-% \pgfdeclareplotmark{|||}
-% {%
-% \pgfpathmoveto{\pgfqpoint{0 pt}{\pgfplotmarksize}}
-% \pgfpathlineto{\pgfqpoint{0 pt}{-\pgfplotmarksize}}
-% \pgfpathmoveto{\pgfqpoint{-3\pgflinewidth}{\pgfplotmarksize}}
-% \pgfpathlineto{\pgfqpoint{-3\pgflinewidth}{-\pgfplotmarksize}}
-% \pgfpathmoveto{\pgfqpoint{3\pgflinewidth}{\pgfplotmarksize}}
-% \pgfpathlineto{\pgfqpoint{3\pgflinewidth}{-\pgfplotmarksize}}
-% \pgfusepathqstroke
-% }
-% \end{tkzltxexample}
-%
-% \begin{tkzltxexample}[]
-% % An bar slant
-% \pgfdeclareplotmark{s|}
-% {%
-% \pgfpathmoveto{\pgfqpoint{-.70710678\pgfplotmarksize}%
-% {-.70710678\pgfplotmarksize}}
-% \pgfpathlineto{\pgfqpoint{.70710678\pgfplotmarksize}%
-% {.70710678\pgfplotmarksize}}
-% \pgfusepathqstroke
-% }
-% \end{tkzltxexample}
-%
-%
-% \begin{tkzltxexample}[]
-% % An double bar slant
-% \pgfdeclareplotmark{s||}
-% {%
-% \pgfpathmoveto{\pgfqpoint{-0.75\pgfplotmarksize}{-\pgfplotmarksize}}
-% \pgfpathlineto{\pgfqpoint{0.25\pgfplotmarksize}{\pgfplotmarksize}}
-% \pgfpathmoveto{\pgfqpoint{0\pgfplotmarksize}{-\pgfplotmarksize}}
-% \pgfpathlineto{\pgfqpoint{1\pgfplotmarksize}{\pgfplotmarksize}}
-% \pgfusepathqstroke
-% }
-% \end{tkzltxexample}
-%
-%
-% \begin{tkzltxexample}[]
-% % z
-% \pgfdeclareplotmark{z}
-% {%
-% \pgfpathmoveto{\pgfqpoint{0.75\pgfplotmarksize}{-\pgfplotmarksize}}
-% \pgfpathlineto{\pgfqpoint{-0.75\pgfplotmarksize}{-\pgfplotmarksize}}
-% \pgfpathlineto{\pgfqpoint{0.75\pgfplotmarksize}{\pgfplotmarksize}}
-% \pgfpathlineto{\pgfqpoint{-0.75\pgfplotmarksize}{\pgfplotmarksize}}
-% \pgfusepathqstroke
-% }
-% \end{tkzltxexample}
-%
-% \begin{tkzltxexample}[]
-% % s
-% \pgfdeclareplotmark{s}
-% {%
-% \pgfpathmoveto{\pgfqpoint{0pt}{0pt}}
-% \pgfpathcurveto
-% {\pgfpoint{0pt}{0pt}}
-% {\pgfpoint{-\pgfplotmarksize}{\pgfplotmarksize}}
-% {\pgfpoint{\pgfplotmarksize}{\pgfplotmarksize}}
-% \pgfpathmoveto{\pgfqpoint{0pt}{0pt}}
-% \pgfpathcurveto
-% {\pgfpoint{0pt}{0pt}}
-% {\pgfpoint{\pgfplotmarksize}{-\pgfplotmarksize}}
-% {\pgfpoint{-\pgfplotmarksize}{-\pgfplotmarksize}}
-% \pgfusepathqstroke
-% }
-% \end{tkzltxexample}
-%
-% \begin{tkzltxexample}[]
-% % infinity
-% \pgfdeclareplotmark{oo}
-% {%
-% \pgfpathmoveto{\pgfqpoint{0pt}{0pt}}
-% \pgfpathcurveto
-% {\pgfpoint{0pt}{0pt}}
-% {\pgfpoint{.5\pgfplotmarksize}{1\pgfplotmarksize}}
-% {\pgfpoint{\pgfplotmarksize}{0pt}}
-% \pgfpathmoveto{\pgfqpoint{0pt}{0pt}}
-% \pgfpathcurveto
-% {\pgfpoint{0pt}{0pt}}
-% {\pgfpoint{-.5\pgfplotmarksize}{1\pgfplotmarksize}}
-% {\pgfpoint{-\pgfplotmarksize}{0pt}}
-% \pgfpathmoveto{\pgfqpoint{0pt}{0pt}}
-% \pgfpathcurveto
-% {\pgfpoint{0pt}{0pt}}
-% {\pgfpoint{.5\pgfplotmarksize}{-1\pgfplotmarksize}}
-% {\pgfpoint{\pgfplotmarksize}{0pt}}
-% \pgfpathmoveto{\pgfqpoint{0pt}{0pt}}
-% \pgfpathcurveto
-% {\pgfpoint{0pt}{0pt}}
-% {\pgfpoint{-.5\pgfplotmarksize}{-1\pgfplotmarksize}}
-% {\pgfpoint{-\pgfplotmarksize}{0pt}}
-% \pgfusepathqstroke
-% }
-% \end{tkzltxexample}
-%
% \tkzMarkAngle(B, A, C)
@@ -300,6 +188,34 @@ options & default & definition \\
With common options, there is a macro for multiple angles.
\end{NewMacroBox}
+\subsection{Problem to mark a small angle: {\tkzname{Option veclen}}}\label{opt-veclen}
+ The problem comes from the "decorate" action and from the value used in size in
+ \tkzcname{tkzMarkAngle}. The solution is to enclose the macro \tkzcname{tkzMarkAngle}.
+ In the next example without the "scope" the result is : Latex Error: Dimension too large.
+
+ \begin{tkzexample}[latex=6cm,small]
+ \begin{tikzpicture}[scale=1]
+ \tkzDefPoint(0,0){O}
+ \tkzDefPoint(2.5,0){N}
+ \tkzDefPoint(-4.2,0.5){M}
+ \tkzDefPointBy[rotation=center O angle 30](N)
+ \tkzGetPoint{B}
+ \tkzDefPointBy[rotation=center O angle -50](N)
+ \tkzGetPoint{A}
+ \tkzInterLC[common=B](M,B)(O,B) \tkzGetFirstPoint{C}
+ \tkzInterLC[common=A](M,A)(O,A) \tkzGetFirstPoint{A'}
+ \tkzDrawSegments(A,C M,A M,B A,B)
+ \tkzDrawCircle(O,N)
+ \begin{scope}[veclen]
+ \tkzMarkAngle[mkpos=.2, size=1.2](C,A,M)
+ \end{scope}
+ \tkzDrawPoints(O, A, B, M, B, C, A')
+ \tkzLabelPoints[right](O,A,B)
+ \tkzLabelPoints[above left](M,C)
+ \tkzLabelPoint[below left](A'){$A'$}
+ \end{tikzpicture}
+ \end{tkzexample}
+
\subsection{Marking a right angle: {\tkzcname{tkzMarkRightAngle}}}
diff --git a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-news.tex b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-news.tex
index a36ade459b..d4efae7995 100644
--- a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-news.tex
+++ b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-news.tex
@@ -1,5 +1,15 @@
\section*{News and compatibility}
+\subsection{With 5.0 version} % (fold)
+
+\begin{itemize}
+
+ \item Finally, I added the "lua" option for the package \tkzname{\tkznameofpack}. This allows to do the calculations for the main functions using lua; (see \ref{calc_with_lua}). The syntax is unchanged. Nothing changes for the user.
+
+ \item The "xfp" option has become "veclen" see \ref{opt-veclen};
+
+\end{itemize}
+
\subsection{With 4.2 version} % (fold)
\label{sub:with_4_2_version}
@@ -43,7 +53,7 @@ If you want to draw a circle, you can't do so |\tkzDrawCircle[R](A,1)|. First yo
\item |\tkzDefLine[euler](A,B,C)| is a macro that allows you to obtain the line of \tkzname{Euler} when possible. |\tkzDefLine[altitude](A,B,C)| is possible again, as well as |\tkzDefLine[tangent at=A](O)| and |\tkzDefLine[tangent from=P](O,A)| which did not works;
-\item | \tkzDefTangent| is replaced by |\tkzDelLine[tangent from = ...]| or |\tkzDelLine[tangent at = ...]|;
+\item | \tkzDefTangent| is replaced by |\tkzDefLine[tangent from = ...]| or |\tkzDefLine[tangent at = ...]|;
\item I added the macro |\tkzPicAngle[tikz options](A,B,C)| for those who prefer to use \TIKZ ;
@@ -117,6 +127,7 @@ As a reminder, the following changes have been made previously:
you can use |\iftkzLinear| (idem for |\tkzIsOrtho|);
\item A style for vectors has been added that you can of course modify
+
|tikzset{vector style/.style={>=Latex,->}}|;
diff --git a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-others.tex b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-others.tex
index 0548bbaf6a..0df63975d8 100644
--- a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-others.tex
+++ b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-others.tex
@@ -69,10 +69,9 @@ Another possiblity is to use \tkzcname{tkzFillAngle}.
\tkzDrawCircle(O,N)
\tkzLabelCircle[above left](O,N)(120){%
$\mathcal{C}$}
- \begin{scope}[xfp]
- \tkzMarkAngle[mkpos=.2, size=1.2](C,A,M)
+ \begin{scope}[veclen]
+ \tkzMarkAngle[mkpos=.2, size=1.2](C,A,M)
\end{scope}
-
\tkzDrawPoints(O, A, B, M, B, C)
\tkzLabelPoints[right](O,A,B)
\tkzLabelPoints[above left](M,C)
diff --git a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-presentation.tex b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-presentation.tex
index e9fc2c6388..6228a9b8a8 100644
--- a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-presentation.tex
+++ b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-presentation.tex
@@ -240,8 +240,8 @@ We draw the circle $\mathcal{K}$ with center $D$ and passing through $G$. It int
\tkzDefPoint(0.75,0.25){B}
\tkzDefPoint(1,1.5){C}
\tkzDefTriangle[equilateral](A,B) \tkzGetPoint{D}
-\tkzInterLC[near](D,B)(B,C) \tkzGetSecondPoint{G}
-\tkzInterLC[near](D,A)(D,G) \tkzGetFirstPoint{L}
+\tkzInterLC[near](D,B)(B,C) \tkzGetSecondPoint{G}
+\tkzInterLC[near](A,D)(D,G) \tkzGetFirstPoint{L}
\tkzDrawCircles(B,C D,G)
\tkzDrawLines[add=0 and 2](D,A D,B)
\tkzDrawSegment(A,B)
@@ -259,10 +259,14 @@ We draw the circle $\mathcal{K}$ with center $D$ and passing through $G$. It int
\end{tikzpicture}
\end{tkzexample}
-\subsection{\tkzname{\tkznameofpack 4} vs \tkzname{\tkznameofpack 3}}
+\subsection{\tkzname{\tkznameofpack\ 4} vs \tkzname{\tkznameofpack\ 3}}
Now I am no longer a Mathematics teacher, and I only spend a few hours studying geometry. I wanted to avoid multiple complications by trying to make \tkzname{tkz-euclide} independent of \tkzname{tkz-base}. Thus was born \tkzname{\tkznameofpack} 4. The latter is a simplified version of its predecessor. The macros of \tkzname{tkz-euclide 3} have been retained. The unit is now \tkzname{cm}. If you need some macros from \tkzname{tkz-base}, you may need to use the \tkzcname{tkzInit}.
+\subsection{\tkzname{\tkznameofpack\ 5} vs \tkzname{\tkznameofpack\ 4}}
+
+Rien ne change pour l'utilisateur. La compilation doit être effectuée avec le moteur LuaLaTeX et les résultats sont plus précis et obtenus plus rapidement. Il suffit de charger \tkzname{\tkznameofpack} 5 comme ceci |\usepackage[lua{tkz-euclide}]|.
+
\subsection{How to use the \tkzname{\tkznameofpack} package ?}
\subsubsection{Let's look at a classic example}
In order to show the right way, we will see how to build an equilateral triangle. Several possibilities are open to us, we are going to follow the steps of Euclid.
@@ -274,7 +278,7 @@ In order to show the right way, we will see how to build an equilateral triangle
\end{verbatim}
\item Then load the \tkzname{\tkznameofpack} package:
\begin{verbatim}
-\usepackage{tkz-euclide}
+\usepackage{tkz-euclide} or \usepackage[lua]{tkz-euclide}
\end{verbatim}
You don't need to load \TIKZ\ because the \tkzname{\tkznameofpack} package works on top of TikZ and loads it.
diff --git a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-tools.tex b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-tools.tex
index 979801aa33..1123d86a2f 100644
--- a/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-tools.tex
+++ b/macros/latex/contrib/tkz/tkz-euclide/doc/latex/TKZdoc-euclide-tools.tex
@@ -294,12 +294,11 @@ arguments & example & explanation \\
\tkzDrawPoints(A,H) \tkzLabelPoints(A,B,H)
\tkzLabelPoints[above](C)
\tkzDotProduct(A,B,C) \tkzGetResult{pabc}
- \pgfmathparse{round(10*\pabc)/10}
+ % \pgfmathparse{round(10*\pabc)/10}
\let\pabc\pgfmathresult
- \node at (1,-3) {%
- $\overrightarrow{PA}\cdot \overrightarrow{PB}=\pabc$};
+ \node at (1,-3) {$\overrightarrow{PA}\cdot \overrightarrow{PB}=\pabc$};
\tkzDotProduct(A,H,B) \tkzGetResult{phab}
- \pgfmathparse{round(10*\phab)/10}
+ % \pgfmathparse{round(10*\phab)/10}
\let\phab\pgfmathresult
\node at (1,-4) {$PA \times PH = \phab $};
\end{tikzpicture}
diff --git a/macros/latex/contrib/tkz/tkz-euclide/doc/tkz-euclide.pdf b/macros/latex/contrib/tkz/tkz-euclide/doc/tkz-euclide.pdf
index 540a04d5a5..c24f592ca7 100644
--- a/macros/latex/contrib/tkz/tkz-euclide/doc/tkz-euclide.pdf
+++ b/macros/latex/contrib/tkz/tkz-euclide/doc/tkz-euclide.pdf
Binary files differ