[latex3-commits] [git/LaTeX3-latex3-latex2e] cmd: Document \sourceLaTeXdate (f4203493)

PhelypeOleinik phelype.oleinik at latex-project.org
Mon Jan 25 01:43:02 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : cmd
Link       : https://github.com/latex3/latex2e/commit/f4203493e5f0a73fe4f995515931d9662ca3447a

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

commit f4203493e5f0a73fe4f995515931d9662ca3447a
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Sun Jan 24 21:43:02 2021 -0300

    Document \sourceLaTeXdate


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

f4203493e5f0a73fe4f995515931d9662ca3447a
 base/latexrelease.dtx | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/base/latexrelease.dtx b/base/latexrelease.dtx
index 14681bee..cfcac4b3 100644
--- a/base/latexrelease.dtx
+++ b/base/latexrelease.dtx
@@ -147,6 +147,12 @@
 % does not use the implicit date.
 % \end{itemize}
 %
+% In all cases, when the package is loaded, the |\sourceLaTeXdate| is
+% defined to be the numerical representation of |\fmtversion| before the
+% rollback/forward actually happens, so it is possible to test from which
+% was the original \LaTeX{} version before \Lpack{latexrelease} was loaded.
+% This is particularly useful when some code in a package has to be
+% redefined differently if rolling backwards in time or forwards.
 %
 % \section{Release Specific Code}
 %





More information about the latex3-commits mailing list.