summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tkz-doc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-07-15 21:41:47 +0000
committerKarl Berry <karl@freefriends.org>2022-07-15 21:41:47 +0000
commit6e634d3545ca2007b228f5f583230312fcdd2aab (patch)
treebfb1de895b93f1c1dd9410a706edffb053d2f83e /Master/texmf-dist/doc/latex/tkz-doc
parent445281bcff108ceee57c7098482059d5f94ae979 (diff)
tkz-doc (15jul22)
git-svn-id: svn://tug.org/texlive/trunk@63902 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/tkz-doc')
-rw-r--r--Master/texmf-dist/doc/latex/tkz-doc/README.md18
-rw-r--r--Master/texmf-dist/doc/latex/tkz-doc/doc/latex/tkz-doc.tex133
-rw-r--r--Master/texmf-dist/doc/latex/tkz-doc/doc/tkz-doc.pdfbin0 -> 38121 bytes
-rw-r--r--Master/texmf-dist/doc/latex/tkz-doc/latex/couverture.tex98
-rw-r--r--Master/texmf-dist/doc/latex/tkz-doc/latex/tkz-doc.cfg63
-rw-r--r--Master/texmf-dist/doc/latex/tkz-doc/latex/tkz-doc.cls306
-rw-r--r--Master/texmf-dist/doc/latex/tkz-doc/latex/tkzexample.sty502
7 files changed, 410 insertions, 710 deletions
diff --git a/Master/texmf-dist/doc/latex/tkz-doc/README.md b/Master/texmf-dist/doc/latex/tkz-doc/README.md
index bd4e76b0d72..309e7644148 100644
--- a/Master/texmf-dist/doc/latex/tkz-doc/README.md
+++ b/Master/texmf-dist/doc/latex/tkz-doc/README.md
@@ -1,6 +1,6 @@
-# tkz-doc — Class and package for the documentation of all tkz-* packages.
+# tkz-doc — Class for the documentation of all tkz-* packages.
-Release 1.43c 2020/04/10
+Release 1.45c 2022/07/14
## Note
@@ -23,23 +23,11 @@ The Current Maintainer of this work is Alain Matthes.
The package `tkz-doc` is present in `TeXLive` and `MiKTeX`, use the
package manager to install.
-For manual installation all files must be moved into the different directories in your
-installation `TDS` tree or in your `TEXMFHOME`:
-
-```
- doc/README.md -> TDS:doc/latex/tkz-doc/README.md
- latex/*.* -> TDS:tex/latex/tkz-doc/*.*
-```
## How to use it
-1. If you want to compile the documentation of a `tkz-*` package, you need to use the lualatex engine.
-
-## History
+ If you want to compile the documentation of a `tkz-*` package, you need to use the lualatex engine. You need to use the package pgfornament if you want to add a frame with the option "cadre".
-- v 1.43 Correction of bug about the color. Remove the library `babel` of `TikZ`
-- v 1.42 I added in the version 1.4, an option called `cadre`. If you want to draw the frame of the cover, you need to use this option. In this case, you need to
-install the font `orna4`. By default, no frame.
## Author
diff --git a/Master/texmf-dist/doc/latex/tkz-doc/doc/latex/tkz-doc.tex b/Master/texmf-dist/doc/latex/tkz-doc/doc/latex/tkz-doc.tex
new file mode 100644
index 00000000000..5cef425298e
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/tkz-doc/doc/latex/tkz-doc.tex
@@ -0,0 +1,133 @@
+% !TEX TS-program = lualatex
+% encoding : utf8
+% Documentation of tkz-doc.cls
+% 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
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+% This work has the LPPL maintenance status “maintained”.
+% The Current Maintainer of this work is Alain Matthes.
+%
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% doc altermqcm.sty encodage : utf8 %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% Créé par Alain Matthes le 21/03/2009 %
+% Copyright (c) 2009 __AlterMundus__ All rights reserved. %
+% version : 1.45c 2022 %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+\PassOptionsToPackage{unicode}{hyperref}
+
+\documentclass[DIV = 14,
+ fontsize = 10,
+ index = totoc,
+ twoside,
+ cadre,
+ headings = small,
+ ]{tkz-doc}
+\gdef\tkznameofpack{tkzexample.sty}
+\gdef\tkzversionofpack{1.45c}
+\gdef\tkzdateofpack{\today}
+\gdef\tkznameofdoc{doc-tkzexample}
+\gdef\tkzversionofdoc{1.45c}
+\gdef\tkzdateofdoc{\today}
+\gdef\tkzauthorofpack{Alain Matthes}
+\gdef\tkzadressofauthor{}
+\gdef\tkznamecollection{AlterMundus}
+\gdef\tkzurlauthor{http://altermundus.fr}
+
+\gdef\tkznameofpack{tkz-doc.cls}
+\gdef\tkzversionofpack{v1.45}
+\gdef\tkzdateofpack{2022/07/14}
+\gdef\tkznameofdoc{doc-tkz-doc}
+\gdef\tkzdateofdoc{2022/07/14}
+\gdef\tkzauthorofpack{Alain Matthes}
+\gdef\tkzadressofauthor{}
+\gdef\tkznamecollection{AlterMundus}
+\gdef\tkzurlauthor{http://altermundus.fr}
+
+
+\gdef\tkzengine{lualatex}
+\gdef\tkzurlauthorcom{http://altermundus.fr}
+\nameoffile{\tkznameofpack}
+\RequirePackage{fancybox}
+\usepackage{fontspec,pgfornament}
+\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{unicode-math}
+\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]
+\AtBeginDocument{\MakeShortVerb{\|}} % link to shortvrb
+\RequirePackage{shortvrb}
+\AtBeginDocument{\MakeShortVerb{\|}}
+
+\begin{document}
+%<------------------------------------------------------------------------->
+\parindent=0pt
+\tkzTitleFrame{tkz-doc.cls\\A class to present \\ the tkz packages}
+\clearpage
+
+
+\nameoffile{\tkznameofpack}
+\defoffile{\textbf{tkzdoc.cls} is a class that allows me to make the documentation of my packages. If you want to use this class, it is better to analyze the source code first. This class is based on the class \tkzname{scrartcl}. This class is designed to compile with \tkzname{lualatex}. I added a single option: \tkzname{cadre} which allows to add a frame on the cover. The class is completed with a tkz-doc.cfg file that allows to define the colors that will be used.}
+
+\presentation
+
+\vfill
+
+
+
+\vspace{1cm}
+\vfill
+Please report typos or any other comments to 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.
+
+
+
+
+\end{document}
+
diff --git a/Master/texmf-dist/doc/latex/tkz-doc/doc/tkz-doc.pdf b/Master/texmf-dist/doc/latex/tkz-doc/doc/tkz-doc.pdf
new file mode 100644
index 00000000000..fdeed306b45
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/tkz-doc/doc/tkz-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/tkz-doc/latex/couverture.tex b/Master/texmf-dist/doc/latex/tkz-doc/latex/couverture.tex
deleted file mode 100644
index 88df6f1036c..00000000000
--- a/Master/texmf-dist/doc/latex/tkz-doc/latex/couverture.tex
+++ /dev/null
@@ -1,98 +0,0 @@
-% encoding: utf8
-% Copyright 2020 Alain Matthes
-% This work may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3
-% of this license or (at your option) any later version.
-% The latest version of this license is in
-% http://www.latex-project.org/lppl.txt
-% and version 1.3 or later is part of all distributions of LaTeX
-% version 2005/12/01 or later.
-%
-% This work has the LPPL maintenance status “maintained”.
-%
-% The Current Maintainer of this work is Alain Matthes.
-
-%<--------- Couverture des documentations --------------------------------
-\def\fileversion{1.43c}
-\def\filedate{2020/04/10}
-\typeout{2020/04/10 1.43c couverture.tex}
-%<------------------ Make Title ------------------------------------------
-
-\renewcommand\maketitle{%
-\null
-\AddToShipoutPicture*{%
-\setlength\unitlength{1mm}
-\put(0,0){%
- \makebox(0,0)[lb]{%
- \color{myblue!10}\rule{\paperwidth}{\paperheight}%
- }%
- }%
-\put(0,0){%
- \makebox(0,0)[lb]{%
- \color{myblue}\rule{40mm}{\paperheight}%
- }%
- }%
-\put(20,270){% 270 en portrait 180
- \rotatebox{90}{%
- \makebox(0,0)[r]{%
- \fontsize{30}{30}\color{myblue!50!white}%
- \bfseries
- \selectfont{\@title\ \tkzversionofpack}\hfill%
- }%
- }%
- }%
-\put(60,60){%
-\begin{pgfpicture}
-\pgfsys@transformxyscale{.5}{.5}
-\pgfmathdeclarerandomlist{color}{{myblue}{DarkBlue}{SteelBlue}{blue}{MidnightBlue}}
- \foreach \a in {1,...,5}{%
- \pgfmathrandominteger{\x}{1}{300}%
- \pgfmathrandominteger{\y}{1}{200}%
- \pgfmathrandominteger{\r}{20}{100}%
- \pgfmathrandominteger{\s}{5}{95}%
- \pgfmathrandominteger{\o}{50}{80}%
- \pgfmathrandomitem{\c}{color}%
- \pgfdeclareradialshading{ballshading}{%
- \pgfpoint{-10bp}{10bp}}%
- {%
- color(0bp)=(\c!15!white);
- color(9bp)=(\c!75!white);
- color(18bp)=(\c!70!black);
- color(25bp)=(\c!50!black);
- color(50bp)=(black)%
- }%
- \pgfsetfillopacity{\o/100}%
- \pgfpathcircle{\pgfpoint{+\x pt}{+\y pt}}{+\r pt}
- \pgfshadepath{ballshading}{\s}%
- \pgfusepath{}%
- }%
- \end{pgfpicture}}
-
-\put(60,250){% 60,250 en portait 120,180
- \makebox(0,0)[l]{%
- \begin{tikzpicture}
- \nodeshadowedone(2,-1.25){\fontsize{60}{60}
- \selectfont{\tkznamecollection}}
- \end{tikzpicture}
- }%
- }%
-\put(120,40){%
- \makebox(0,0)[l]{%
- \fontsize{17}{21}
- \textcolor{sectioncolor}{\selectfont{\tkzauthorofpack}}%
- }%
- }%
-\put(120,20){%
- \makebox(0,0)[l]{%
- \textcolor{sectioncolor}{\url{\tkzurlauthorcom}}%
- }%
- }%
-\put(120,30){%
- \makebox(0,0)[l]{%
- \textcolor{sectioncolor}{\today \ \ Documentation V.\tkzversionofdoc}}%
- }%
- }%
-\setcounter{footnote}{0}%
-}%
-%<----------------------- End Couverture ---------------------------->
-\endinput
diff --git a/Master/texmf-dist/doc/latex/tkz-doc/latex/tkz-doc.cfg b/Master/texmf-dist/doc/latex/tkz-doc/latex/tkz-doc.cfg
index 2f3e98a2ab2..a65cfca20cd 100644
--- a/Master/texmf-dist/doc/latex/tkz-doc/latex/tkz-doc.cfg
+++ b/Master/texmf-dist/doc/latex/tkz-doc/latex/tkz-doc.cfg
@@ -1,14 +1,15 @@
-% Copyright 2020 Alain Matthes
+% !TEX TS-program = lualatex
+% encoding : utf8
+% Documentation of tkz-doc.cls
+% 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
% of this license or (at your option) any later version.
% The latest version of this license is in
-% http://www.latex-project.org/lppl.txt
+% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
-%
% This work has the LPPL maintenance status “maintained”.
-%
% The Current Maintainer of this work is Alain Matthes.
% original tkz-doc.cfg
@@ -19,9 +20,9 @@
% variable.
%===============================================================================
-\def\fileversion{1.43c}
-\def\filedate{22020/04/10}
-\typeout{2020/04/10 1.43c tkz-doc.cfg}
+\def\fileversion{1.45c}
+\def\filedate{2020/04/22}
+\typeout{2020/04/22 1.45c tkz-doc.cfg}
% ============= colors =========================================================
@@ -31,10 +32,16 @@
\definecolor{myblue}{RGB}{020,120,180}
\definecolor{fondpaille}{cmyk}{0,0,0.1,0}
\definecolor{bistre}{rgb}{.75,.50,.30}
-\definecolor{textcolor}{RGB}{0, 0, 0}
+\definecolor{textcolor}{RGB}{0, 0, 0}
+\definecolor{blueGrey}{rgb}{0.4,0.48,0.53}
\providecolor{bistre}{rgb}{.75,.50,.30}
-\definecolor{mygray}{gray}{0.1}
+\colorlet{graphicbackground}{white}
+\colorlet{codebackground}{lightgray!30}
+\colorlet{codeonlybackground}{lightgray!30}
+\colorlet{numbackground}{white}
+\colorlet{textcodecolor}{darkgray}
+\colorlet{numcolor}{black}
\colorlet{sectioncolor}{MidnightBlue}
\colorlet{titlecolorbox}{gray!10}
\colorlet{pdflinkcolor}{myblue}
@@ -42,43 +49,7 @@
\colorlet{pdffilecolor}{Peach}
\colorlet{stringcolor}{myblue!40!black!100}
\colorlet{commencolor}{blue!0!black!100}
-
-\colorlet{graphicbackground}{white}
-\colorlet{codebackground}{lightgray!30}
-\colorlet{codeonlybackground}{lightgray!30}
-\colorlet{numbackground}{white}
-\colorlet{textcodecolor}{darkgray}
-\colorlet{numcolor}{black}
-
-\definecolor{Salmon}{RGB}{178,51,51}
-\definecolor{BrickRed}{RGB}{233,49,16}
-\definecolor{TealBlue}{RGB}{16,83,165}
-\definecolor{ForestGreen}{RGB}{10,112,43}
-\definecolor{Tangerine}{RGB}{244,176,108}
-\definecolor{DarkBrown}{RGB}{130,65,0}
-\definecolor{blueGrey}{rgb}{0.4,0.48,0.53}
-\def\tkzred{\color{red}}
-\def\tkzblue{\color{blue}}
-%--------------- mots importants et macros ---------------------------------
-\newcommand*{\BS}{\texttt{\char92}}
-\newcommand*{\tkz}{T{\em k}Z}
-\newcommand*{\PGF}{\tkzname{PGF}}
-\newcommand*{\TIKZ}{Ti\textsl{k}Z}
-\newcommand*{\pdf}{\textsc{pdf}}
-\newcommand*{\pgfname}{\textsc{pgf}}
-\newcommand*{\tikzname}{Ti{\em k}Z}
-\newcommand*{\tkzdft}[1]{{\texttt{#1}}}
-\newcommand*{\tkzAttention}[3]{\ \\\llap{\textcolor{#3}{#1\hskip #2}}}
-\newcommand*{\tkzHand}{\ \\\llap{\textcolor{red}{\lefthand\hskip1em}}}
-\newcommand*{\tkzBomb}{\ \\\llap{\textcolor{red}{\bomb\hskip1em}}}
-\newcommand*{\tkzTwoBomb}{\ \\\llap{\textcolor{red}{\bomb\ \bomb\hskip1em}}}
-\newcommand*{\tkzname}[1]{\textbf{\texttt{\textcolor{black}{#1}}}}
-\newcommand*{\tkzimp}[1]{\textbf{#1}}
-\newcommand*{\tkzHandBomb}{\ \\\llap{\textcolor{red}{\lefthand\ \bomb\hskip1em}}}
-\providecommand\LaTeX{L\kern-.36em\raise.3ex\hbox{\sc a}\kern-.15em\TeX}
-\providecommand\LATEX{\LaTeX}
-\renewcommand\TeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX\spacefactor1000}
-\providecommand\TEX{\TeX}
+\colorlet{framecolor}{myblue}
%-------------------------------------------------------------------------------
\def\tkz@background@color{white}
\def\tkz@text@color{black}
diff --git a/Master/texmf-dist/doc/latex/tkz-doc/latex/tkz-doc.cls b/Master/texmf-dist/doc/latex/tkz-doc/latex/tkz-doc.cls
index 1b74679f6c7..6fb0053d72e 100644
--- a/Master/texmf-dist/doc/latex/tkz-doc/latex/tkz-doc.cls
+++ b/Master/texmf-dist/doc/latex/tkz-doc/latex/tkz-doc.cls
@@ -1,6 +1,6 @@
% tkz-doc.cls
% encoding: utf8
-% Copyright 2020 Alain Matthes
+% 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
% of this license or (at your option) any later version.
@@ -8,20 +8,23 @@
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
+%
% This work has the LPPL maintenance status “maintained”.
+%
% The Current Maintainer of this work is Alain Matthes.
+%
% tkz-doc class for use with the tkz documentation
% ( AlterMundus Collection ).
%
-%% Objet : Classe LaTeX et Styles pour créer des documentations.
+%% Objet : Classe LaTeX and Styles to create documentation.
%<-------------- Définitions relatives au package --------------------------->
\newcommand*{\PackageName}{tkz-doc}
-\newcommand*{\PackageVersion}{1.43c}
-\newcommand*{\filedate}{2020/04/10}
+\newcommand*{\PackageVersion}{1.45c}
+\newcommand*{\filedate}{2022/07/14}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
-%<---------------------- Identification Part -------------------------------->
+%<-------------------- Identification Part -------------------------------->
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{\PackageName}[%
\filedate\space Version:\space\PackageVersion\space %
@@ -36,15 +39,25 @@
% svgnames loads a set of 151 rgb color names
% obsolete usenames
\PassOptionsToPackage{dvipsnames,svgnames}{xcolor}
-%<-------------------------------------------------------------------------->-
+%<-------------------------------------------------------------------------->
\KOMAoptions{twoside=false}
-%<-------------------------------------------------------------------------->-
-\RequirePackage{framed,eso-pic}
+%<-------------------------------------------------------------------------->
+\RequirePackage{tikz}
+\usetikzlibrary{decorations.shapes,
+ decorations.text,
+ decorations.pathreplacing,
+ decorations.pathmorphing,
+ decorations.markings,
+ shadows}
+\RequirePackage{ragged2e}
\RequirePackage[bottom,stable,ragged]{footmisc}
+\raggedbottom
+\RequirePackage{framed,eso-pic}
\RequirePackage[automark,markcase=ignoreuppercase]{scrlayer-scrpage}
-%<------------- define important words ---------------------------------->
-\InputIfFileExists{tkz-doc.cfg}{\typeout{Local configuration file tkz-doc.cfg found and used}}{\typeout{tkz-doc.cfg not found}}
- %<-------------------------------------------------------------------------->-
+\RequirePackage[yyyymmdd]{datetime}
+\RequirePackage{booktabs,cellspace,multicol}
+%<------------- define important words ------------------------------------->
+\InputIfFileExists{tkz-doc.cfg}{\typeout{Local configuration file tkz-doc.cfg found and used}}{\typeout{tkz-doc.cfg not found}} %<-------------------------------------------------------------------------->
\pagestyle{scrheadings}
\clearscrheadings
\clearscrplain
@@ -56,11 +69,9 @@
\automark[subsection]{section}
\KOMAoptions{headsepline=.4pt}
\addtokomafont{headsepline}{\color{sectioncolor}}
-
+\setheadwidth[0pt]{text}
\KOMAoptions{footsepline=.4pt}
\addtokomafont{footsepline}{\color{sectioncolor}}
-
-\setheadwidth[0pt]{text}
\setfootwidth[0pt]{text}
\renewcommand{\footnoterule}{\vspace*{-3pt}{%
\color{sectioncolor}\hrule width 2in height 0.4pt}\vspace*{2.6pt}}
@@ -81,18 +92,10 @@
\setcounter{secnumdepth}{3}%
\setcounter{tocdepth}{3}
%<------------------ Éxécution et chargement -----------------------------
-\RequirePackage{tikz}
-\usetikzlibrary{decorations.shapes,
- decorations.text,
- decorations.pathreplacing,
- decorations.pathmorphing,
- decorations.markings,
- shadows}
-\RequirePackage{tabularx,ragged2e}
-\RequirePackage[bottom,stable,ragged]{footmisc}
-\raggedbottom
-\newbox\tkzbox
+
+
%<--------------- some macros --------------------------------------------
+\newbox\tkzbox
\def\nodeshadowedone(#1,#2)#3{%
\node[myblue,above,inner sep=0pt]{\global\setbox\tkzbox=\hbox{#3}\copy\tkzbox};
\node[above,yscale=#2,inner sep=0pt,xslant=#1,myblue!60]{\box\tkzbox};
@@ -103,12 +106,8 @@
\long\def\defoffile#1{\protected@xdef\@defoffile{\@defoffile{#1}}}
\let\@defoffile\@empty
%<-------------------------------------------------------------------------
-\newcommand*{\addbs}[1]{\texttt{\textbackslash#1}}
-\newcommand*{\@CellCode}[1]{}
-\newcommand*{\thead}{\noalign{\iffalse}\fi\@thead}
-\newcommand*{\@thead}[1][\em\ttfamily]{\gdef\@CellCode{#1}\iffalse{\fi}}
-\newcommand*{\tbody}{\noalign{\gdef\@CellCode{}}}
-\newcolumntype{I}{>{\@CellCode}}
+\newcommand*{\addbs}[1]{\texttt{\textbackslash#1}} %\cs parfois ??
+
%<-------------------------- NewMacroBox ----------------------------------->
\newcommand*{\ActivBoxName}{}
\newenvironment{NewMacroBox}[2]{%
@@ -146,9 +145,9 @@
}%
%<----------------- end NewMacroBox ----------------------------------------->
+
%<----------------------------- NewEnvBox ----------------------------------->
\let\fram@d=\MakeFramed \let\endfram@d=\endMakeFramed
-
\newenvironment{NewEnvBox}[1]{%
\parindent=0pt
\renewcommand*{\ActivBoxName}{#1}
@@ -186,25 +185,69 @@
\par\medskip
}
%<------------------- end NewEnvBox ----------------------------------------->
+
+
+
+%<--------------% Define mybox and box title style----------------------------->
+% We need to save the node
+% Every append after command might be useful to have this code
+
+\def\savelastnode{\pgfextra\edef\tmpA{\tikzlastnode}\endpgfextra}
+\def\restorelastnode{\pgfextra\edef\tikzlastnode{\tmpA}\endpgfextra}
+
+\tikzstyle{mybox} = [draw=blue!50!black, very thick,
+ rectangle, rounded corners, inner sep=10pt, inner ysep=20pt,text=darkgray]
+\tikzstyle{fancytitle} =[fill=MidnightBlue!20, text=blue!50!black,rounded corners]
+\tikzstyle{title} = [append after command={%
+ \savelastnode node[fancytitle,right=10pt] at (\tikzlastnode.north west)%
+ {#1}\restorelastnode}]
+%<------------------- end mybox ----------------------------------------->
+
+
+%--------------- mots importants et macros ---------------------------------
+\providecommand*{\BS}{\texttt{\char92}}
+\providecommand*{\tkz}{T{\em k}Z}
+\providecommand*{\PGF}{\tkzname{PGF}}
+\providecommand*{\TIKZ}{Ti\textsl{k}Z}
+\providecommand*{\tikzname}{Ti{\em k}Z}
+\providecommand*{\pgfname}{\textsc{pgf}}
+\providecommand*{\tkzdft}[1]{{\texttt{#1}}}
+\providecommand*{\tkzAttention}[3]{\ \\\llap{\textcolor{#3}{#1\hskip #2}}}
+\providecommand*{\tkzHand}{\ \\\llap{\textcolor{red}{\lefthand\hskip1em}}}
+\providecommand*{\tkzBomb}{\ \\\llap{\textcolor{red}{\bomb\hskip1em}}}
+\providecommand*{\tkzTwoBomb}{\ \\\llap{\textcolor{red}{\bomb\ \bomb\hskip1em}}}
+\providecommand*{\tkzname}[1]{\textbf{\texttt{\textcolor{black}{#1}}}}
+\providecommand*{\tkzimp}[1]{\textbf{#1}}
+\providecommand*{\tkzHandBomb}{\ \\\llap{\textcolor{red}{\lefthand\ \bomb\hskip1em}}}
+\providecommand\LaTeX{L\kern-.36em\raise.3ex\hbox{\sc a}\kern-.15em\TeX}
+\renewcommand\TeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX\spacefactor1000}
+\providecommand\LATEX{\LaTeX}
+\providecommand\TEX{\TeX}
+
%<----------------------------- def macro arg opt---------------------------->
-\def\cmd#1{\cs{\expandafter\cmd@to@cs\string#1}}
-\def\cmd@to@cs#1#2{\char\number`#2\relax}
\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}}
+\def\cmd@to@cs#1#2{\char\number`#2\relax}
+\def\cmd#1{\cs{\expandafter\cmd@to@cs\string#1}}
+
\providecommand\marg[1]{{\ttfamily\char`\{}\opt{\meta{#1}}{\ttfamily\char`\}}}
-\providecommand\oarg[1]{{\ttfamily[}\opt{\meta{#1}}{\ttfamily]}}
\providecommand\parg[1]{{\ttfamily(}\opt{\meta{#1}}{\ttfamily)}}
-\newcommand\opt[1]{{\color{myblue}#1}}
-\newcommand\ooarg[1]{{\ttfamily[}\meta{#1}{\ttfamily]}}
-\newcommand*{\var}[1]{\{\opt{\meta{#1}}\}}
-\newcommand*{\varp}[1]{\big(\opt{\meta{#1}}\big)}
-\newcommand*{\vara}[1]{\{#1\}}
+\providecommand\oarg[1]{{\ttfamily[}\opt{\meta{#1}}{\ttfamily]}}
+\providecommand\ooarg[1]{{\ttfamily[}\meta{#1}{\ttfamily]}}
+\providecommand\opt[1]{{\color{myblue}#1}}
+\providecommand*{\var}[1]{\{\opt{\meta{#1}}\}}
+\providecommand*{\varp}[1]{\big(\opt{\meta{#1}}\big)}
+\providecommand*{\vara}[1]{\{#1\}}
+
% -- Macros pour indexation -------------------------------------------------
+% It is necessary to think about \protect
\newcommand*{\tkzNamePack}[1]{\NamePack{#1}}
\newcommand*{\tkzNameMacro}[1]{\tkzcname{#1}\Imacro{#1}}
\newcommand*{\tkzNameEnv}[1]{\tkzname{#1}\Ienv{#1}}
\newcommand*{\Ilib}[1]{\index{Library_1@\texttt{Library}!\texttt{#1}}}
\newcommand*{\Ienv}[1]{\index{Environment_1@\texttt{Environment}!\texttt{#1}}}
\newcommand*{\IargEnv}[2]{\index{#1_2@\texttt{#1: arguments}!\texttt{#2}}}
+\newcommand*{\IstyleEnv}[2]{\index{#1_3@\texttt{#1: styles}!\texttt{#2}}}
+\newcommand*{\Iaccent}[2]{\index{#1@\texttt{#2}}}
\newcommand*{\IargNameEnv}[2]{\texttt{#2}\index{#1_2@\texttt{#1: arguments}!\texttt{#2}}}
\newcommand*{\IoptEnv}[2]{\index{#1_3@\texttt{#1: options}!\texttt{#2}}}
\newcommand*{\IoptNameEnv}[2]{\texttt{#2}\index{#1_3@\texttt{#1: options}!\texttt{#2}}}
@@ -214,8 +257,6 @@
\newcommand*{\IoptName}[2]{\texttt{#2}\index{#1_3@\texttt{\textbackslash#1: options}!\texttt{#2}}}
\newcommand*{\Iopt}[2]{\index{#1_3@\texttt{\textbackslash#1: options}!\texttt{#2}}}
\newcommand*{\Istyle}[2]{\index{#1_3@\texttt{\textbackslash#1: styles}!\texttt{#2}}}
-\newcommand*{\IstyleEnv}[2]{\index{#1_3@\texttt{#1: styles}!\texttt{#2}}}
-\newcommand*{\Iaccent}[2]{\index{#1@\texttt{#2}}}
\newcommand*{\NameLib}[1]{\texttt{\textcolor{MidnightBlue}{#1}}\index{Ti\emph{k}Z Library !#1@\texttt{#1}}}
\newcommand*{\NameSys}[1]{\texttt{#1}\index{Operating System !#1@\texttt{#1}}}
\newcommand*{\NameDist}[1]{\texttt{\textcolor{MidnightBlue}{#1}}\index{TeX Distributions !#1@\texttt{#1}}}
@@ -225,10 +266,36 @@
\newcommand*{\TOline}[3]{\IoptName{\ActivBoxName}{#1}&\tkzdft{#2}&\ttfamily #3\\}
\newcommand*{\TAline}[3]{\IargName{\ActivBoxName}{#1}&\tkzdft{#2}&\ttfamily #3\\}
\newcommand*{\TMline}[3]{\tkzcname{#1}\index{#1_1@\texttt{\textbackslash#1}}&\tkzdft{#2}&\ttfamily #3\\}
-\newcommand*{\tkzcname}[1]{\Imacro{#1}\textbf{\texttt{\textcolor{MidnightBlue}{%
- \textbackslash#1}}}}
+
\newcommand*{\tkzhname}[1]{\textbf{\texttt{\textcolor{MidnightBlue}{%
\textbackslash#1}}}}
+\newcommand*{\tkzNameSys}[1]{\texttt{\textcolor{MidnightBlue}{#1}}\index{Operating System !#1@\texttt{#1}}}
+\newcommand*{\tkzNameDist}[1]{\texttt{\textcolor{MidnightBlue}{#1}}\index{TeX Distributions !#1@\texttt{#1}}} \newcommand{\red}{\color{BrickRed}}
+% print #1 but add index
+\newcommand*{\tkzcname}[1]{\Imacro{#1}\textbf{\texttt{\textcolor{MidnightBlue}{%
+ \textbackslash#1}}}}
+\renewcommand\TeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX%
+ \spacefactor1000 }
+\providecommand\LaTeX{%
+ L\kern-.36em\raise.3ex\hbox{\sc a}\kern-.15em\TeX}
+\providecommand\LATEX{\LaTeX}
+% Some definitions useful in producing this sort of documentation:
+\chardef\bslash=`\\ % p. 424, TeXbook
+% Normalized (nonbold, nonitalic) tt font, to avoid font
+% substitution warning messages if tt is used inside section
+% headings and other places where odd font combinations might
+% result.
+\newcommand{\ntt}{\normalfont\ttfamily}
+% command name
+\newcommand{\cn}[1]{{\protect\ntt\bslash#1}}
+% LaTeX package name
+\newcommand{\pkg}[1]{{\protect\ntt#1}}
+% File name
+\newcommand{\fn}[1]{{\protect\ntt#1}}
+% environment name
+\newcommand{\env}[1]{{\protect\ntt#1}}
+\hfuzz1pc % Don't bother to report overfull boxes if overage is < 1pc
+
\DeclareRobustCommand\meta[1]{%
\ensuremath\langle
@@ -278,8 +345,85 @@
\endgroup}
%<---------------------------------------------------------------------
-\input{couverture}
-%<--------- presentation première page --------------------------------->
+%<------------------ couverture. ------------------------------------
+\renewcommand\maketitle{%
+\null
+\AddToShipoutPicture*{%
+\setlength\unitlength{1mm}
+\put(0,0){%
+ \makebox(0,0)[lb]{%
+ \color{myblue!10}\rule{\paperwidth}{\paperheight}%
+ }%
+ }%
+\put(0,0){%
+ \makebox(0,0)[lb]{%
+ \color{myblue}\rule{40mm}{\paperheight}%
+ }%
+ }%
+\put(20,180){% 270 en portrait 180 en landscape
+ \rotatebox{90}{%
+ \makebox(0,0)[r]{%
+ \fontsize{30}{30}\color{myblue!50!white}%
+ \bfseries
+ \selectfont{\@title\ \tkzversionofpack}\hfill%
+ }%
+ }%
+ }%
+\put(60,60){%
+\begin{pgfpicture}
+\pgfsys@transformxyscale{.5}{.5}
+\pgfmathdeclarerandomlist{color}{{myblue}{DarkBlue}{SteelBlue}{blue}{MidnightBlue}}
+ \foreach \a in {1,...,5}{%
+ \pgfmathrandominteger{\x}{1}{300}%
+ \pgfmathrandominteger{\y}{1}{200}%
+ \pgfmathrandominteger{\r}{20}{100}%
+ \pgfmathrandominteger{\s}{5}{95}%
+ \pgfmathrandominteger{\o}{50}{80}%
+ \pgfmathrandomitem{\c}{color}%
+ \pgfdeclareradialshading{ballshading}{%
+ \pgfpoint{-10bp}{10bp}}%
+ {%
+ color(0bp)=(\c!15!white);
+ color(9bp)=(\c!75!white);
+ color(18bp)=(\c!70!black);
+ color(25bp)=(\c!50!black);
+ color(50bp)=(black)%
+ }%
+ \pgfsetfillopacity{\o/100}%
+ \pgfpathcircle{\pgfpoint{+\x pt}{+\y pt}}{+\r pt}
+ \pgfshadepath{ballshading}{\s}%
+ \pgfusepath{}%
+ }%
+ \end{pgfpicture}}
+
+\put(60,250){% 60,250 en portait 120,180
+ \makebox(0,0)[l]{%
+ \begin{tikzpicture}
+ \nodeshadowedone(2,-1.25){\fontsize{60}{60}
+ \selectfont{\tkznamecollection}}
+ \end{tikzpicture}
+ }%
+ }%
+\put(120,40){%
+ \makebox(0,0)[l]{%
+ \fontsize{17}{21}
+ \textcolor{sectioncolor}{\selectfont{\tkzauthorofpack}}%
+ }%
+ }%
+\put(120,20){%
+ \makebox(0,0)[l]{%
+ \textcolor{sectioncolor}{\url{\tkzurlauthorcom}}%
+ }%
+ }%
+\put(120,30){%
+ \makebox(0,0)[l]{%
+ \textcolor{sectioncolor}{\today \ \ Documentation V.\tkzversionofdoc}}%
+ }%
+ }%
+\setcounter{footnote}{0}%
+}%
+%<----------------------- End cover ---------------------------->
+%<--------- presentation first page --------------------------------->
\newcommand\presentation{%
\thispagestyle{empty}%
\par\vspace*{3 cm}
@@ -293,8 +437,8 @@
\href{\tkzurlauthor}{%
\rotatebox{90}{\hspace*{1.5em}{%
\textcolor{sectioncolor}{\Huge \tkznamecollection}}}}
- \textcolor{sectioncolor}{\rule{2pt}{\tkz@lx}}\quad%
- \begin{minipage}[b]{.90\textwidth}
+ \textcolor{sectioncolor}{\rule{2pt}{\tkz@lx}}\quad%
+ \begin{minipage}[b]{.70\textwidth}
{%
\noindent\hfill
\raggedleft\Large
@@ -304,4 +448,68 @@
\par
\end{minipage}
}
-\endinput
+%<----------------------- Spc. Table ---------------------------->
+\newcommand{\tkzsubf}[2]{%
+ {\small\begin{tabular}[t]{@{}c@{}}
+ #1\\#2
+ \end{tabular}}%
+}
+
+\renewcommand{\labelitemi}{--}
+\setlength\parindent{0pt}
+\RedeclareSectionCommand[tocnumwidth=3.5em]{part}
+\RedeclareSectionCommand[tocnumwidth=3.5em]{section}
+\RedeclareSectionCommand[tocnumwidth=3.5em]{subsection}
+\RedeclareSectionCommand[tocnumwidth=3.5em]{subsubsection}
+\renewcommand\partheadstartvskip{\clearpage\null\vfil}
+\renewcommand\partheadmidvskip{\par\nobreak\vskip 20pt\thispagestyle{empty}}
+\renewcommand\partheadendvskip{\vfil\clearpage}
+\renewcommand\raggedpart{\centering}
+
+%<-------------------------------------------------------------------------
+% code for booktab font change command see jos-astuces.rtfd
+\newcommand*{\@CellCode}[1]{}
+\newcommand*{\thead}{\noalign{\iffalse}\fi\@thead}
+\newcommand*{\@thead}[1][\em\ttfamily]{\gdef\@CellCode{#1}\iffalse{\fi}}
+\newcommand*{\tbody}{\noalign{\gdef\@CellCode{}}}
+\newcolumntype{I}{>{\@CellCode}}%
+
+% table inside the cover ---------------------------->
+
+\def\tkzTitleFrame#1{%
+\edef\titleinframe{#1}
+\author{\tkzauthorofpack}
+\title{\tkznameofpack}
+\date{\today}
+\clearpage
+\thispagestyle{empty}
+\maketitle
+\null
+\if@tkzcadre
+\AddToShipoutPicture*{%
+\setlength\unitlength{1mm}
+\if@landscape\def\tkz@posy{90}\def\tkz@posx{160}%
+\else\def\tkz@posx{70}\def\tkz@posy{140}
+\fi
+\put(\tkz@posx,\tkz@posy){%
+\begin{tikzpicture}[color=framecolor,
+every node/.style={inner sep=0pt}]
+ \node[draw,line width=2pt,double,color=framecolor,
+ fill=myblue!10,opacity=.5,minimum width=300pt,minimum height=240pt] (vecbox) {};
+ \node[text width=240pt] at (vecbox.center){%
+ \begin{center}
+ \color{MidnightBlue}
+ \fontsize{24}{48}
+ \selectfont\titleinframe%
+ \end{center}};
+ \node[anchor=north west] at (vecbox.north west)
+{\pgfornament[width=2cm]{61}};
+\node[anchor=north east] at (vecbox.north east)
+{\pgfornament[width=2cm,symmetry=v]{61}};
+\node[anchor=south west] at (vecbox.south west)
+{\pgfornament[width=2cm,symmetry=h]{61}};
+\node[anchor=south east] at (vecbox.south east) {\pgfornament[width=2cm,symmetry=c]{61}};
+\end{tikzpicture}
+}
+}\fi}
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/tkz-doc/latex/tkzexample.sty b/Master/texmf-dist/doc/latex/tkz-doc/latex/tkzexample.sty
deleted file mode 100644
index c564a0f0d17..00000000000
--- a/Master/texmf-dist/doc/latex/tkz-doc/latex/tkzexample.sty
+++ /dev/null
@@ -1,502 +0,0 @@
-% Documentation of tkz-euclide
-% Copyright 2020 Alain Matthes
-% This work may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3
-% of this license or (at your option) any later version.
-% The latest version of this license is in
-% http://www.latex-project.org/lppl.txt
-% and version 1.3 or later is part of all distributions of LaTeX
-% version 2005/12/01 or later.
-%
-% This work has the LPPL maintenance status “maintained”.
-%
-% The Current Maintainer of this work is Alain Matthes.
-
-%
-% The author of the original code
-% of the environment 'codeexample' is Till Tantau
-% from the file pgfmanual-en-macros.tex
-% (Copyright 2006 by Till Tantau)
-% See the file doc/generic/pgf/licenses/LICENSE for more details.
-% H I G H L Y E X P E R I M E N T A L
-%<--------------------------------------------------------------------------->
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tkzexample}[2020/04/10 v1.43c (code and graphic)]
-\RequirePackage{calc,mdframed,fancyvrb}
-\newif\iftkzcodesaved
-\DeclareOption{saved}{\tkzcodesavedtrue}
-\ProcessOptions\relax
-%<--------------------------------------------------------------------------->
-\colorlet{graphicbackground}{white}
-\colorlet{codebackground}{white}
-\colorlet{codeonlybackground}{white}
-\colorlet{numbackground}{white}
-\colorlet{textcodecolor}{black}
-\colorlet{numcolor}{gray}
-%<--------------------------------------------------------------------------->
-\def\code@style{\small\ttfamily}
-\makeatletter
-\newcounter{code@cnt}%
-
-\ifx\scantokens\@undefined
- \PackageError{tkzexample}{You need to use extended latex
- (elatex) or (pdfelatex) to use this package}{}
-\fi
-
-% Define \find@tkzexample such that it doesn't destroy catcodes:
-\begingroup
-\catcode`|=0
-\catcode`[= 1
-\catcode`]=2
-\catcode`\{=12
-\catcode `\}=12
-\catcode`\\=12 |gdef|find@tkzexample#1\end{tkzexample}[|endoftkzexample[#1]]
-|endgroup
-
-\begingroup
-\catcode`|=0
-\catcode`[= 1
-\catcode`]=2
-\catcode`\{=12
-\catcode `\}=12
-\catcode`\\=12 |gdef|find@tkzltxexample#1\end{tkzltxexample}[|endoftkzltxexample[#1]]
-|endgroup
-
-% define \returntospace.
-%
-% It should define NEWLINE as {}, spaces and tabs as \space.
-\begingroup
-\catcode`\^=7
-\catcode`\^^M=13
-\catcode`\^^I=13
-\catcode`\ =13%
-\gdef\returntospace{\catcode`\ =13\def {\space}\catcode`\^^I=13\def^^I{\space}\catcode`\^^M=13\def^^M{}}%
-\endgroup
-
-\begingroup
-\catcode`\%=13
-\catcode`\^^M=13
-\gdef\commenthandler{\catcode`\%=13\def%{\@gobble@till@return}}
-\gdef\@gobble@till@return#1^^M{}
-\gdef\@gobble@till@return@ignore#1^^M{\ignorespaces}
-\gdef\typesetcomment{\catcode`\%=13\def%{\@typeset@till@return}}
-\gdef\@typeset@till@return#1^^M{{\def%{\char`\%}\textsl{\char`\%#1}}\par}
-\gdef\typesetcommentnum{\catcode`\%=13\def%{\@typeset@till@return@num}}
-\gdef\@typeset@till@return@num#1^^M{{\def%{\char`\%}\textsl{\char`\%#1}} \@@par}
-\endgroup
-
-\let\tkz@frameset\colorbox
-\let\tkz@frameltxset\colorbox
-\newwrite\fileexample
-\newdimen\tkzexamplewidth
-\newdimen\tkz@hsep
-\tkz@hsep=0pt
-\newif\ifcode@execute
-\newif\ifcode@saved\code@savedfalse
-\newif\ifnum@show \num@showfalse
-\newif\ifcode@overhang
-\newbox\tkzexamplebox
-\newif\ifcode@vbox \code@vboxfalse
-
-\pgfqkeys{/tkzexample}{%
- execute code/.is if = code@execute,
- show num/.is if = num@show,
- overhang/.is if = code@overhang,
- code only/.code = {\code@executefalse},
- width/.code = {\setlength\tkzexamplewidth{#1}},
- code/.code = {\colorlet{codebackground}{#1}},
- graphic/.code = {\colorlet{graphicbackground}{#1}},
- overhang/.code = {\code@overhangtrue},
- num/.code = {\num@showtrue\setcounter{code@cnt}{1}},
- numcolor/.code = {\colorlet{numcolor}{#1}},
- numbkgcolor/.code = {\colorlet{numbackground}{#1}},
- global num/.code = {\num@showtrue},
- code style/.code = {\def\code@style{#1}},
- normal/.code = {\def\code@size{\normalsize}},
- small/.code = {\def\code@size{\small}},
- very small/.code = {\def\code@size{\footnotesize}},
- right margin/.code = {\def\tkz@rightmargin{#1}},
- left margin/.code = {\def\tkz@leftmargin{#1}},
- inner left margin/.code = {\def\tkz@innerleftmargin{#1}},
- inner right margin/.code = {\def\tkz@innerrightmargin{#1}},
- inner top margin/.code = {\def\tkz@innertopmargin{#1}},
- inner bottom margin/.code = {\def\tkz@innerbottommargin{#1}},
- line frame width/.code = {\def\tkz@linewidth{#1}},
- frame code/.code = {\def\tkz@frameset{\fcolorbox{#1}}},
- frame tex/.code = {\def\tkz@frameltxset{\fcolorbox{#1}}},
- above skip/.code = {\def\tkz@above{#1}},
- below skip/.code = {\def\tkz@below{#1}},
- hsep/.code = {\setlength\tkz@hsep{#1}},
- pre/.code = {\def\code@pre{#1}},
- post/.code = {\def\code@post{#1}},
- latex/.code = {\setlength\tkzexamplewidth{#1}%
- \def\code@preadd{\begin{minipage}{#1}}%
- \def\code@postadd{\end{minipage}}},
- vbox/.code = {\code@vboxtrue
- \def\code@preadd{\noindent
- \vbox\bgroup
- \setlength{\hsize}{\linewidth-6pt}%
- }%
- \def\code@postadd{\egroup}},
- every tkzexample/.style={width=6cm},
-}%
-\def\code@size{}%
-\def\code@pre{}%
-\def\code@post{}%
-\def\code@preadd{}%
-\def\code@postadd{}%
-\def\tkz@above{\par}%
-\def\tkz@below{\par}%
-
-% execution du code
-\def\tkz@result{%
- \begin{minipage}[t]{\wd\tkzexamplebox}%
- \hrule width0pt
- \code@size
- \box\tkzexamplebox
- \leavevmode
- \end{minipage}%
-}%
-
-\newcommand\tkz@code[1]{%
-\begin{minipage}[t]{\code@width}{%
-\color{textcodecolor}%
-\parskip=\z@
-\hrule width\z@
-\vskip-.25em
-\let\do\@makeother
-\dospecials
-\frenchspacing
-\code@style\code@size
-\obeylines
-\@vobeyspaces
-\@tempswafalse
-\ifnum@show
- \typesetcommentnum
- \def\par{%
- \if@tempswa
- \leavevmode\null\@@par\penalty\interlinepenalty
- \everypar{\setlength\fboxsep{1pt}%
- \noindent\parskip=0pt%
- \llap{\colorbox{numbackground}{\textcolor{numcolor}{%
- \footnotesize\number\value{code@cnt}}}\enspace}%
- \stepcounter{code@cnt}}%
- \else
- \@tempswatrue
- \ifhmode\@@par\penalty\interlinepenalty\fi%
- \fi
- }%
- \everypar{\setlength\fboxsep{1pt}%
- \noindent\parskip=0pt%
- \llap{\colorbox{numbackground}{\textcolor{numcolor}{%
- \footnotesize\number\value{code@cnt}}}\enspace}%
- \stepcounter{code@cnt}%
- }%
-\else
- \typesetcomment
- \def\par{%
- \if@tempswa
- \leavevmode\null\@@par\penalty\interlinepenalty%
- \else
- \@tempswatrue
- \ifhmode\@@par\penalty\interlinepenalty\fi%
- \fi
- }%
-\fi
-\obeylines
-\ifcode@saved\input{#1}\else#1\fi%
-}% end of content for the minipage
-\end{minipage}%
-}%
-
-\newcommand\tkz@codesplit[1]{%
-\begin{mdframed}[linewidth = \tkz@linewidth,
- leftmargin = \tkz@leftmargin,
- rightmargin = \tkz@rightmargin,
- backgroundcolor = codeonlybackground,
- innerleftmargin = \tkz@innerleftmargin,
- innertopmargin = \tkz@innertopmargin]
-\begingroup
-\color{textcodecolor}%
-\parskip=\z@
-\hrule width0pt
-\let\do\@makeother
-\dospecials
-\frenchspacing
-\code@style\code@size
-\obeylines
-\@vobeyspaces
-\@tempswafalse
-\ifnum@show
-\typesetcommentnum
-\def\par{%
- \if@tempswa
- \leavevmode\null\@@par\penalty\interlinepenalty
- \everypar{\setlength\fboxsep{1pt}%
- \noindent\parskip=0pt%
- \llap{\colorbox{numbackground}{\textcolor{numcolor}{%
- \footnotesize\number\value{code@cnt}}}\enspace}%
- \stepcounter{code@cnt}}%
- \else
- \@tempswatrue
- \ifhmode\@@par\penalty\interlinepenalty\fi
- \fi
-}%
-\everypar{\setlength\fboxsep{1pt}%
- \noindent\parskip=0pt%
- \llap{\colorbox{numbackground}{\textcolor{numcolor}{%
- \footnotesize\number\value{code@cnt}}}\enspace}%
- \stepcounter{code@cnt}%
- }%
-\else
-\typesetcomment%
-\def\par{%
- \if@tempswa
- \leavevmode\null\@@par\penalty\interlinepenalty%
- \else
- \@tempswatrue
- \ifhmode\@@par\penalty\interlinepenalty\fi%
- \fi
-}%
-\fi
-\obeylines
-\ifcode@saved\input{#1}\else #1\fi
-\endgroup
-\end{mdframed}%
-}%
-
-
-\def\tkzref{\arabic{section}-\arabic{subsection}-\arabic{subsubsection}}%
-\def\tkzFileSavedPrefix{tkzFile}%
-\def\tkz@File@Saved@Name{\tkzFileSavedPrefix-\tkzref}%
-
-\iftkzcodesaved
-\def\tkzexample[#1]{%
-\code@executetrue
-\normalsize
-\pgfkeys{/tkzexample/.cd,
- right margin = 0pt,
- left margin = 0pt,
- line frame width = 0,
- inner left margin = 0 pt,
- inner right margin = 0 pt,
- inner top margin = 6 pt,
- inner bottom margin = 0 pt}
-\pgfqkeys{/tkzexample}{every tkzexample,#1}%
-\parindent0pt
-\bgroup
-\VerbatimEnvironment
-\killienc\begin{VerbatimOut}{\tkz@File@Saved@Name.tex}}%
-\def\endtkzexample{\end{VerbatimOut}%
-\egroup
-\ifcode@execute
-\setbox\tkzexamplebox=\hbox{\input{\tkz@File@Saved@Name.tex}}%
-\ifdim\wd\tkzexamplebox>\tkzexamplewidth%
- \gdef\code@mid{\parskip2pt\par}%
-% \hrule
- %\def\code@mid{\hfill}%
- \gdef\code@width{\linewidth}%
-\else
- \ifdim\tkz@hsep=0pt
- \gdef\code@mid{\hfill}%
- \else
- \gdef\code@mid{\hskip\tkz@hsep}%
- \fi
- \gdef\code@width{\linewidth-1.5em-\tkz@hsep-\tkzexamplewidth}%
- \fi
- \par\noindent
- \code@savedtrue
- \ifcode@overhang
- \tkz@frameset{codebackground}{\tkz@code{\tkz@File@Saved@Name.tex}}%
- \else
- \tkz@frameltxset{graphicbackground}{\tkz@result}%
- \fi
- \else% pas de code pas clair
- \gdef\code@mid{\hfill}%
- \gdef\code@width{\linewidth}%
- \gdef\code@end{}%
- \fi% fin pas de code
- \code@mid
- \ifcode@overhang\tkz@frameltxset{graphicbackground}{\tkz@result}%
- \else
- \tkz@frameset{codebackground}{\tkz@code{\tkz@File@Saved@Name.tex}}%
- \fi
-\tkz@below
-}%
-\else% end of code saved code et result ?
-\def\tkzexample[#1]{%
-\begingroup
-\code@executetrue
-\pgfkeys{/tkzexample/.cd,
- right margin = 0pt,
- left margin = 0pt,
- line frame width = 0,
- inner left margin = 0 pt,
- inner right margin = 0 pt,
- inner top margin = 6 pt,
- inner bottom margin = 0 pt,}
-\pgfqkeys{/tkzexample}{every tkzexample,#1}%
-\parindent0pt
-\begingroup
-%\tkz@above
-\let\do\@makeother
-\dospecials
-\obeylines
-\@vobeyspaces
-\catcode`\%=13 %
-\catcode`\^^M=13 %
-\find@tkzexample}% #1 est tout ce qui se trouve dans l'environnement
-\def\endoftkzexample#1{%
-\endgroup
-\ifcode@execute % et \fcode@save ??
- \setbox\tkzexamplebox=\hbox{%
- {\commenthandler
- \protected@xdef\code@temp{#1}}%
- \catcode`\^^M=9 %
- {\ignorespaces\code@preadd\code@pre
- \expandafter\scantokens\expandafter{\code@temp\ignorespaces}%
- \code@post\code@postadd\ignorespaces}%
- }%
- \ifdim\wd\tkzexamplebox>\tkzexamplewidth
- \def\code@mid{\par}%
- \def\code@width{\linewidth-6pt}%
- \else
- \ifdim\tkz@hsep=0pt
- \def\code@mid{\hfill}%
- \else
- \def\code@mid{\hskip\tkz@hsep}%
- \fi%
- \def\code@width{\linewidth-1.5em-\tkz@hsep-\tkzexamplewidth}%
- \fi%
- \par\noindent
- \ifcode@overhang
- \tkz@frameset{codebackground}{\tkz@code{#1}}%
- \else
- \tkz@frameltxset{graphicbackground}{\tkz@result}%
- \fi
-\else% pas de code execute
- \def\code@mid{}%
- \def\code@width{\linewidth-6pt}%
- \def\code@end{}%
- \fi% fin pas de code
- \code@mid%
- \ifcode@overhang%
- \ifcode@execute\tkz@frameltxset{graphicbackground}{\tkz@result}\fi
- \else%
-\ifcode@execute\tkz@frameset{codebackground}{\tkz@code{#1}}\else
- \par\vskip1em
- \tkz@codesplit{#1}
- %\tkz@frameset{codebackground}{\tkz@code{#1}}%
-\fi
- \fi
- \tkz@below
- \end{tkzexample}%
-}%
-\def\endtkzexample{\endgroup}%
-\fi
-%<--------------------------------------------------------------------------->
-\pgfqkeys{/tkzltxexample}{%
- width/.code = {\setlength\tkzltxexamplewidth{#1}},
- code/.code = {\colorlet{codeonlybackground}{#1}},
- show num/.is if = num@show,
- num/.code = {\num@showtrue\setcounter{code@cnt}{1}},
- global num/.code = {\num@showtrue},
- numcolor/.code = {\colorlet{numcolor}{#1}},
- numbkgcolor/.code = {\colorlet{numbackground}{#1}},
- normal/.code = {\def\code@size{\normalsize}},
- small/.code = {\def\code@size{\small}},
- very small/.code = {\def\code@size{\footnotesize}},
- right margin/.code = {\def\tkz@rightmargin{#1}},
- left margin/.code = {\def\tkz@leftmargin{#1}},
- inner left margin/.code = {\def\tkz@innerleftmargin{#1}},
- inner right margin/.code = {\def\tkz@innerrightmargin{#1}},
- inner top margin/.code = {\def\tkz@innertopmargin{#1}},
- inner bottom margin/.code = {\def\tkz@innerbottommargin{#1}},
- line frame width/.code = {\def\tkz@linewidth{#1}},
- hsep/.code = {\def\tkz@hsep{#1}},
- typeset listing/.code = {#1},
- frame code/.code = {\def\tkz@frameset{\fcolorbox{#1}}},
- ignorespaces/.code = {\let\@gobble@till@return =%
- \@gobble@till@return@ignore},
- leave comments/.code = {\def\code@catcode@hook{\catcode`\%=12}%
- \let\commenthandler=\relax%
- \let\typesetcomment=\relax},
- every tkzltxexample/.style = {width=8cm},
- vbox/.code = {\def\code@preadd{\noindent
- \vbox\bgroup\setlength{\hsize}{\linewidth}}%
- \def\code@postadd{\egroup}}%
-}
-\def\code@size{}%
-% \def\code@pre{}
-\def\code@post{}%
-\def\code@pre{}%
-\def\code@post{}%
-\def\code@catcode@hook{}%
-
-\newdimen\tkzltxexamplewidth
-\newbox\tkzltxexamplebox
-
-\def\tkzltxexample[#1]{%
-\begingroup
-\pgfkeys{/tkzltxexample/.cd,
- right margin = 0pt,
- left margin = 0pt,
- line frame width = 0,
- inner left margin = 0 pt,
- inner right margin = 0 pt,
- inner top margin = 6 pt,
- inner bottom margin = 0 pt,}
-\pgfqkeys{/tkzltxexample}{every tkzltxexample,#1}%
-\parindent0pt
-\begingroup%
-\let\do\@makeother
-\dospecials
-\obeylines
-\@vobeyspaces
-\catcode`\%=13 %
-\catcode`\^^M=13 %
-\code@catcode@hook%
-\relax%
-\find@tkzltxexample}
-\def\endoftkzltxexample#1{%
-\endgroup%
-\def\code@end{}%
-\par\vskip1em
-\tkz@codesplit{#1}%
-\par
-\code@post
-\end{tkzltxexample}%
-}%
-
-\def\endtkzltxexample{\endgroup}
-
-
-
-\newcommand\killienc{}
-\@tempcnta128
-\@whilenum\@tempcnta<\@cclvi\do{%
- \edef\killienc{\killienc\catcode\the\@tempcnta=12}%
- \advance\@tempcnta\@ne}
-
-\def\tkz@ref{\arabic{section}-\arabic{subsection}-\arabic{subsubsection}}
-\def\tkz@File@Saved@Name{\tkzFileSavedPrefix-\tkz@ref}
-\pgfkeys{
-/tkzsavedcode/.cd,
- prefix/.code = {\def\tkzFileSavedPrefix{#1}}}
-
-\newcommand{\tkzSavedCode}[1][]{%
-\pgfkeys{%
-tkzsavedcode/.cd,
- prefix = tkzFile}
-\pgfqkeys{/tkzsavedcode}{#1}
-\renewenvironment{tkzexample}[1][]{%
-\killienc\VerbatimOut{\tkz@File@Saved@Name.tex}}{%
-\endVerbatimOut}}
-
-% \renewenvironment{tkzexample}[1][]{%
-% \killienc \VerbatimOut{tkzeuc-\tkzref.tex}%
-% }{%
-% \endVerbatimOut
-% }
-% \fi
-\endinput