summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/curve2e
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-12-06 23:10:56 +0000
committerKarl Berry <karl@freefriends.org>2019-12-06 23:10:56 +0000
commitf5e4137812d5ed637168b8881c1ae68470d4f4f3 (patch)
treed63cbfb983b771a9b574b7f4ee6ec557ffe596ce /Master/texmf-dist/source/latex/curve2e
parent0618ebba9c0e02e9523bcbcedd498e4738c5969d (diff)
curve2e (7dec19)
git-svn-id: svn://tug.org/texlive/trunk@53042 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/curve2e')
-rw-r--r--Master/texmf-dist/source/latex/curve2e/curve2e.dtx19
1 files changed, 12 insertions, 7 deletions
diff --git a/Master/texmf-dist/source/latex/curve2e/curve2e.dtx b/Master/texmf-dist/source/latex/curve2e/curve2e.dtx
index b8e7c519c1d..d8500552442 100644
--- a/Master/texmf-dist/source/latex/curve2e/curve2e.dtx
+++ b/Master/texmf-dist/source/latex/curve2e/curve2e.dtx
@@ -47,7 +47,7 @@ README.txt and curve2e-v161.sty.
%<+package>\ProvidesPackage{curve2e}%
%<+readme>File README.txt for package curve2e
%<*package|readme>
- [2019-11-30 v.2.0.6 Extension package for pict2e]
+ [2019-12-06 v.2.0.7 Extension package for pict2e]
%</package|readme>
%<*driver>
\documentclass{ltxdoc}\errorcontextlines=9
@@ -110,7 +110,7 @@ README.txt and curve2e-v161.sty.
%</driver>
% \fi
%
-% \CheckSum{5593}
+% \CheckSum{5592}
% \begin{abstract}
% This file documents the |curve2e| extension package to the |pict2e|
% bundle implementation; the latter was described by Lamport
@@ -1576,14 +1576,19 @@ README.txt and curve2e-v161.sty.
% Since we already loaded package|xfp| or at least we explicitly load it
% in our preamble, we add, if not already defined by the package, the two
% new commands that allow to make floating point tests, and to implement
-% a “while” cycle
+% a “while” cycle\footnote{Thanks to Brian Dunn who spotted a bug in
+% the previous definitions.}
% \begin{macrocode}
-\AtBeginDocument{\@ifpackageloaded{xfp}{%
+%
\ExplSyntaxOn
-\ProvideExpandableDocumentCommand\fptest{m}{\fp_compare:nTF{#1}}
-\ProvideExpandableDocumentCommand\fpdowhile{m m}{\fp_do_while:nn{#1}{#2}}
+\AtBeginDocument{%
+\ProvideExpandableDocumentCommand\fptest{m m m}{%
+ \fp_compare:nTF{#1}{#2}{#3}}
+\ProvideExpandableDocumentCommand\fpdowhile{m m}{%
+ \fp_do_while:nn{#1}{#2}}
+}
\ExplSyntaxOff
-}{}}
+
% \end{macrocode}
%
% The next macros are just for debugging. With the \texttt{trace} package