[latex3-commits] [latex3/latex2e] gh1101: message only when not resetting top-level defs (99f2394d8)

github at latex-project.org github at latex-project.org
Wed Nov 27 15:06:19 CET 2024


Repository : https://github.com/latex3/latex2e
On branch  : gh1101
Link       : https://github.com/latex3/latex2e/commit/99f2394d8531b3d39affd7b687337efbf196c25e

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

commit 99f2394d8531b3d39affd7b687337efbf196c25e
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Wed Nov 27 15:06:19 2024 +0100

    message only when not resetting top-level defs


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

99f2394d8531b3d39affd7b687337efbf196c25e
 base/ltfssdcl.dtx              | 15 ++++++++++++---
 base/testfiles/github-1028.tlg |  4 +---
 base/testfiles/github-1101.tlg |  2 --
 3 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/base/ltfssdcl.dtx b/base/ltfssdcl.dtx
index 3e157b9ff..90c837884 100644
--- a/base/ltfssdcl.dtx
+++ b/base/ltfssdcl.dtx
@@ -737,15 +737,24 @@
 % \changes{v3.1d}{2024/11/27}{Reset top-level alphabet definitions
 %    only for the current math version (gh/1101 and gh/1028)}
 %    \begin{macrocode}
-               \tl_if_eq:NnT \math at version {#1}
+               \tl_if_eq:NnTF \math at version {#1}
                {
-                 \@font at info{ Also~reset~ the~ top-level~ math~
-                              alphabet~ definitions }
                  \group_begin:
                    \cs_set_eq:NN \getanddefine at fonts \use_none:nn
                    \use:c {mv@ \math at version }
                  \group_end:
                }
+               {
+%    \end{macrocode}
+%    Once we have hit the boundary and have to revert to the frozen
+%    version that happens quite often, but typically only for the
+%    normal version. Thus, it is better to report only when we do not
+%    revert the top-level definition as this is the exceptional case
+%    and happens only if several math versions are used in parallel.
+%    \begin{macrocode}
+                 \@font at info{ but~ do~ not~ reset~ the~ top-level~
+                              math~ alphabet~ definitions }
+               }
              }
              {
 %    \end{macrocode}
diff --git a/base/testfiles/github-1028.tlg b/base/testfiles/github-1028.tlg
index 5f1aa1e63..0a0a2f849 100644
--- a/base/testfiles/github-1028.tlg
+++ b/base/testfiles/github-1028.tlg
@@ -7,16 +7,14 @@ LaTeX Font Info:    External font `cmex10' loaded for size
 LaTeX Font Info:    Freeze math alphabet allocation in version normal.
 (Font)              Allocated math groups: 15 (local: 2) on input line ....
 LaTeX Font Info:    Undo math alphabet allocation in version normal on input line ....
-LaTeX Font Info:    Also reset the top-level math alphabet definitions to version normal on input line ....
 LaTeX Font Info:    Freeze math alphabet allocation in version bold.
 (Font)              Allocated math groups: 15 (local: 2) on input line ....
 LaTeX Font Info:    Nested math: keeping math alphabet allocation in version normal on input line ....
 LaTeX Font Info:    Nested math: keeping math alphabet allocation in version bold on input line ....
 LaTeX Font Info:    Undo math alphabet allocation in version normal on input line ....
-LaTeX Font Info:    Also reset the top-level math alphabet definitions to version normal on input line ....
 LaTeX Font Info:    Undo math alphabet allocation in version bold on input line ....
+LaTeX Font Info:    but do not reset the top-level math alphabet definitions on input line ....
 LaTeX Font Info:    Undo math alphabet allocation in version normal on input line ....
-LaTeX Font Info:    Also reset the top-level math alphabet definitions to version normal on input line ....
 LaTeX Font Info:    No math alphabet change to frozen version bold on input line ....
 Completed box being shipped out [1]
 \vbox(633.0+0.0)x407.0
diff --git a/base/testfiles/github-1101.tlg b/base/testfiles/github-1101.tlg
index 6cf5ee682..8ff869fc9 100644
--- a/base/testfiles/github-1101.tlg
+++ b/base/testfiles/github-1101.tlg
@@ -26,12 +26,10 @@ LaTeX Font Info:    Trying to load font information for T1+lmss on input line ..
 l. ... \mathfrak{p}\x3
                      $
 LaTeX Font Info:    Undo math alphabet allocation in version normal on input line ....
-LaTeX Font Info:    Also reset the top-level math alphabet definitions on input line ....
 > \OT1/cmr/m/it/10 .
 \x #1->\showthe \textfont 14 
 l. ...\x4
 LaTeX Font Info:    Undo math alphabet allocation in version normal on input line ....
-LaTeX Font Info:    Also reset the top-level math alphabet definitions on input line ....
 > \OT1/cmr/m/it/10 .
 \x #1->\showthe \textfont 14 
 l. ...\x5





More information about the latex3-commits mailing list.