% !TEX TS-program = lualatex
% encoding : utf8
% Copyright 2011-2026  Alain Matthes
% SPDX-License-Identifier: LPPL-1.3c
% Maintainer: Alain Matthes

\PassOptionsToPackage{unicode}{hyperref}

\documentclass[DIV         = 14,
               fontsize    = 10,
               index       = totoc,
               twoside,
               cadre,
               headings    = small,
               ]{tkz-doc}
\gdef\tkznameofpack{tkz-euclide}
\gdef\tkzversionofpack{5.14c}
\gdef\tkzdateofpack{\today}
\gdef\tkznameofdoc{doc-tkz-euclide}
\gdef\tkzversionofdoc{5.14c}
\gdef\tkzdateofdoc{\today}
\gdef\tkzauthorofpack{Alain Matthes}
\gdef\tkzadressofauthor{}
\gdef\tkznamecollection{AlterMundus}
\gdef\tkzurlauthor{http://altermundus.fr}
\gdef\tkzengine{lualatex}
\gdef\tkzurlauthorcom{http://altermundus.fr}
\nameoffile{\tkznameofpack}
% -- Packages ---------------------------------------------------
\usepackage[dvipsnames,svgnames]{xcolor}
\usepackage{calc}
\usepackage{tkz-base}
\usepackage[lua]{tkz-euclide}
\usepackage{pgfornament}
\usetikzlibrary{backgrounds}
\usepackage[colorlinks,pdfencoding=auto, psdextra]{hyperref}
\hypersetup{
      linkcolor=Gray,
      citecolor=Green,
      filecolor=Mulberry,
      urlcolor=NavyBlue,
      menucolor=Gray,
      runcolor=Mulberry,
      linkbordercolor=Gray,
      citebordercolor=Green,
      filebordercolor=Mulberry,
      urlbordercolor=NavyBlue,
      menubordercolor=Gray,
      runbordercolor=Mulberry,
      pdfsubject={Euclidean Geometry},
      pdfauthor={\tkzauthorofpack},
      pdftitle={\tkznameofpack},
      pdfcreator={\tkzengine},
      bookmarksdepth=3
}
\usepackage{tkzexample}
\usepackage{fontspec}
\setmainfont{texgyrepagella}[
  Extension = .otf,
  UprightFont = *-regular ,
  ItalicFont  = *-italic  ,
  BoldFont    = *-bold    ,
  BoldItalicFont = *-bolditalic
]
\setsansfont{texgyreheros}[
  Extension = .otf,
  UprightFont = *-regular ,
  ItalicFont  = *-italic  ,
  BoldFont    = *-bold    ,
  BoldItalicFont = *-bolditalic ,
]

\setmonofont{lmmono10-regular.otf}[
  Numbers={Lining,SlashedZero},
  ItalicFont=lmmonoslant10-regular.otf,
  BoldFont=lmmonolt10-bold.otf,
  BoldItalicFont=lmmonolt10-boldoblique.otf,
]
\newfontfamily\ttcondensed{lmmonoltcond10-regular.otf}
%% (La)TeX font-related declarations:
\linespread{1.05}      % Pagella needs more space between lines
\usepackage[math-style=literal,bold-style=literal]{unicode-math}
\usepackage{fourier-otf}
\let\rmfamily\ttfamily
\usepackage{multicol,lscape}
\usepackage[english]{babel}
\usepackage[normalem]{ulem}
\usepackage{multirow,multido,booktabs,cellspace}
\usepackage{shortvrb,fancyvrb,bookmark}
\usepackage{makeidx}
\makeindex

%<--------------------------------------------------------------------------->
% settings styles
\tkzSetUpColors[background=white,text=black]
\tkzSetUpCompass[color=orange, line width=.2pt,delta=10]
\tkzSetUpArc[color=gray,line width=.2pt,delta=10]
\tkzSetUpPoint[size=2,color=teal]
\tkzSetUpLine[line width=.2pt,color=teal]
\tkzSetUpStyle[color=orange,line width=.2pt]{new}
\tikzset{every picture/.style={line width=.2pt}}
\tikzset{label angle style/.append style={color=teal,font=\footnotesize}}
\tikzset{label style/.append style={below,color=teal,font=\scriptsize}}
\tikzset{new/.style={color=orange,line width=.2pt}}

\AtBeginDocument{\MakeShortVerb{\|}} % link to shortvrb
\setlength{\emergencystretch}{3em}% fewer overfull lines with long macro names
\def\code{\texttt}
\newcommand*{\ItkzPopt}[2]{\texttt{#2}\index{#1_3@\texttt{#1: options}!\texttt{#2}}}

\begin{document}

\parindent=0pt
\tkzTitleFrame{tkz-euclide v5\\Euclidean Geometry}
\clearpage

\defoffile{\lefthand\ \tkzname{\tkznameofpack} is a set of convenient macros for drawing figures in the plane with a Cartesian coordinate system. It handles the most classic situations of Euclidean geometry. \tkzname{\tkznameofpack} is built on top of PGF and its associated front-end \TIKZ\ and is a (La)TeX-friendly drawing package. It provides a high-level interface to build figures with little effort: you construct them step by step, as closely as possible to a construction made by hand.\\
Version 5 of \tkzname{\tkznameofpack} can use Lua for some calculations; see the sections \code{News} and \code{Lua} at the end of this documentation.\\
Please note: English is not my native language, so there may be some errors.
}

\presentation

\vspace*{1cm}
\lefthand\ First of all, I would like to thank \textbf{Till Tantau} for the beautiful package \href{https://github.com/pgf-tikz/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{Wolfgang Büchel},

\tkzimp{John Kitzmiller}, \tkzimp{Dimitri Kapetas}, \tkzimp{Gaétan Marris}, \tkzimp{Mark Wibrow}, \tkzimp{Yves Combe}, \tkzimp{Paul Gaborit}, \tkzimp{Laurent Van Deik} and \tkzimp{Muzimuzhi Z}.

\vspace*{12pt}
\lefthand\ I would also like to thank Eric Weisstein, creator of MathWorld:
\href{http://mathworld.wolfram.com/about/author.html}{MathWorld}.

\vspace*{12pt}
\lefthand\ You can find some examples on my site:
\href{http://altermundus.fr}{altermundus.fr}. \hspace{2cm} under construction!

\vfill
Please report typos or any other comments about this documentation to \href{mailto:al.ma@mac.com}{\textcolor{blue}{Alain Matthes}}.

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
\setcounter{tocdepth}{2}% sections and subsections; subsubsections stay in the PDF bookmarks
\tableofcontents
\clearpage
\newpage

\part{Getting started}
\input{TKZdoc-euclide-presentation.tex}
\input{TKZdoc-euclide-installation.tex}
\input{TKZdoc-euclide-elements.tex}
\input{TKZdoc-euclide-documentation.tex}

\part{Points}
\input{TKZdoc-euclide-points.tex}
\input{TKZdoc-euclide-pointsSpc.tex}
\input{TKZdoc-euclide-pointby.tex}
\input{TKZdoc-euclide-pointwith.tex}
\input{TKZdoc-euclide-rnd.tex}

\part{Lines, triangles and polygons}
\input{TKZdoc-euclide-lines.tex}
\input{TKZdoc-euclide-triangles.tex}
\input{TKZdoc-euclide-polygons.tex}

\part{Circles}
\input{TKZdoc-euclide-circles.tex}
\input{TKZdoc-euclide-circleby.tex}

\part{Intersections and angles}
\input{TKZdoc-euclide-intersection.tex}
\input{TKZdoc-euclide-angles.tex}

\part{Drawing, filling and clipping}
\input{TKZdoc-euclide-drawing.tex}
\input{TKZdoc-euclide-filling.tex}
\input{TKZdoc-euclide-clipping.tex}

\part{Marking and labelling}
\input{TKZdoc-euclide-marking.tex}
\input{TKZdoc-euclide-labelling.tex}

\part{Complements}
\input{TKZdoc-euclide-compass.tex}
\input{TKZdoc-euclide-show.tex}
\input{TKZdoc-euclide-rapporteur.tex}
\input{TKZdoc-euclide-tools.tex}

\part{Working with styles}
\input{TKZdoc-euclide-styles.tex}

\part{Examples}
\input{TKZdoc-euclide-others.tex}
\input{TKZdoc-euclide-examples.tex}

\part{FAQ}
\input{TKZdoc-euclide-FAQ.tex}

\part{News, compatibility and options}
\input{TKZdoc-euclide-news.tex}
\input{TKZdoc-euclide-lua.tex}

\clearpage\newpage
\small\printindex
\end{document}