diff options
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.tex | 34 |
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 |