1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
% tkz-obj-rep.tex
% Copyright 2020 by Alain Matthes
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
\def\fileversion{3.02c}
\def\filedate{2020/01/24}
\typeout{2020/01/24 3.02c tkz-obj-rep.tex}
\makeatletter
%<--------------------------------------------------------------------------–>
% repère
%<--------------------------------------------------------------------------–>
\pgfkeys{/tkzRep/.cd,
line width/.store in = \tkz@Rep@lw,
xlabel/.store in = \tkz@Rep@xlabel,
ylabel/.store in = \tkz@Rep@ylabel,
posxlabel/.store in = \tkz@Rep@posxlabel,
posylabel/.store in = \tkz@Rep@posylabel,
xnorm/.store in = \tkz@Rep@xnorm,
ynorm/.store in = \tkz@Rep@ynorm,
color/.store in = \tkz@Rep@color,
colorlabel/.store in = \tkz@Rep@colorlabel,
line width = \tkz@sur@lw,
xlabel = $\vec{\imath}$,
ylabel = $\vec{\jmath}$,
posxlabel = \tkz@sur@posxlabel,
posylabel = \tkz@sur@posylabel,
xnorm = 1,
ynorm = 1,
color = \tkz@sur@color,% remove ?
colorlabel = \tkz@sur@colorlabel,
/tkzRep/.search also={/tikz},
}
%<--------------------------------------------------------------------------–>
\def\tkzRep{\pgfutil@ifnextchar[{\tkz@Rep}{%
\tkz@Rep[]}}
\def\tkz@Rep[#1]{%
\pgfqkeys{/tkzRep}{#1}
\begingroup
\protected@edef\tkz@temp{%
\noexpand\draw [ line width=\tkz@Rep@lw,
color=\tkz@Rep@color,
rep style]%
(0,0) to node[\tkz@Rep@posylabel,
color = \tkz@Rep@colorlabel,
node contents={\tkz@Rep@ylabel}]}\tkz@temp%
{}(0,\tkz@Rep@ynorm);
\protected@edef\tkz@temp{%
\noexpand \draw [ line width=\tkz@Rep@lw,
color=\tkz@Rep@color,
rep style]%
(0,0) to node[ \tkz@Rep@posxlabel,
color = \tkz@Rep@colorlabel,
node contents={\tkz@Rep@xlabel}]}\tkz@temp%
{}(\tkz@Rep@xnorm,0);
\endgroup
}
%<--------------------------------------------------------------------------–>
\makeatother
\endinput
|