Debian Codegraph @

texmf-dist/tex/latex/tkz-base/tkz-obj-rep.tex

raw
1 % tkz-obj-rep.tex
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-obj-rep.tex}
16 \makeatletter
17 %<--------------------------------------------------------------------------–>
18 % repère
19 %<--------------------------------------------------------------------------–>
20 \pgfkeys{/tkzRep/.cd,
21 line width/.store in = \tkz@Rep@lw,
22 xlabel/.store in = \tkz@Rep@xlabel,
23 ylabel/.store in = \tkz@Rep@ylabel,
24 posxlabel/.store in = \tkz@Rep@posxlabel,
25 posylabel/.store in = \tkz@Rep@posylabel,
26 xnorm/.store in = \tkz@Rep@xnorm,
27 ynorm/.store in = \tkz@Rep@ynorm,
28 color/.store in = \tkz@Rep@color,
29 colorlabel/.store in = \tkz@Rep@colorlabel,
30 line width = \tkz@sur@lw,
31 xlabel = $\vec{\imath}$,
32 ylabel = $\vec{\jmath}$,
33 posxlabel = \tkz@sur@posxlabel,
34 posylabel = \tkz@sur@posylabel,
35 xnorm = 1,
36 ynorm = 1,
37 color = \tkz@sur@color,% remove ?
38 colorlabel = \tkz@sur@colorlabel,
39 /tkzRep/.search also={/tikz},
40 }
41 %<--------------------------------------------------------------------------–>
42 \def\tkzRep{\pgfutil@ifnextchar[{\tkz@Rep}{%
43 \tkz@Rep[]}}
44 \def\tkz@Rep[#1]{%
45 \pgfqkeys{/tkzRep}{#1}
46 \begingroup
47 \protected@edef\tkz@temp{%
48 \noexpand\draw [ line width=\tkz@Rep@lw,
49 color=\tkz@Rep@color,
50 rep style]%
51 (0,0) to node[\tkz@Rep@posylabel,
52 color = \tkz@Rep@colorlabel,
53 node contents={\tkz@Rep@ylabel}]}\tkz@temp%
54 {}(0,\tkz@Rep@ynorm);
55 \protected@edef\tkz@temp{%
56 \noexpand \draw [ line width=\tkz@Rep@lw,
57 color=\tkz@Rep@color,
58 rep style]%
59 (0,0) to node[ \tkz@Rep@posxlabel,
60 color = \tkz@Rep@colorlabel,
61 node contents={\tkz@Rep@xlabel}]}\tkz@temp%
62 {}(\tkz@Rep@xnorm,0);
63 \endgroup
64 }
65 %<--------------------------------------------------------------------------–>
66 \makeatother
67 \endinput