[latex3-commits] [git/LaTeX3-latex3-latex2e] gh444: drop spurious brace in tracefnt package code adjust test loading tracefnt (0177d350)

Frank Mittelbach frank.mittelbach at latex-project.org
Fri Dec 4 22:32:29 CET 2020


Repository : https://github.com/latex3/latex2e
On branch  : gh444
Link       : https://github.com/latex3/latex2e/commit/0177d35085f0bba269e8c3338bd45124f358bf89

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

commit 0177d35085f0bba269e8c3338bd45124f358bf89
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Fri Dec 4 22:32:29 2020 +0100

    drop spurious brace in tracefnt package code
    adjust test loading tracefnt


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

0177d35085f0bba269e8c3338bd45124f358bf89
 base/ltfsstrc.dtx                       | 7 ++++---
 base/testfiles-lthooks/filehook-002.tlg | 6 ++++++
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/base/ltfsstrc.dtx b/base/ltfsstrc.dtx
index 17f5ed9a..bae951b8 100644
--- a/base/ltfsstrc.dtx
+++ b/base/ltfsstrc.dtx
@@ -532,9 +532,10 @@
 %
 %
 %  \begin{macro}{selectfont}
-%    Declare the hook used in selecfont
+%    Declare the hook used in selecfont in the kernel, but not
+%    inside the \pkg{tracefnt} package.
 %    \begin{macrocode}
-\NewHook{selectfont}
+%<-trace>\NewHook{selectfont}
 %    \end{macrocode}
 %  \end{macro}
 %
@@ -547,7 +548,7 @@
 %<*trace>
 \AddToHook{selectfont}
    {\ifnum \tracingfonts>\tw@
-       \@font at info{Switching to \font at name}\fi}}
+       \@font at info{Switching to \font at name}\fi}
 %</trace>
 %    \end{macrocode}
 %
diff --git a/base/testfiles-lthooks/filehook-002.tlg b/base/testfiles-lthooks/filehook-002.tlg
index 5fbedf4f..1453cb40 100644
--- a/base/testfiles-lthooks/filehook-002.tlg
+++ b/base/testfiles-lthooks/filehook-002.tlg
@@ -18,6 +18,7 @@ Handled code for structuredlog
 Package: tracefnt ....-..-.. v... Standard LaTeX package (font tracing)
 \tracingfonts=\count...
 LaTeX Info: Redefining \selectfont on input line ....
+**** Add to hook selectfont (tracefnt) on input line ... <- \ifnum \tracingfonts >\tw@ \@font at info {Switching to \font at name }\fi 
 )
 Update code for hook 'file/after' on input line ...:
 Code labels for sorting:
@@ -47,6 +48,11 @@ File: size10.clo ....-..-.. v... Standard LaTeX file (size option)
 LaTeX Font Info:    External font `cmr10 at10.0pt' loaded as
 (Font)              OT1/cmr/m/n/10  on input line ....
 Update code for hook 'selectfont' on input line ...:
+Code labels for sorting:
+ tracefnt
+Data structure for label rules:
+ tracefnt = 0 -> 
+Handled code for tracefnt
 )
 Update code for hook 'file/after' on input line ...:
 Code labels for sorting:





More information about the latex3-commits mailing list.