[latex3-commits] [git/LaTeX3-latex3-latex3] gh-2e-711: prepare for xfp commands to be added to 2e kernel (a24069433)
Frank Mittelbach
frank.mittelbach at latex-project.org
Tue Nov 30 23:35:31 CET 2021
Repository : https://github.com/latex3/latex3
On branch : gh-2e-711
Link : https://github.com/latex3/latex3/commit/a24069433fe2c007fa5e2c2536582a050a8f2480
>---------------------------------------------------------------
commit a24069433fe2c007fa5e2c2536582a050a8f2480
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Tue Nov 30 23:35:31 2021 +0100
prepare for xfp commands to be added to 2e kernel
>---------------------------------------------------------------
a24069433fe2c007fa5e2c2536582a050a8f2480
l3packages/CHANGELOG.md | 4 ++++
l3packages/README.md | 4 +++-
l3packages/xfp/xfp.dtx | 16 ++++++++++++----
3 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/l3packages/CHANGELOG.md b/l3packages/CHANGELOG.md
index a5a54eeed..4891494ab 100644
--- a/l3packages/CHANGELOG.md
+++ b/l3packages/CHANGELOG.md
@@ -7,6 +7,10 @@ this project uses date-based 'snapshot' version identifiers.
## [Unreleased]
+### Changed
+- Use `\ProvideExp...` in `xfp` because the package will soon no longer be needed
+ and just remains so that old documents still compile correctly.
+
## [2021-11-12]
### Added
diff --git a/l3packages/README.md b/l3packages/README.md
index d71cfcc58..6a87f5d44 100644
--- a/l3packages/README.md
+++ b/l3packages/README.md
@@ -21,7 +21,7 @@ updated at the same time.
Currently included in the CTAN release of `l3packages` are the following
bundles:
* `l3keys2e`
-* `xfp`
+* `xfp` (from 2022-06-01 part of the LaTeX format)
* `xfrac`
* `xparse`
* `xtemplate`
@@ -42,6 +42,8 @@ FPU. As such, it is a wrapper around the core `\fp_eval:n` function
but does not require code syntax. It provides the expandable command
`\fpeval`, which can be used inside for example `\edef` or contexts
where TeX requires a number.
+From 2022-06-01 release if LaTeX this will be included in the format
+so that the package doesn't need loading any longer.
`xfrac`
-------
diff --git a/l3packages/xfp/xfp.dtx b/l3packages/xfp/xfp.dtx
index c3ba90bb1..ae40fcfb1 100644
--- a/l3packages/xfp/xfp.dtx
+++ b/l3packages/xfp/xfp.dtx
@@ -69,6 +69,11 @@
%
% \begin{documentation}
%
+% The two functions provided by this package are part of the \LaTeX{}
+% format starting with 2022-06-01 release. This package is
+% therefore no longer needed and only provided to be able to
+% process older documents loading.
+%
% This package provides a \LaTeXe{} document-level interface to the \LaTeX{}3
% floating point unit (part of \pkg{expl3}). It also provides a parallel
% integer expression interface for convenience.
@@ -166,21 +171,24 @@
% \end{macrocode}
%
% \begin{macrocode}
-\ProvidesExplPackage{xfp}{2021-11-12}{}
+\ProvidesExplPackage{xfp}{2021-11-30}{}
{L3 Floating point unit}
% \end{macrocode}
%
% \begin{macro}{\fpeval}
-% A document level wrapper around the code level function.
+% A document level wrapper around the code level function. This
+% definition will be moved to the \LaTeXe{} format so we just
+% ``provide'' it in case this package gets loaded in documents
+% processed with a new format.
% \begin{macrocode}
-\NewExpandableDocumentCommand \fpeval { m } { \fp_eval:n {#1} }
+\ProvideExpandableDocumentCommand \fpeval { m } { \fp_eval:n {#1} }
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\inteval}
% A second one, this time around an \eTeX{} primitive.
% \begin{macrocode}
-\NewExpandableDocumentCommand \inteval { m } { \int_eval:n {#1} }
+\ProvideExpandableDocumentCommand \inteval { m } { \int_eval:n {#1} }
% \end{macrocode}
% \end{macro}
%
More information about the latex3-commits
mailing list.