summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tkz-elements/TKZdoc-elements-main.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/tkz-elements/TKZdoc-elements-main.tex')
-rw-r--r--Master/texmf-dist/doc/latex/tkz-elements/TKZdoc-elements-main.tex127
1 files changed, 83 insertions, 44 deletions
diff --git a/Master/texmf-dist/doc/latex/tkz-elements/TKZdoc-elements-main.tex b/Master/texmf-dist/doc/latex/tkz-elements/TKZdoc-elements-main.tex
index 95ce56dbc35..cd967f1af07 100644
--- a/Master/texmf-dist/doc/latex/tkz-elements/TKZdoc-elements-main.tex
+++ b/Master/texmf-dist/doc/latex/tkz-elements/TKZdoc-elements-main.tex
@@ -1,6 +1,6 @@
% !TEX TS-program = lualatex
% encoding : utf8
-% Documentation of tkz-elements v2.00c
+% Documentation of tkz-elements v2.20c
% Copyright 2023 Alain Matthes
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
@@ -21,10 +21,10 @@
headings = small
]{tkz-doc}
\gdef\tkznameofpack{tkz-elements}
-\gdef\tkzversionofpack{2.00c}
+\gdef\tkzversionofpack{2.20c}
\gdef\tkzdateofpack{\today}
\gdef\tkznameofdoc{tkz-elements.pdf}
-\gdef\tkzversionofdoc{2.00c}
+\gdef\tkzversionofdoc{2.20c}
\gdef\tkzdateofdoc{\today}
\gdef\tkzauthorofpack{Alain Matthes}
\gdef\tkzadressofauthor{}
@@ -62,7 +62,7 @@
pdftitle={\tkznameofpack},
pdfcreator={\tkzengine}
}
-\usepackage{tkzexample}
+
\usepackage{fontspec}
\setmainfont{texgyrepagella}[
Extension = .otf,
@@ -97,10 +97,10 @@
\usepackage[english]{babel}
\usepackage[normalem]{ulem}
\usepackage{multirow,multido,booktabs,cellspace}
-\usepackage{shortvrb,bookmark,enumitem}
+\usepackage{shortvrb,fancyvrb,bookmark,enumitem}
\usepackage{makeidx}
\usepackage[most]{tcolorbox}
-
+\def\code{\texttt}
\newtcolorbox{mybox}{
enhanced,
boxrule=0pt,frame hidden,
@@ -135,6 +135,7 @@ sharp corners
\renewcommand*{\IoptName}[2]{\texttt{#2}\index{#1_3@\texttt{#1: attribute(s)}!\texttt{#2}}}
\newcommand*{\Iattr}[2]{\texttt{#2}\index{#1_3@\texttt{#1: attribute}!\texttt{#2}}}
\newcommand*{\Imeth}[2]{\texttt{#2}\index{#1_3@\texttt{#1: method}!\texttt{#2}}}
+\newcommand*{\Immeth}[2]{\texttt{#2}\index{#1_3@\texttt{#1: metamethod}!\_\_\texttt{#2}}}
\newcommand*{\Igfct}[2]{\texttt{#2}\index{#1_3@\texttt{#1: function}!\texttt{#2}}}
\newcommand*{\Iclass}[1]{\texttt{#1}\index{Class !#1@\texttt{#1}}}
\newcommand*{\tkzNameObj}[1]{\tkzname{#1}\Iobj{#1}}
@@ -177,20 +178,22 @@ sharp corners
\clearpage
\defoffile{\lefthand\
- This document brings together some notes about \tkzname{\tkznameofpack}, the first version of a library written in lua, allowing to make all the necessary calculations to define the objects of a Euclidean geometry figure. You need to compile with Lua\LaTeX.\\ With \pkg{tkz-elements}, the definitions and calculations are only done with \pkg{lua}. \\ The main possibility of programmation proposed is oriented "object programming" with object classes like point, line, triangle, circle and ellipse. For the moment, once the calculations are done, it is \pkg{tkz-euclide} or \pkg{TikZ} which allows the drawings.\\
- I discovered Lua and object-oriented programming when I created this package, so it's highly probable that I've made a few mistakes. If you'd like to participate in the development of this package or give me advice on how to proceed, please contact me via my email. \\
-English is not my native language so there might be some errors.
+ This document compiles some notes about \tkzname{\tkznameofpack}, the initial version of a \code{Lua} library designed to perform all the necessary calculations for defining objects in Euclidean geometry figures. Your document must be compiled using Lua\LaTeX.\\
+ With \pkg{tkz-elements}, definitions and calculations are exclusively conducted using \pkg{Lua}. \\
+ The primary programming approach offered is oriented towards \code{object programming}, utilizing object classes such as point, line, triangle, circle, and ellipse. Currently, after the calculations are completed, \pkg{tkz-euclide} or \pkg{TikZ} is used for drawing purposes.\\
+ I discovered Lua and object-oriented programming while developing this package, so it's highly likely that I've made a few mistakes. If you'd like to contribute to the development of this package or provide advice on how to proceed, please contact me via email. \\
+Please note: English is not my native language, so there may be some errors."
}
\presentation
\vspace*{1cm}
-\lefthand\ Acknowledgements : I received much valuable advice, remarks, corrections from \\ \tkzimp{Nicolas Kisselhoff}, \tkzimp{David Carlisle}, \tkzimp{Roberto Giacomelli} and \tkzimp{Qrrbrbirlbel}.\\
- Thanks to Wolfgang Büchel, for correcting the examples.
+\lefthand\ Acknowledgements : I received much valuable advices, remarks, corrections from \\ \tkzimp{Nicolas Kisselhoff}, \tkzimp{David Carlisle}, \tkzimp{Roberto Giacomelli} and \tkzimp{Qrrbrbirlbel}.\\
+Special thanks to \tkzimp{Wolfgang Büchel} for his invaluable contribution in correcting the examples.
\vspace*{12pt}
-\lefthand\ I would also like to thank \tkzimp{Eric Weisstein}, creator of
+\lefthand\ I would also like to extend my gratitude to \tkzimp{Eric Weisstein}, creator of
\href{http://mathworld.wolfram.com/about/author.html}{MathWorld}.
\vspace*{12pt}
@@ -204,6 +207,8 @@ This file can be redistributed and/or modified under the terms of the \LaTeX{}
Project Public License Distributed from \href{http://www.ctan.org/}{CTAN}\ archives.
\clearpage
+
+
\tableofcontents
\clearpage
@@ -213,7 +218,7 @@ Project Public License Distributed from \href{http://www.ctan.org/}{CTAN}\ arch
\input{TKZdoc-elements-presentation.tex}
\input{TKZdoc-elements-convention.tex}
\input{TKZdoc-elements-organization.tex}
-\input{TKZdoc-elements-transferts.tex}
+\input{TKZdoc-elements-transfers.tex}
\input{TKZdoc-elements-classes.tex}
\input{TKZdoc-elements-classes-point.tex}
\input{TKZdoc-elements-classes-line.tex}
@@ -226,6 +231,7 @@ Project Public License Distributed from \href{http://www.ctan.org/}{CTAN}\ arch
\input{TKZdoc-elements-classes-parallelogram.tex}
\input{TKZdoc-elements-classes-regular.tex}
\input{TKZdoc-elements-classes-vectors.tex}
+\input{TKZdoc-elements-classes-matrices.tex}
\input{TKZdoc-elements-classes-misc.tex}
\input{TKZdoc-elements-intersection.tex}
\input{TKZdoc-elements-indepthstudy.tex}
@@ -239,7 +245,7 @@ Project Public License Distributed from \href{http://www.ctan.org/}{CTAN}\ arch
\label{sec:cheat_sheet}
% section cheat_sheet (end)
-|r| denotes a real number, |d| a positive real number, |n|an integer, |an| an angle, |b| a boolean, |s| a character string, |pt| a point, |v| variable, |L| a straight line, |C| a circle, |T| a triangle, |E| an ellipse, |V| a vector,|Q| a quadrilateral, |P| a parallelogram, |R| a rectangle, |S| a square, |RP| a regular polygon, |O| an object (pt, L,C,T), . . a list of points or an object, < > optional argument.
+|r| denotes a real number, |cx| complex number, |d| a positive real number, |n| an integer, |an| an angle, |b| a boolean, |s| a character string, |pt| a point, |t| a table, |m| a matrix, |v| variable, |L| a straight line, |C| a circle, |T| a triangle, |E| an ellipse, |V| a vector,|Q| a quadrilateral, |P| a parallelogram, |R| a rectangle, |S| a square, |RP| a regular polygon, |M| a matrix, |O| an object (pt, L,C,T), . . a list of points or an object, < > optional argument.
\begin{multicols}{3}
@@ -250,20 +256,24 @@ Project Public License Distributed from \href{http://www.ctan.org/}{CTAN}\ arch
|type -> s| \\
|argument -> r| \\
|modulus -> d| \\
-\textbf{Methods} table(\ref{point:met}) \\
-|+ - * / -> pt| \\
-|.. -> r| \\
-|^ -> r| \\
+\textbf{Functions} table(\ref{point:att}) \\
+|new -> pt| \\
+|polar -> pt| \\
+|polar_deg -> pt| \\
+\textbf{Methods} table(\ref{complex:meta}) \\
+|+ - * / (pt,pt) -> pt| \\
+|.. (pt,pt) -> r| \\
+|^ (pt,pt) -> r| \\
+|= -> b| \\
+|tostring -> s| \\
+\textbf{Methods} table(\ref{point:met}) table(\ref{complex:met}) \\
|conj -> pt| \\
-|abs -> r| \\
-|mod -> d| \\
-|norm -> d| \\
+|abs -> r| \\
+|mod -> d| \\
+|norm -> d| \\
|arg -> d| \\
|get -> r,r| \\
|sqrt -> pt| \\
-|new -> pt| \\
-|polar -> pt| \\
-|polar_deg -> pt| \\
|north(d) -> pt| \\
|south(d) -> pt| \\
|east(d) -> pt| \\
@@ -274,9 +284,10 @@ Project Public License Distributed from \href{http://www.ctan.org/}{CTAN}\ arch
|homothety (r , ...) -> O| \\
|orthogonal(d) -> pt| \\
|at() -> pt| \\
+|print() -> s| \\
\\
\fbox{\textbf{line}} \\
-\textbf{Attributes} table(\ref{line:att}) \\
+\textbf{Attributes} table(\ref{line:att}) \\
|pa,pb -> pt| \\
|type -> s| \\
|mid -> pt| \\
@@ -288,7 +299,7 @@ Project Public License Distributed from \href{http://www.ctan.org/}{CTAN}\ arch
|west -> pt| \\
|slope -> r| \\
|length -> d| \\
-|vec -> V| \\
+|vec -> V| \\
\textbf{Methods} table(\ref{line:met}) \\
|new (pt,pt) -> d| \\
|distance (pt) -> d| \\
@@ -410,7 +421,7 @@ Project Public License Distributed from \href{http://www.ctan.org/}{CTAN}\ arch
|-> r,r,r| \\
|in_out (pt) -> pt| \\
|check_equilateral () -> b| \\
- \\
+ \\
\fbox{\textbf{circle}} \\
\textbf{Attributes} table(\ref{circle:att}) \\
|center -> pt| \\
@@ -473,7 +484,7 @@ Project Public License Distributed from \href{http://www.ctan.org/}{CTAN}\ arch
|tangent_at (pt) -> L| \\
|tangent_from (pt) -> L| \\
|point (r) -> pt| \\
- \\
+ \\
\fbox{\textbf{square}} \\
\textbf{Attributes} table(\ref{square:att}) \\
|pa,pb,pc,pd -> pt| \\
@@ -482,7 +493,7 @@ Project Public License Distributed from \href{http://www.ctan.org/}{CTAN}\ arch
|center -> pt| \\
|exradius -> d| \\
|inradius -> d| \\
-|diagonal -> d| \\
+|diagonal -> d| \\
|proj -> pt| \\
|ab bc cd da -> L| \\
|ac bd -> L| \\
@@ -546,36 +557,62 @@ Project Public License Distributed from \href{http://www.ctan.org/}{CTAN}\ arch
|proj -> pt| \\
|nb -> i| \\
|angle -> an| \\
- \textbf{Methods} table(\ref{regular:met})\\
+ \textbf{Methods} table(\ref{regular:met}) \\
|new (pt,pt,n) -> PR| \\
|incircle () -> C| \\
|name (s) -> ?| \\
\\
\fbox{\textbf{vector}} \\
-\textbf{Attributes} table(\ref{vector:att}) \\
-|pa,pb -> pt| \\
+\textbf{Attributes} table(\ref{vector:att}) \\
|type -> s| \\
|norm -> d| \\
|slope -> r| \\
-\textbf{Methods} table(\ref{vector:met})\\
+|mtx -> M| \\
+\textbf{Methods} table(\ref{vector:met}) \\
|new (pt,pt) -> V| \\
|+ - * -> pt| \\
|normalize (V) -> V| \\
|orthogonal (d) -> V| \\
|scale (r) -> V| \\
|at (pt) -> V| \\
+\fbox{\textbf{matrix}} \\
+\textbf{Attributes} table(\ref{matrix:att}) \\
+|set -> t| \\
+|rows -> n| \\
+|cols -> n| \\
+|type -> s| \\
+|det -> r| \\
+\textbf{Functions} table(\ref{matrix:met}) \\
+|new -> m| \\
+|square -> m| \\
+|htm -> m| \\
+|vector -> m| \\
+\textbf{Metamethods} table(\ref{matrix:meta}) \\
+|+ - * (m,m) -> m| \\
+|^ (m,n) -> m| \\
+|= -> b| \\
+|tostring -> s| \\
+\textbf{Method} table(\ref{matrix:met}) \\
+|print -> s| \\
+|get -> r/cx|\\
+|inverse -> m| \\
+|adjugate -> m| \\
+|transpose -> m| \\
+|is_diagonal -> b| \\
+|is_orthogonal -> b| \\
+|homogenization -> m| \\
+|htm_apply -> m| \\
\\
\fbox{\textbf{Misc.}} \\
\textbf{Attributes} table(\ref{misc}) \\
|scale (default =1) -> r| \\
|tkzphi -> r| \\
-|tkzinvphi -> r | \\
-|tkzsqrtphi -> r | \\
-|tkz_epsilon (default=1e-8)-> r | \\
-|length -> d | \\
-|islinear(pt,pt,pt) -> b | \\
-|isortho(pt,pt,pt) -> b | \\
-|\tkzUseLua{v} -> ?| \\
+|tkzinvphi -> r| \\
+|tkzsqrtphi -> r| \\
+|tkz_epsilon (default=1e-8)-> r| \\
+|length -> d| \\
+|islinear(pt,pt,pt) -> b| \\
+|isortho(pt,pt,pt) -> b| \\
|value{r} -> r| \\
|real -> r| \\
|angle_normalize (an) -> an| \\
@@ -586,9 +623,11 @@ Project Public License Distributed from \href{http://www.ctan.org/}{CTAN}\ arch
|midpoint (pt,pt) -> pt| \\
|equilateral (pt,pt) -> T| \\
|format_number(r,n) -> r| \\
-
-\fbox{\textbf{Macros}} \\
-|\tkzDN[n]{r} -> r| \\
-|\tkzDrawLuaEllipse((pt,pt,pt))| \\
+|solve_quadratic(cx,cx,cx) -> cx,cx| \\
+|\tkzUseLua{v} -> s| \\
+ \\
+\fbox{\textbf{Macros}} \\
+|\tkzDN[n]{r} -> r| \\
+|\tkzDrawLuaEllipse((pt,pt,pt))| \\
\end{multicols}
\end{document} \ No newline at end of file