% 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