summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tkz/tkz-base/latex/tkz-obj-rep.tex
blob: 0698c963fd131296c781d62b342e42f398a41d37 (plain)
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
63
64
65
66
67
68
69
% tkz-obj-rep.tex
% 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.
%  utf8 encoding
\def\fileversion{3.06c}
\def\filedate{2020/03/18} 
\typeout{2020/03/18 3.06c  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