[latex3-commits] [latex3/latex2e] gh1101: add a few \changes entries (364a372f3)

github at latex-project.org github at latex-project.org
Sat Nov 30 11:57:03 CET 2024


Repository : https://github.com/latex3/latex2e
On branch  : gh1101
Link       : https://github.com/latex3/latex2e/commit/364a372f3716e705cbd995b8614419f12ac75f6a

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

commit 364a372f3716e705cbd995b8614419f12ac75f6a
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Sat Nov 30 11:57:03 2024 +0100

    add a few \changes entries


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

364a372f3716e705cbd995b8614419f12ac75f6a
 base/ltfssbas.dtx | 44 +++++++++++++++++++++++++++++---------------
 base/ltfssdcl.dtx |  6 ++++++
 2 files changed, 35 insertions(+), 15 deletions(-)

diff --git a/base/ltfssbas.dtx b/base/ltfssbas.dtx
index bb81ad658..535ee0919 100644
--- a/base/ltfssbas.dtx
+++ b/base/ltfssbas.dtx
@@ -35,7 +35,7 @@
 %
 %
 \ProvidesFile{ltfssbas.dtx}
-             [2024/11/19 v3.2n LaTeX Kernel (NFSS Basic Macros)]
+             [2024/11/30 v3.2o LaTeX Kernel (NFSS Basic Macros)]
 % \iffalse
 \documentclass{ltxdoc}
 \begin{document}
@@ -1184,20 +1184,14 @@
 % \changes{v1.2g}{1990/02/16}{\cs{@nomath} added.}
 % \changes{v2.1a}{1994/01/17}{New math font setup}
 % \changes{v3.2l}{2023/04/01}{Reset frozen mathversion gh/1028}
+% \changes{v3.2o}{2024/11/30}{New appoach to
+%    \texttt{localmathalphabets} (gh/1101)}
 %    \begin{macrocode}
 \DeclareRobustCommand\mathversion[1]
          {\@nomath\mathversion
           \expandafter\ifx\csname mv@#1\endcsname\relax
           \@latex at error{Math version `#1' is not defined}\@eha\else
 %    \end{macrocode}
-%  If there has been a frozen math version reset locally. See GH 1028.
-%    \begin{macrocode}
-%          \ifcsname mv@\math at version @frozen\endcsname
-%            \expandafter\let
-%            \csname mv@\math at version @frozen\expandafter\endcsname
-%            \csname mv@\math at version\endcsname
-%          \fi
-%    \end{macrocode}
 %    If there has been a frozen math version reset unconditionally to
 %    it, so that in case of bold inside normal math we always restart.
 %    This probably fails if you have several levels of nesting with
@@ -1234,6 +1228,12 @@
           \fi}
 %    \end{macrocode}
 %
+%    Reseting the math version unconditionally means that we have to
+%    copy the frozen version to \verb=\mv@#1= and also reset the
+%    counter \verb=\c at mv@#1= to the number of math alphabets allocated
+%    in the frozen version.
+% \changes{v3.2o}{2024/11/30}{New appoach to
+%    \texttt{localmathalphabets} (gh/1101)}
 %    \begin{macrocode}
 \ExplSyntaxOn
 \cs_new_protected:Npn \unconditionally at reset@math at version #1 {
@@ -1295,6 +1295,14 @@
 %
 %
 
+%  \begin{macro}{\@math at level}
+%    This counter records the nesting level of math within math.
+% \changes{v3.2o}{2024/11/30}{New appoach to
+%    \texttt{localmathalphabets} (gh/1101)}
+%    \begin{macrocode}
+\newcount\@math at level
+%    \end{macrocode}
+%  \end{macro}
 %
 % \begin{macro}{\frozen at everydisplay}
 % \changes{v2.1a}{1994/01/17}{New math font setup}
@@ -1313,6 +1321,8 @@
 % \changes{v3.2k}{2022/07/04}{Ignore spaces if necessary (gh/886)}
 %    The issue with handling of spaces was found in 2022, but it is
 %    really a bug fix for the code added in 2021/11.
+% \changes{v3.2o}{2024/11/30}{New appoach to
+%    \texttt{localmathalphabets} (gh/1101)}
 %    \begin{macrocode}
 %</2ekernel>
 %<latexrelease>\IncludeInRelease{2021/11/15}
@@ -1320,6 +1330,11 @@
 %<*2ekernel|latexrelease>
 \frozen at everydisplay = {%
   \aftergroup\@ignoretrue  \aftergroup\ignorespaces
+%    \end{macrocode}
+%    Record that we entered another math level.
+% \changes{v3.2o}{2024/11/30}{New appoach to
+%    \texttt{localmathalphabets} (gh/1101)}
+%    \begin{macrocode}
   \advance\@math at level\@ne
   \check at mathfonts
   \the\everydisplay}
@@ -1327,12 +1342,6 @@
 % \end{macro}
 %
 
-%  \begin{macro}{\@math at level}
-%    
-%    \begin{macrocode}
-\newcount\@math at level
-%    \end{macrocode}
-%  \end{macro}
 
 % \begin{macro}{\frozen at everymath}
 % \changes{v2.1a}{1994/01/17}{New math font setup}
@@ -1342,6 +1351,11 @@
 %    \begin{macrocode}
 \frozen at everymath = {%
   \aftergroup\@ignorefalse
+%    \end{macrocode}
+%    Record that we entered another math level.
+% \changes{v3.2o}{2024/11/30}{New appoach to
+%    \texttt{localmathalphabets} (gh/1101)}
+%    \begin{macrocode}
   \advance\@math at level\@ne
   \check at mathfonts
   \the\everymath}
diff --git a/base/ltfssdcl.dtx b/base/ltfssdcl.dtx
index 6445d5c16..7dcacf68f 100644
--- a/base/ltfssdcl.dtx
+++ b/base/ltfssdcl.dtx
@@ -714,6 +714,12 @@
 %    \begin{macrocode}
   \cs_gset:cpn{mv@#1 at reset}
      {
+%    \end{macrocode}
+%    If we are back at top-level, or more precisely outside of any
+%    (nested) math, we may have to reset the math version back to its
+%    frozen version, if that exist and has less alphabets allocated.
+% \changes{v3.1d}{2024/11/27}{Reset math version if necessary (gh/1101 and gh/1028)}
+%    \begin{macrocode}
        \int_compare:nNnTF \@math at level = 0
        {
          \int_compare:nNnTF { \int_use:c{c at mv@#1} } > 





More information about the latex3-commits mailing list.