Debian Codegraph @

texmf-dist/tex/latex/tkz-base/tkz-tools-modules.tex

raw
1 % tkz-tools-modules
2 % Copyright 2024 Alain Matthes
3 % This work may be distributed and/or modified under the
4 % conditions of the LaTeX Project Public License, either version 1.3
5 % of this license or (at your option) any later version.
6 % The latest version of this license is in
7 % http://www.latex-project.org/lppl.txt
8 % and version 1.3 or later is part of all distributions of LaTeX
9 % version 2005/12/01 or later.
10 % This work has the LPPL maintenance status “maintained”.
11 % The Current Maintainer of this work is Alain Matthes.
12
13 \def\fileversion{4.21c}
14 \def\filedate{2024/01/16}
15 \typeout{2024/01/16 4.21c tkz-tools-modules.tex}
16 \makeatletter
17 %<------------- % chargement des modules ---------------------------------->
18 \def\tkz@obj@all{angles,arcs,compass,defcircles,deflines,defpoints,defpointsby,defpointsrnd,defpointswith,polygons,protractor,sectors,show,triangles}%
19 \def\tkz@obj@txt{all}
20 \def\usetkzobj{\pgfutil@ifnextchar[{\use@usetkzobj}{\use@@usetkzobj}}%}
21 \def\use@usetkzobj[#1]{\use@@usetkzobj{#1}}
22 \def\use@@usetkzobj#1{%
23 \def\tkz@list{#1}
24 \ifx\tkz@obj@txt\tkz@list \edef\tkz@list{\tkz@obj@all}%
25 \else
26 \edef\tkz@list{#1}%
27 \fi
28 \pgfutil@for\tkz@temp:=\tkz@list\do{%
29 \expandafter\ifx\csname tkz@library@\tkz@temp @loaded\endcsname\relax%
30 \expandafter\global\expandafter\let\csname tkz@library@\tkz@temp @loaded\endcsname=\pgfutil@empty%
31 \expandafter\edef\csname tkz@obj@#1@atcode\endcsname{\the\catcode`\@}
32 \expandafter\edef\csname tkz@obj@#1@barcode\endcsname{\the\catcode`\|}
33 \catcode`\@=11
34 \catcode`\|=12
35 \input tkz-obj-\[email protected]
36 \catcode`\@=\csname tkz@obj@#1@atcode\endcsname
37 \catcode`\|=\csname tkz@obj@#1@barcode\endcsname
38 \fi%
39 }%
40 }%
41 %<---------------------------------------------------------–>
42 \def\tkz@tool@all{math-xfp}
43 \def\tkz@tool@txt{all}
44
45 \def\usetkztool{\pgfutil@ifnextchar[{\use@usetkztool}{\use@@usetkztool}}%}
46 \def\use@usetkztool[#1]{\use@@usetkztool{#1}}
47 \def\use@@usetkztool#1{%
48 \def\tkz@list{#1}
49 \ifx\tkz@tool@txt\tkz@list \edef\tkz@list{\tkz@tool@all}%
50 \else
51 \edef\tkz@list{#1}%
52 \fi
53 \pgfutil@for\tkz@temp:=\tkz@list\do{%
54 \expandafter\ifx\csname tkz@library@\tkz@temp @loaded\endcsname\relax%
55 \expandafter\global\expandafter\let\csname tkz@library@\tkz@temp @loaded\endcsname=\pgfutil@empty%
56 \expandafter\edef\csname tkz@tool@#1@atcode\endcsname{\the\catcode`\@}
57 \expandafter\edef\csname tkz@tool@#1@barcode\endcsname{\the\catcode`\|}
58 \catcode`\@=11
59 \catcode`\|=12
60 \input tkz-tools-\[email protected]
61 \catcode`\@=\csname tkz@tool@#1@atcode\endcsname
62 \catcode`\|=\csname tkz@tool@#1@barcode\endcsname
63 \fi%
64 }%
65 }%
66 \makeatother
67 \endinput