diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tkz-base/tkz-obj-rep.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/tkz-base/tkz-obj-rep.tex | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/tkz-base/tkz-obj-rep.tex b/Master/texmf-dist/tex/latex/tkz-base/tkz-obj-rep.tex new file mode 100644 index 00000000000..d66e9fc8954 --- /dev/null +++ b/Master/texmf-dist/tex/latex/tkz-base/tkz-obj-rep.tex @@ -0,0 +1,62 @@ +% tkz-obj-rep.tex +% Copyright 2011 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.01c} +\def\filedate{2020/01/23} +\typeout{2020/01/23 3.01c 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
\ No newline at end of file |