summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tkz-base/tkz-obj-grids.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-01-04 22:30:53 +0000
committerKarl Berry <karl@freefriends.org>2022-01-04 22:30:53 +0000
commit2826ceba9c796e6ec935ff71098328b0042b3ff3 (patch)
tree254ae6dcd883e55308b733164f8e0445590e3ea6 /Master/texmf-dist/tex/latex/tkz-base/tkz-obj-grids.tex
parent3886457c768d0a6fd86ca3aa7139026e39ef5724 (diff)
tkz-base (4jan22)
git-svn-id: svn://tug.org/texlive/trunk@61495 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tkz-base/tkz-obj-grids.tex')
-rw-r--r--Master/texmf-dist/tex/latex/tkz-base/tkz-obj-grids.tex60
1 files changed, 28 insertions, 32 deletions
diff --git a/Master/texmf-dist/tex/latex/tkz-base/tkz-obj-grids.tex b/Master/texmf-dist/tex/latex/tkz-base/tkz-obj-grids.tex
index 9330d547233..1aad063addf 100644
--- a/Master/texmf-dist/tex/latex/tkz-base/tkz-obj-grids.tex
+++ b/Master/texmf-dist/tex/latex/tkz-base/tkz-obj-grids.tex
@@ -1,5 +1,5 @@
% tkz-obj-grids.tex
-% Copyright 2020 Alain Matthes
+% 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.
@@ -7,24 +7,21 @@
% 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-grids.tex}
+\def\fileversion{4.00}
+\def\filedate{2022/01/04}
+\typeout{2022/01/04 4.00 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
+ 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[]}}
@@ -39,22 +36,22 @@
% tkzGrid
%<--------------------------------------------------------------------------–>
\pgfkeys{/tkzGrid/.cd,
- color/.code = {\def\tkz@gd@color{#1}%
- \edef\tkz@gd@subcolor{%
- \tkz@gd@color!\tkzCoeffSubColor}},
- subxstep/.store in = {\tkz@gd@subxstep},
- subystep/.store in = {\tkz@gd@subystep},
- ratio/.store in = {\tkz@gd@ratio},
- line width/.code = {\edef\tkz@gd@lw{#1}
- \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,
+ color/.code = {\def\tkz@gd@color{#1}%
+ \edef\tkz@gd@subcolor{%
+ \tkz@gd@color!\tkzCoeffSubColor}},
+ subxstep/.store in = {\tkz@gd@subxstep},
+ subystep/.store in = {\tkz@gd@subystep},
+ ratio/.store in = {\tkz@gd@ratio},
+ line width/.code = {\edef\tkz@gd@lw{#1}
+ \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},
}
%<--------------------------------------------------------------------------–>
@@ -64,10 +61,10 @@
\def\tkz@@Grid[#1](#2,#3)(#4,#5){%
\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}}
- \edef\tkz@gya{\fpeval{(#3-\tkz@init@yorigine)/\tkz@init@ystep}}
- \edef\tkz@gyb{\fpeval{(#5-\tkz@init@yorigine)/\tkz@init@ystep}}
+ \edef\tkz@gxa{\fpeval{(#2-\tkz@init@xorigine)/\tkz@init@xstep}}
+ \edef\tkz@gxb{\fpeval{(#4-\tkz@init@xorigine)/\tkz@init@xstep}}
+ \edef\tkz@gya{\fpeval{(#3-\tkz@init@yorigine)/\tkz@init@ystep}}
+ \edef\tkz@gyb{\fpeval{(#5-\tkz@init@yorigine)/\tkz@init@ystep}}
\iftkz@gd@sub%
\edef\@subxstep{\fpeval{\tkz@gd@subxstep/\tkz@init@xstep}}%
\edef\@subystep{\fpeval{\tkz@gd@subystep/\tkz@init@ystep}}%
@@ -82,6 +79,5 @@
(\tkz@gxa,\tkz@gya) grid (\tkz@gxb,\tkz@gyb);%
\endgroup
}%
- %<--------------------------------------------------------------------------–>
\makeatother
\endinput \ No newline at end of file