summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tkz-base/tkz-tools-arith.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-01-24 21:42:09 +0000
committerKarl Berry <karl@freefriends.org>2020-01-24 21:42:09 +0000
commitd5adeaeb325c83b945dd89cac45b12a7410fd32d (patch)
tree5c8d765869ef8d8b5341843be54425b273a7e36b /Master/texmf-dist/tex/latex/tkz-base/tkz-tools-arith.tex
parentd5e02a3c654b675d1b86fc22a822fa03d884d1e2 (diff)
tkz-base (24jan20)
git-svn-id: svn://tug.org/texlive/trunk@53530 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tkz-base/tkz-tools-arith.tex')
-rw-r--r--Master/texmf-dist/tex/latex/tkz-base/tkz-tools-arith.tex34
1 files changed, 13 insertions, 21 deletions
diff --git a/Master/texmf-dist/tex/latex/tkz-base/tkz-tools-arith.tex b/Master/texmf-dist/tex/latex/tkz-base/tkz-tools-arith.tex
index 01e858d052a..296c53fe348 100644
--- a/Master/texmf-dist/tex/latex/tkz-base/tkz-tools-arith.tex
+++ b/Master/texmf-dist/tex/latex/tkz-base/tkz-tools-arith.tex
@@ -1,27 +1,25 @@
+% tkz-tools-arith.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{1.161 d}
-\def\filedate{2018/09/19}
+\def\fileversion{3.01c}
+\def\filedate{2020/01/23}
+\typeout{2020/01/23 3.01c tkz-tools-arith.tex}
% 1.161 test if "isfactor" is already defined
-
+% now with pgf 3.0 gcd isprime isodd iseven are defined
%<--------------------------------------------------------------------------–>
% Objet : tools for arithmetic
%<--------------------------------------------------------------------------–>
% [About integers numbers]
%<--------------------------------------------------------------------------–>
-\ProvidesFile{tkz-tool-arith.tex}[tkz-tool-arith 1.161 d]
-\edef\tkzAtCode{\the\catcode`\@}
-\catcode`\@=11\relax
+\ProvidesFile{tkz-tool-arith.tex}[tkz-tool-arith 3.00 c]
+% \edef\tkzAtCode{\the\catcode`\@}
+% \catcode`\@=11\relax
+\makeatletter
%<--------------------------------------------------------------------------–>
% arithmetic tools
%<--------------------------------------------------------------------------–>
-
\tkzutil@ifundefined{pgfmath@function@gcd}{%
\pgfmathdeclarefunction{gcd}{2}{%
\begingroup%
@@ -51,10 +49,7 @@
}
}{}
%<--------------------------------------------------------------------------->
-
\tkzutil@ifundefined{pgfmath@function@isprime}{%
-\newif\ifpgf@unknown
-\newif\ifpgf@isaprime
\pgfmathdeclarefunction{isprime}{1}{%
\begingroup%
\pgf@unknowntrue
@@ -180,7 +175,6 @@
\tkz@find@next
}%
%<--------------------------------------------------------------------------->
-%<--------------------------------------------------------------------------->
\def\tkzReducFrac#1#2{%
\begingroup
\ifnum#1<0\relax%
@@ -201,14 +195,12 @@
\divide\c@pgfmath@counta by\c@pgfmath@countc%
\divide\c@pgfmath@countb by\c@pgfmath@countc%
\fi
-\global\edef\tkzMathFirstResult{\the\c@pgfmath@counta}
-\global\edef\tkzMathSecondResult{\the\c@pgfmath@countb}
+\xdef\tkzMathFirstResult{\the\c@pgfmath@counta}
+\xdef\tkzMathSecondResult{\the\c@pgfmath@countb}
\endgroup}
%<--------------------------------------------------------------------------->
-%<--------------------------------------------------------------------------->
-%<--------------------------------------------------------------------------->
-
-\catcode`\@=\tkzAtCode\relax
+%\catcode`\@=\tkzAtCode\relax
+\makeatother
\endinput