summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/curve2e/curve2e.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/curve2e/curve2e.dtx')
-rw-r--r--macros/latex/contrib/curve2e/curve2e.dtx19
1 files changed, 12 insertions, 7 deletions
diff --git a/macros/latex/contrib/curve2e/curve2e.dtx b/macros/latex/contrib/curve2e/curve2e.dtx
index b8e7c519c1..d850055244 100644
--- a/macros/latex/contrib/curve2e/curve2e.dtx
+++ b/macros/latex/contrib/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