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

github at latex-project.org github at latex-project.org
Sun Feb 11 21:32:34 CET 2024


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/77bfb01034a64c4c7f3bd731fbef19f42235a282

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

commit 77bfb01034a64c4c7f3bd731fbef19f42235a282
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


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

77bfb01034a64c4c7f3bd731fbef19f42235a282
 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.