[latex3-commits] [git/LaTeX3-latex3-latex2e] gh944: documentation updates (fa96ddc3)
Frank Mittelbach
frank.mittelbach at latex-project.org
Mon Nov 7 10:50:45 CET 2022
Repository : https://github.com/latex3/latex2e
On branch : gh944
Link : https://github.com/latex3/latex2e/commit/fa96ddc3d67d0e43f43978839cd80b4da3b27385
>---------------------------------------------------------------
commit fa96ddc3d67d0e43f43978839cd80b4da3b27385
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Mon Nov 7 10:50:45 2022 +0100
documentation updates
>---------------------------------------------------------------
fa96ddc3d67d0e43f43978839cd80b4da3b27385
base/changes.txt | 9 +++++++++
base/ltvers.dtx | 12 +++++++++---
2 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index 0ae9b55c..f226c9a1 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -10,6 +10,15 @@ are not part of the distribution.
All changes above are only part of the development branch for the next release.
================================================================================
+2022-11-07 Frank Mittelbach <Frank.Mittelbach at latex-project.org>
+
+ * ltvers.dtx (section{Version Identification}):
+ Store release data in \LaTeXReleaseInfo for reuse at the end of
+ the .log file (gh/944)
+
+ * ltmiscen.dtx (subsection{Environments}): Add to a hook in
+ \end{document} to (re)display the LaTeX release information (gh/944)
+
#########################
# 2022-11-01 Release
#########################
diff --git a/base/ltvers.dtx b/base/ltvers.dtx
index 573093f8..2aa3dd6e 100644
--- a/base/ltvers.dtx
+++ b/base/ltvers.dtx
@@ -179,13 +179,19 @@
% \changes{v1.0v}{2015/08/23}{Allow negative patchlevel for pre-release}
% \changes{v1.1e}{2020/01/31}{Allow for upcoming format as pre-release 0}
% \changes{v1.1j}{2022/11/06}{Repeat release info at the end (gh/944)}
+%
+% We store release info in the toks \cs{LaTeXReleaseInfo} to be
+% used in \cs{everyjob} but also when \verb=\end{document}= is
+% executed.
+% Instead of using \cs{typeout} we use \cs{show at release@info} so
+% that we can write to the log only by changing that to \cs{wlog}.
% \begin{macrocode}
-
\newtoks\LaTeXReleaseInfo
\everyjob\expandafter{\the\everyjob\the\LaTeXReleaseInfo}
\let\show at release@info\typeout
-
-
+% \end{macrocode}
+%
+% \begin{macrocode}
\ifnum0\ifnum\patch at level=0 \ifx\development at branch@name\@empty 1\fi\fi>0 %
\LaTeXReleaseInfo\expandafter{\the\LaTeXReleaseInfo
\show at release@info{\fmtname\space <\fmtversion>}}
More information about the latex3-commits
mailing list.