[latex3-commits] [git/LaTeX3-latex3-latex2e] gh479: Define \sourceLaTeXdate in the format, not in latexrelease (2c42f446)

PhelypeOleinik phelype.oleinik at latex-project.org
Wed Mar 17 18:39:57 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : gh479
Link       : https://github.com/latex3/latex2e/commit/2c42f446680fd40a1bce1f9e9255ebc8d40c7288

>---------------------------------------------------------------

commit 2c42f446680fd40a1bce1f9e9255ebc8d40c7288
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Wed Mar 17 14:39:57 2021 -0300

    Define \sourceLaTeXdate in the format, not in latexrelease


>---------------------------------------------------------------

2c42f446680fd40a1bce1f9e9255ebc8d40c7288
 base/latexrelease.dtx | 11 ++++++-----
 base/ltvers.dtx       | 12 ++++++++++++
 2 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/base/latexrelease.dtx b/base/latexrelease.dtx
index d15b4003..e9b30df3 100644
--- a/base/latexrelease.dtx
+++ b/base/latexrelease.dtx
@@ -392,11 +392,12 @@
 % \begin{macro}{\sourceLaTeXdate}
 %   \changes{v1.0l}{2021/01/23}{\cs{sourceLaTeXdate} added}
 %   Store the original \LaTeX{} format version
-%   as a number in the format |YYYYMMDD|:
-%    \begin{macrocode}
-\edef\sourceLaTeXdate{%
-  \expandafter\@parse at version\fmtversion//00\@nil}
-%    \end{macrocode}
+%   as a number in the format |YYYYMMDD|.  This macro is
+%   defined in \file{ltvers.dtx} because it has to reflect
+%   the \emph{real} source \LaTeX{} date, not the format date
+%   in force when loading \file{latexrelease.sty} (they may
+%   differ if \file{latexrelease.sty} is being loaded a
+%   second time).
 % \end{macro}
 %
 % \begin{macro}{\IncludeInRelease}
diff --git a/base/ltvers.dtx b/base/ltvers.dtx
index 69cb482d..8e75df24 100644
--- a/base/ltvers.dtx
+++ b/base/ltvers.dtx
@@ -213,6 +213,18 @@
 %</2ekernel>
 %    \end{macrocode}
 %
+% \begin{macro}{\sourceLaTeXdate}
+%   \changes{v1.0l}{2021/01/23}{\cs{sourceLaTeXdate} added}
+%   Store the original \LaTeX{} format version
+%   as a number in the format |YYYYMMDD|:
+%    \begin{macrocode}
+%<*2ekernel>
+\def\reserved at a#1-#2-#3-{#1#2#3}
+\edef\sourceLaTeXdate{\expandafter\reserved at a\fmtversion- }
+%</2ekernel>
+%    \end{macrocode}
+% \end{macro}
+%
 % \begin{macro}{\IncludeInRelease}
 % \begin{macro}{\EndIncludeInRelease}
 % \begin{macro}{\@IncludeInRelease}





More information about the latex3-commits mailing list.