[latex3-commits] [git/LaTeX3-latex3-latex2e] gh1028: reset frozen mathversion for #1028 (abcbd365)

David Carlisle d.p.carlisle at gmail.com
Sat Apr 1 17:48:09 CEST 2023


Repository : https://github.com/latex3/latex2e
On branch  : gh1028
Link       : https://github.com/latex3/latex2e/commit/abcbd365a6b269a72cb3af2e9c6b8975d872b528

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

commit abcbd365a6b269a72cb3af2e9c6b8975d872b528
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Sat Apr 1 16:48:09 2023 +0100

    reset frozen mathversion for #1028


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

abcbd365a6b269a72cb3af2e9c6b8975d872b528
 base/ltfssbas.dtx              | 13 ++++++-
 base/testfiles/github-1028.lvt | 42 ++++++++++++++++++++
 base/testfiles/github-1028.tlg | 87 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 141 insertions(+), 1 deletion(-)

diff --git a/base/ltfssbas.dtx b/base/ltfssbas.dtx
index 019fca9a..2c071c24 100644
--- a/base/ltfssbas.dtx
+++ b/base/ltfssbas.dtx
@@ -35,7 +35,7 @@
 %
 %
 \ProvidesFile{ltfssbas.dtx}
-             [2022/07/04 v3.2k LaTeX Kernel (NFSS Basic Macros)]
+             [2023/04/01 v3.2l LaTeX Kernel (NFSS Basic Macros)]
 % \iffalse
 \documentclass{ltxdoc}
 \begin{document}
@@ -1050,11 +1050,22 @@
 %      {\cs{def} $\to$ \cs{edef} for \cs{math at version}.}
 % \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}
 %    \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{macrocodpe}
+%  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}
+%    \begin{macrocode}
           \edef\math at version{#1}%
 %    \end{macrocode}
 %    We need to force a math font setup both now and at the point
diff --git a/base/testfiles/github-1028.lvt b/base/testfiles/github-1028.lvt
new file mode 100644
index 00000000..f50f4686
--- /dev/null
+++ b/base/testfiles/github-1028.lvt
@@ -0,0 +1,42 @@
+
+\documentclass{article}
+
+\input{test2e}
+
+\DeclareSymbolFont{symbols1}     {OMS}{cmsy}{m}{n}
+\DeclareSymbolFont{symbols2}     {OMS}{cmsy}{m}{n}
+\DeclareSymbolFont{symbols3}     {OMS}{cmsy}{m}{n}
+\DeclareSymbolFont{symbols4}     {OMS}{cmsy}{m}{n}
+\DeclareSymbolFont{symbols5}     {OMS}{cmsy}{m}{n}
+\DeclareSymbolFont{symbols6}     {OMS}{cmsy}{m}{n}
+\DeclareSymbolFont{symbols7}     {OMS}{cmsy}{m}{n}
+\DeclareSymbolFont{symbols8}     {OMS}{cmsy}{m}{n}
+\DeclareSymbolFont{symbols9}     {OMS}{cmsy}{m}{n}
+\DeclareSymbolFont{symbols10}     {OMS}{cmsy}{m}{n}
+\DeclareSymbolFont{symbols11}     {OMS}{cmsy}{m}{n}
+
+
+
+%\setcounter{localmathalphabets}{0}
+
+
+\begin{document}
+
+
+\showoutput
+
+\START
+
+$\mathsf{Q1}$
+
+% Q2 should not be bold
+$
+\mathsf{Q2}+
+\mbox{%
+\boldmath
+$\mathsf{Q3}$}
+$
+
+$\mathsf{Q4}$
+
+\end{document}
\ No newline at end of file
diff --git a/base/testfiles/github-1028.tlg b/base/testfiles/github-1028.tlg
new file mode 100644
index 00000000..5f3029f5
--- /dev/null
+++ b/base/testfiles/github-1028.tlg
@@ -0,0 +1,87 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+LaTeX Font Info:    External font `cmex10' loaded for size
+(Font)              <7> on input line ....
+LaTeX Font Info:    External font `cmex10' loaded for size
+(Font)              <5> on input line ....
+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:    Freeze math alphabet allocation in version bold.
+(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:    Undo math alphabet allocation in version bold on input line ....
+LaTeX Font Info:    No math alphabet change to frozen version normal on input line ....
+LaTeX Font Info:    No math alphabet change to frozen version bold on input line ....
+LaTeX Font Info:    No math alphabet change to frozen 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
+.\glue 16.0
+.\vbox(617.0+0.0)x345.0, shifted 62.0
+..\vbox(12.0+0.0)x345.0, glue set 12.0fil
+...\glue 0.0 plus 1.0fil
+...\hbox(0.0+0.0)x345.0
+....\hbox(0.0+0.0)x345.0
+..\glue 25.0
+..\glue(\lineskip) 0.0
+..\vbox(550.0+0.0)x345.0, glue set 515.94489fil
+...\write-{}
+...\glue(\topskip) 3.05556
+...\hbox(6.94444+1.25)x345.0, glue set 317.63887fil
+....\hbox(0.0+0.0)x15.0
+....\mathon
+....\hbox(6.94444+1.25)x12.36113
+.....\OT1/cmss/m/n/10 Q
+.....\OT1/cmss/m/n/10 1
+....\mathoff
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 3.80556
+...\hbox(6.94444+1.25)x345.0, glue set 291.97221fil
+....\hbox(0.0+0.0)x15.0
+....\mathon
+....\hbox(6.94444+1.25)x12.36113
+.....\OT1/cmss/m/n/10 Q
+.....\OT1/cmss/m/n/10 2
+....\glue(\medmuskip) 2.22217 plus 1.11108 minus 2.22217
+....\OT1/cmr/m/n/10 +
+....\penalty 700
+....\glue(\medmuskip) 2.22217 plus 1.11108 minus 2.22217
+....\hbox(6.94444+1.05554)x13.44452
+.....\mathon
+.....\hbox(6.94444+1.05554)x13.44452
+......\OT1/cmss/bx/n/10 Q
+......\OT1/cmss/bx/n/10 3
+.....\mathoff
+....\mathoff
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\parskip) 0.0
+...\glue(\baselineskip) 3.80556
+...\hbox(6.94444+1.25)x345.0, glue set 317.63887fil
+....\hbox(0.0+0.0)x15.0
+....\mathon
+....\hbox(6.94444+1.25)x12.36113
+.....\OT1/cmss/m/n/10 Q
+.....\OT1/cmss/m/n/10 4
+....\mathoff
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue -1.25
+...\glue 0.0 plus 1.0fil
+...\glue 0.0
+...\glue 0.0 plus 0.0001fil
+..\glue(\baselineskip) 23.55556
+..\hbox(6.44444+0.0)x345.0
+...\hbox(6.44444+0.0)x345.0, glue set 170.0fil
+....\glue 0.0 plus 1.0fil
+....\OT1/cmr/m/n/10 1
+....\glue 0.0 plus 1.0fil
+(github-1028.aux)





More information about the latex3-commits mailing list.