% tkz-obj-rep.tex
% Copyright 2022 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.

\def\fileversion{4.00}
\def\filedate{2022/01/25 } 
\typeout{2022/01/25  4.01   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