[latex3-commits] [latex3/latex2e] gh1267: adjust docstrip guards, so date only given once in ltfilehooks (baf7a54f)

github at latex-project.org github at latex-project.org
Sun Feb 11 20:41:59 CET 2024


Repository : https://github.com/latex3/latex2e
On branch  : gh1267
Link       : https://github.com/latex3/latex2e/commit/baf7a54f882fad255c6c6a3667d585a2d4438136

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

commit baf7a54f882fad255c6c6a3667d585a2d4438136
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Sun Feb 11 19:41:59 2024 +0000

    adjust docstrip guards, so date only given once in ltfilehooks


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

baf7a54f882fad255c6c6a3667d585a2d4438136
 base/ltfilehook.dtx | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/base/ltfilehook.dtx b/base/ltfilehook.dtx
index 686009b6..cf479688 100644
--- a/base/ltfilehook.dtx
+++ b/base/ltfilehook.dtx
@@ -30,16 +30,21 @@
 %
 %%% From File: ltfilehook.dtx
 %
-%<structuredlog>\providecommand\ltfilehookdate{2024/02/11}
-%<structuredlog>\providecommand\ltfilehookversion{v1.0o}
-%<*driver>
 % \fi
-\ProvidesFile{ltfilehook.dtx}
-             [2024/02/11 v1.0o LaTeX Kernel (hooks)]
+%\iffalse
+%<*driver,structuredlog>
+%\fi
+\def\ltfilehookdate{2024/02/11}
+\def\ltfilehookversion{v1.0o}
+%\iffalse
+%</driver,structuredlog>
+%<*driver>
+%\fi
+\expanded{\noexpand\ProvidesFile{ltfilehook.dtx}
+[\ltfilehookdate\space \ltfilehookversion\space LaTeX Kernel (hooks)]}
 % \iffalse
 %
 \documentclass{l3doc}
-\GetFileInfo{ltfilehook.dtx}
 
 \providecommand\InternalDetectionOff{}
 \providecommand\InternalDetectionOn{}
@@ -63,7 +68,7 @@
 %
 %
 % \title{The \texttt{ltfilehook} documentation\thanks{This code has version
-%    \fileversion\ dated \filedate, \copyright\ \LaTeX\
+%    \ltfilehookversion\ dated \ltfilehookdate, \copyright\ \LaTeX\
 %    Project.}}
 %
 % \author{Frank Mittelbach, Phelype Oleinik, \LaTeX{} Project Team}





More information about the latex3-commits mailing list.