[latex3-commits] [git/LaTeX3-latex3-latex2e] lthooks2: Track changes to \include (199a4757)

PhelypeOleinik tex.phelype at gmail.com
Tue Aug 18 06:24:49 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : lthooks2
Link       : https://github.com/latex3/latex2e/commit/199a4757f39b2cc8f292d93b7210bea70014256c

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

commit 199a4757f39b2cc8f292d93b7210bea70014256c
Author: PhelypeOleinik <tex.phelype at gmail.com>
Date:   Tue Aug 18 01:24:49 2020 -0300

    Track changes to \include


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

199a4757f39b2cc8f292d93b7210bea70014256c
 base/ltxdoc.dtx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/base/ltxdoc.dtx b/base/ltxdoc.dtx
index 992de3a3..24f70847 100644
--- a/base/ltxdoc.dtx
+++ b/base/ltxdoc.dtx
@@ -437,7 +437,8 @@
   \ifnum\@auxout=\@partaux
     \@latexerr{\string\include\space cannot be nested}\@eha
   \else
-    \set at curr@file at trim@spaces{#1}%
+    \set at curr@file{#1}%
+    \edef\@curr at file{\@strip at tex@ext\@curr at file}%
     \expandafter\@docinclude\expandafter{\@curr at file}
  \fi}
 \def\@docinclude#1 {\clearpage
@@ -447,6 +448,7 @@
 \if at tempswa \let\@auxout\@partaux \if at filesw
 \immediate\openout\@partaux "#1.aux"
 \immediate\write\@partaux{\relax}\fi
+\@filehook at set@CurrentFile
 %    \end{macrocode}
 % We need to save (and later restore) various index-related
 % commands which might be changed by the included file.





More information about the latex3-commits mailing list.