summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tkz/tkz-base/latex/tkz-obj-grids.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-02-07 03:01:03 +0000
committerNorbert Preining <norbert@preining.info>2020-02-07 03:01:03 +0000
commit9c4a09ca6a4130e71ba545412319aaee3c618460 (patch)
tree52b4c3ee8dc02613fc8ce4faffe5292e10e5d10a /macros/latex/contrib/tkz/tkz-base/latex/tkz-obj-grids.tex
parente684f0597e24a1d09af301d82b340b2df7cf2080 (diff)
CTAN sync 202002070301
Diffstat (limited to 'macros/latex/contrib/tkz/tkz-base/latex/tkz-obj-grids.tex')
-rw-r--r--macros/latex/contrib/tkz/tkz-base/latex/tkz-obj-grids.tex40
1 files changed, 20 insertions, 20 deletions
diff --git a/macros/latex/contrib/tkz/tkz-base/latex/tkz-obj-grids.tex b/macros/latex/contrib/tkz/tkz-base/latex/tkz-obj-grids.tex
index f2bd6a5ffc..46892db8e2 100644
--- a/macros/latex/contrib/tkz/tkz-base/latex/tkz-obj-grids.tex
+++ b/macros/latex/contrib/tkz/tkz-base/latex/tkz-obj-grids.tex
@@ -1,27 +1,27 @@
% tkz-obj-grids.tex
-% Copyright 2011 by Alain Matthes
+% 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.
% utf8 encoding
-\def\fileversion{3.01c}
-\def\filedate{2020/01/23}
-\typeout{2020/01/23 3.01c tkz-obj-grids.tex}
+\def\fileversion{3.02c}
+\def\filedate{2020/01/24}
+\typeout{2020/01/24 3.02c tkz-obj-grids.tex}
\makeatletter
%<--------------------------------------------------------------------------–>
% Setup Grid
%<--------------------------------------------------------------------------–>
-\pgfkeys{/@tkzsugrid/.cd,
- line width/.store in = \tkz@sug@lw,
- color/.store in = \tkz@sug@color,
- line width = \tkz@grid@lw,
- color = \tkz@grid@color
+\pgfkeys{/tkzsugrid/.cd,
+ line width/.store in = \tkz@sug@lw,
+ color/.store in = \tkz@sug@color,
+ line width = \tkz@grid@lw,
+ color = \tkz@grid@color
}
\def\tkzSetUpGrid{\pgfutil@ifnextchar[{\tkz@SetUpGrid}{\tkz@SetUpGrid[]}}
\def\tkz@SetUpGrid[#1]{%
\begingroup
-\pgfqkeys{/@tkzsugrid}{#1}
+\pgfqkeys{/tkzsugrid}{#1}
\global\let\tkz@grid@lw\tkz@sug@lw
\global\let\tkz@grid@color\tkz@sug@color
\endgroup
@@ -29,10 +29,10 @@
%<--------------------------------------------------------------------------–>
% tkzGrid
%<--------------------------------------------------------------------------–>
-\pgfkeys{/@tkzGrid/.cd,
+\pgfkeys{/tkzGrid/.cd,
color/.code = {\def\tkz@gd@color{#1}%
\edef\tkz@gd@subcolor{%
- \tkz@gd@color!\tkzCoeffSubColor}},
+ \tkz@gd@color!\tkzCoeffSubColor}},
subxstep/.store in = {\tkz@gd@subxstep},
subystep/.store in = {\tkz@gd@subystep},
ratio/.store in = {\tkz@gd@ratio},
@@ -40,20 +40,20 @@
\edef\tkz@gd@sublw{\tkz@gd@ratio\tkz@gd@lw}},
sub/.is if = tkz@gd@sub,
sub/.default = true ,
- sub = false,
- color = \tkz@grid@color,
- ratio = 0.75,
- subxstep = \tkz@grid@xstep,
- subystep = \tkz@grid@ystep,
- line width = \tkz@grid@lw,
- /@tkzGrid/.search also = {/tikz},
+ sub = false,
+ color = \tkz@grid@color,
+ ratio = 0.75,
+ subxstep = \tkz@grid@xstep,
+ subystep = \tkz@grid@ystep,
+ line width = \tkz@grid@lw,
+ /tkzGrid/.search also= {/tikz},
}
%<--------------------------------------------------------------------------–>
\def\tkzGrid{\pgfutil@ifnextchar[{\tkz@Grid}{\tkz@Grid[]}}
\def\tkz@Grid[#1]{\@ifnextchar({\tkz@@Grid[#1]}%
{\tkz@@Grid[#1](\tkz@tmp@xa,\tkz@tmp@ya)(\tkz@tmp@xb,\tkz@tmp@yb)}}
\def\tkz@@Grid[#1](#2,#3)(#4,#5){%
- \pgfqkeys{/@tkzGrid}{#1}
+ \pgfqkeys{/tkzGrid}{#1}
\begingroup
\edef\tkz@gxa{\fpeval{(#2-\tkz@init@xorigine)/\tkz@init@xstep}}
\edef\tkz@gxb{\fpeval{(#4-\tkz@init@xorigine)/\tkz@init@xstep}}