[latex3-commits] [git/LaTeX3-latex3-latex2e] localalpha: base implementation (859cdfdf)

Frank Mittelbach frank.mittelbach at latex-project.org
Mon Sep 27 00:44:43 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : localalpha
Link       : https://github.com/latex3/latex2e/commit/859cdfdf296c436fa67d609584c21f7a034c3a12

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

commit 859cdfdf296c436fa67d609584c21f7a034c3a12
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Mon Sep 27 00:44:43 2021 +0200

    base implementation


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

859cdfdf296c436fa67d609584c21f7a034c3a12
 base/doc/ltnews34.tex                              |  10 ++
 base/ltfssdcl.dtx                                  |  97 +++++++++++++++++-
 base/testfiles/github-0479-often.luatex.tlg        |   1 +
 base/testfiles/github-0479-often.tlg               |   1 +
 base/testfiles/github-0479-often.xetex.tlg         |   1 +
 .../tlb-latexrelease-rollback-003-often.luatex.tlg |   2 +
 .../tlb-latexrelease-rollback-003-often.tlg        |   2 +
 .../tlb-latexrelease-rollback-003-often.xetex.tlg  |   2 +
 base/testfiles/tlb-nfss-alphabets-01.luatex.tlg    | 100 ++++++++++++++++++
 base/testfiles/tlb-nfss-alphabets-01.lvt           |  44 ++++++++
 base/testfiles/tlb-nfss-alphabets-01.tlg           | 113 +++++++++++++++++++++
 base/testfiles/tlb-nfss-alphabets-01.xetex.tlg     | 100 ++++++++++++++++++
 base/testfiles/tlb-rollback-004-often.luatex.tlg   |   1 +
 base/testfiles/tlb-rollback-004-often.tlg          |   1 +
 base/testfiles/tlb-rollback-004-often.xetex.tlg    |   1 +
 base/testfiles/tlb-rollback-005.luatex.tlg         |   1 +
 base/testfiles/tlb-rollback-005.tlg                |   1 +
 base/testfiles/tlb-rollback-005.xetex.tlg          |   1 +
 18 files changed, 476 insertions(+), 3 deletions(-)

diff --git a/base/doc/ltnews34.tex b/base/doc/ltnews34.tex
index 7497b718..aa7a9389 100644
--- a/base/doc/ltnews34.tex
+++ b/base/doc/ltnews34.tex
@@ -449,6 +449,16 @@ can be easily shown in the terminal without \cs{csname} gymnastics.
 
 
 
+\subsection{Undo some math alphabet allocations if necessary}
+
+\emph{write}
+%
+\githubissue{000}
+
+
+
+
+
 \subsection{???}
 
 %
diff --git a/base/ltfssdcl.dtx b/base/ltfssdcl.dtx
index 9710d543..d2925bc2 100644
--- a/base/ltfssdcl.dtx
+++ b/base/ltfssdcl.dtx
@@ -36,7 +36,7 @@
 %
 %
 \ProvidesFile{ltfssdcl.dtx}
-            [2021/02/15 v3.0w LaTeX Kernel (NFSS Declarative Interface)]
+            [2021/09/26 v3.0x LaTeX Kernel (NFSS Declarative Interface)]
 % \iffalse
 \documentclass{ltxdoc}
 \begin{document}
@@ -473,6 +473,13 @@
  {%
  \ifmmode
    \ifnum\csname c at mv@\math at version\endcsname<\e at mathgroup@top
+     \ifnum \numexpr\e at mathgroup@top-\c at localmathalphabets
+              >\csname c at mv@\math at version\endcsname
+     \else
+       \ifcsname mv@\math at version @frozen\endcsname \else
+         \freez at math@version\math at version
+       \fi
+     \fi
      \begingroup
        \escapechar\m at ne
        \getanddefine at fonts{\csname c at mv@\math at version\endcsname}#3%
@@ -486,8 +493,8 @@
      \global\advance\csname c at mv@\math at version\endcsname\@ne
    \else
      \let#1\relax
-     \@latex at error{Too many math alphabets used
-                   in version \math at version}%
+     \@latex at error{Too many math alphabets used in
+                   version \math at version}%
         \@eha
   \fi
 %    \end{macrocode}
@@ -507,8 +514,92 @@
  \expandafter#1\ifx\math at bgroup\bgroup{#4}\else#4\fi
  }%
 }
+
+\ifx\c at localmathalphabets\@undefined
+  \newcounter{localmathalphabets} \setcounter{localmathalphabets}{2}  % keep 2 alphabets variable by default
+\fi
+
+\ExplSyntaxOn
+
+% doesn't really need declaration but if then in \DeclareMathVersion
+\tl_new:N \g__mv_frozen_normal_tl
+\tl_new:N \g__mv_frozen_bold_tl
+
+\cs_new:Npn\freez at math@version #1 {
+  \cs_gset_eq:cc { mv@#1 at frozen }{ mv@#1 }
+  \tl_gset:cx { g__mv_frozen_ #1 _tl }{ \int_use:c { c at mv@#1 } }
+  \@font at info{Freeze~ math~ alphabet~ allocation~ in~ version~ #1}
+  \aftergroup \__mv_init_freeze:N \exp_after:wN
+    \aftergroup \cs:w mv@#1 at reset \cs_end:
+  %
+  \tl_gput_right:No \check at mathfonts 
+       {
+         \exp_after:wN \aftergroup \cs:w mv@#1 at reset \cs_end:
+       }
+  %
+  \cs_gset:cpn{mv@#1 at reset}
+     {
+         \int_compare:nNnTF { \int_use:c{c at mv@#1} } > 
+                            { \tl_use:c{g__mv_frozen_ #1 _tl} }
+             {
+               \@font at info{Undo~ math~ alphabet~ allocation~ in~ version~ #1}
+               %
+               % need to also reset the global counter otherwise we count up fast to 16
+               %
+               \cs_gset_eq:cc { mv@#1 }{ mv@#1 at frozen }
+               \int_gset:cn { c at mv@#1 }{ \tl_use:c {g__mv_frozen_ #1 _tl} }
+               \group_begin:
+                 \cs_set_eq:NN \getanddefine at fonts \use_none:nn
+                 \use:c {mv@#1}
+               \group_end:
+             }
+             {
+               \@font at info{No~ math~ alphabet~ change~ to~ frozen~ version~ #1}
+             }
+    }
+}
+
+% argument is implicit
+
+\cs_new:Npn \__mv_init_freeze:N {%
+  \mode_if_math:T { \aftergroup \__mv_init_freeze:N \aftergroup }
+}
+
+
+\ExplSyntaxOff 
+
 %</2ekernel|latexrelease>
 %<latexrelease>\EndIncludeInRelease
+%<latexrelease>\IncludeInRelease{2020/10/01}
+%<latexrelease>  {\document at select@group}{\document at select@group}%
+%<latexrelease>
+%<latexrelease>\def\document at select@group#1#2#3#4{%
+%<latexrelease> \ifx\math at bgroup\bgroup\else\relax\expandafter\@firstofone\fi
+%<latexrelease> {%
+%<latexrelease> \ifmmode
+%<latexrelease>   \ifnum\csname c at mv@\math at version\endcsname<\e at mathgroup@top
+%<latexrelease>     \begingroup
+%<latexrelease>       \escapechar\m at ne
+%<latexrelease>       \getanddefine at fonts{\csname c at mv@\math at version\endcsname}#3%
+%<latexrelease>       \globaldefs\@ne  \math at fonts
+%<latexrelease>     \endgroup
+%<latexrelease>     \expandafter\extract at alph@from at version
+%<latexrelease>         \csname mv@\math at version\expandafter\endcsname
+%<latexrelease>         \expandafter{\number\csname
+%<latexrelease>                       c at mv@\math at version\endcsname}%
+%<latexrelease>          #1%
+%<latexrelease>     \global\advance\csname c at mv@\math at version\endcsname\@ne
+%<latexrelease>   \else
+%<latexrelease>     \let#1\relax
+%<latexrelease>     \@latex at error{Too many math alphabets used
+%<latexrelease>                   in version \math at version}%
+%<latexrelease>        \@eha
+%<latexrelease>  \fi
+%<latexrelease> \else \expandafter\expandafter\expandafter\non at alpherr\fi
+%<latexrelease> \expandafter#1\ifx\math at bgroup\bgroup{#4}\else#4\fi
+%<latexrelease> }%
+%<latexrelease>}
+%<latexrelease>\EndIncludeInRelease
 %<latexrelease>\IncludeInRelease{2015/01/01}
 %<latexrelease>  {\document at select@group}{\document at select@group}%
 %<latexrelease>
diff --git a/base/testfiles/github-0479-often.luatex.tlg b/base/testfiles/github-0479-often.luatex.tlg
index bea8d2e5..89bd98b9 100644
--- a/base/testfiles/github-0479-often.luatex.tlg
+++ b/base/testfiles/github-0479-often.luatex.tlg
@@ -280,6 +280,7 @@ Already applied: [....-..-..] \select at group  on input line ....
 Applying: [....-..-..] \document at select@group  on input line ....
 Already applied: [....-..-..] \document at select@group  on input line ....
 Already applied: [....-..-..] \document at select@group  on input line ....
+Already applied: [....-..-..] \document at select@group  on input line ....
 Applying: [....-..-..] Make math accents robust on input line ....
 Already applied: [....-..-..] Make math accents robust on input line ....
 Applying: [....-..-..] makemath accents robust on input line ....
diff --git a/base/testfiles/github-0479-often.tlg b/base/testfiles/github-0479-often.tlg
index 4e324dc1..6bb73e80 100644
--- a/base/testfiles/github-0479-often.tlg
+++ b/base/testfiles/github-0479-often.tlg
@@ -270,6 +270,7 @@ Already applied: [....-..-..] \select at group  on input line ....
 Applying: [....-..-..] \document at select@group  on input line ....
 Already applied: [....-..-..] \document at select@group  on input line ....
 Already applied: [....-..-..] \document at select@group  on input line ....
+Already applied: [....-..-..] \document at select@group  on input line ....
 Applying: [....-..-..] Make math accents robust on input line ....
 Already applied: [....-..-..] Make math accents robust on input line ....
 Applying: [....-..-..] makemath accents robust on input line ....
diff --git a/base/testfiles/github-0479-often.xetex.tlg b/base/testfiles/github-0479-often.xetex.tlg
index c2cce047..0a2ae5ad 100644
--- a/base/testfiles/github-0479-often.xetex.tlg
+++ b/base/testfiles/github-0479-often.xetex.tlg
@@ -270,6 +270,7 @@ Already applied: [....-..-..] \select at group  on input line ....
 Applying: [....-..-..] \document at select@group  on input line ....
 Already applied: [....-..-..] \document at select@group  on input line ....
 Already applied: [....-..-..] \document at select@group  on input line ....
+Already applied: [....-..-..] \document at select@group  on input line ....
 Applying: [....-..-..] Make math accents robust on input line ....
 Already applied: [....-..-..] Make math accents robust on input line ....
 Applying: [....-..-..] makemath accents robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-003-often.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-003-often.luatex.tlg
index a86f1781..0907d3bf 100644
--- a/base/testfiles/tlb-latexrelease-rollback-003-often.luatex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-003-often.luatex.tlg
@@ -247,6 +247,7 @@ Skipping: [....-..-..] \select at group  on input line ....
 Applying: [....-..-..] \select at group  on input line ....
 Skipping: [....-..-..] \document at select@group  on input line ....
 Skipping: [....-..-..] \document at select@group  on input line ....
+Skipping: [....-..-..] \document at select@group  on input line ....
 Applying: [....-..-..] \document at select@group  on input line ....
 Skipping: [....-..-..] Make math accents robust on input line ....
 Applying: [....-..-..] Make math accents robust on input line ....
@@ -834,6 +835,7 @@ Applying: [....-..-..] alias size function on input line ....
 Applying: [....-..-..] \select at group  on input line ....
 Already applied: [....-..-..] \select at group  on input line ....
 Skipping: [....-..-..] \document at select@group  on input line ....
+Skipping: [....-..-..] \document at select@group  on input line ....
 Applying: [....-..-..] \document at select@group  on input line ....
 Already applied: [....-..-..] \document at select@group  on input line ....
 Applying: [....-..-..] Make math accents robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-003-often.tlg b/base/testfiles/tlb-latexrelease-rollback-003-often.tlg
index cef4c98d..e7d97bef 100644
--- a/base/testfiles/tlb-latexrelease-rollback-003-often.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-003-often.tlg
@@ -241,6 +241,7 @@ Skipping: [....-..-..] \select at group  on input line ....
 Applying: [....-..-..] \select at group  on input line ....
 Skipping: [....-..-..] \document at select@group  on input line ....
 Skipping: [....-..-..] \document at select@group  on input line ....
+Skipping: [....-..-..] \document at select@group  on input line ....
 Applying: [....-..-..] \document at select@group  on input line ....
 Skipping: [....-..-..] Make math accents robust on input line ....
 Applying: [....-..-..] Make math accents robust on input line ....
@@ -818,6 +819,7 @@ Applying: [....-..-..] alias size function on input line ....
 Applying: [....-..-..] \select at group  on input line ....
 Already applied: [....-..-..] \select at group  on input line ....
 Skipping: [....-..-..] \document at select@group  on input line ....
+Skipping: [....-..-..] \document at select@group  on input line ....
 Applying: [....-..-..] \document at select@group  on input line ....
 Already applied: [....-..-..] \document at select@group  on input line ....
 Applying: [....-..-..] Make math accents robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-003-often.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-003-often.xetex.tlg
index 948f4c33..ceb990c1 100644
--- a/base/testfiles/tlb-latexrelease-rollback-003-often.xetex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-003-often.xetex.tlg
@@ -241,6 +241,7 @@ Skipping: [....-..-..] \select at group  on input line ....
 Applying: [....-..-..] \select at group  on input line ....
 Skipping: [....-..-..] \document at select@group  on input line ....
 Skipping: [....-..-..] \document at select@group  on input line ....
+Skipping: [....-..-..] \document at select@group  on input line ....
 Applying: [....-..-..] \document at select@group  on input line ....
 Skipping: [....-..-..] Make math accents robust on input line ....
 Applying: [....-..-..] Make math accents robust on input line ....
@@ -827,6 +828,7 @@ Applying: [....-..-..] alias size function on input line ....
 Applying: [....-..-..] \select at group  on input line ....
 Already applied: [....-..-..] \select at group  on input line ....
 Skipping: [....-..-..] \document at select@group  on input line ....
+Skipping: [....-..-..] \document at select@group  on input line ....
 Applying: [....-..-..] \document at select@group  on input line ....
 Already applied: [....-..-..] \document at select@group  on input line ....
 Applying: [....-..-..] Make math accents robust on input line ....
diff --git a/base/testfiles/tlb-nfss-alphabets-01.luatex.tlg b/base/testfiles/tlb-nfss-alphabets-01.luatex.tlg
new file mode 100644
index 00000000..c0997554
--- /dev/null
+++ b/base/testfiles/tlb-nfss-alphabets-01.luatex.tlg
@@ -0,0 +1,100 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+\symfooi=\mathgroup4
+\symfooii=\mathgroup5
+\symfooiii=\mathgroup6
+(tlb-nfss-alphabets-01.aux)
+LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line ....
+LaTeX Font Info:    ... okay on input line ....
+LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line ....
+LaTeX Font Info:    ... okay on input line ....
+LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line ....
+LaTeX Font Info:    ... okay on input line ....
+LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line ....
+LaTeX Font Info:    ... okay on input line ....
+LaTeX Font Info:    Checking defaults for TS1/cmr/m/n on input line ....
+LaTeX Font Info:    ... okay on input line ....
+LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line ....
+LaTeX Font Info:    ... okay on input line ....
+LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line ....
+LaTeX Font Info:    ... okay on input line ....
+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 ....
+### math mode entered at line 24
+\mathord
+.\fam7 x
+\mathord
+.\fam8 x
+\mathord
+.\fam9 x
+\mathord
+.\fam10 x
+\mathord
+.\fam11 a
+\mathord
+.\fam12 b
+\mathord
+.\fam13 c
+\mathord
+.\fam14 d
+### restricted horizontal mode entered at line 24
+spacefactor 1000
+### vertical mode entered at line 0
+### current page:
+\write-{}
+prevdepth 0.0
+! OK.
+l. ...\showlists
+==> In unicode engines this will always give a diff as all math alphabets can be allocated!
+### math mode entered at line 32
+\mathord
+.\fam7 x
+\mathord
+.\fam8 x
+\mathord
+.\fam9 x
+\mathord
+.\fam10 x
+\mathord
+.\fam11 a
+\mathord
+.\fam12 b
+\mathord
+.\fam15 d
+\mathord
+.\fam16 e
+### restricted horizontal mode entered at line 32
+spacefactor 1000
+### vertical mode entered at line 0
+### current page:
+\write-{}
+prevdepth 0.0
+! OK.
+l. ...\showlists
+### math mode entered at line 38
+\mathord
+.\fam7 x
+\mathord
+.\fam8 x
+\mathord
+.\fam9 x
+\mathord
+.\fam10 x
+\mathord
+.\fam11 a
+\mathord
+.\fam17 b
+\mathord
+.\fam15 d
+\mathord
+.\fam16 e
+### restricted horizontal mode entered at line 38
+spacefactor 1000
+### vertical mode entered at line 0
+### current page:
+\write-{}
+prevdepth 0.0
+! OK.
+l. ...\showlists
diff --git a/base/testfiles/tlb-nfss-alphabets-01.lvt b/base/testfiles/tlb-nfss-alphabets-01.lvt
new file mode 100644
index 00000000..ee068b53
--- /dev/null
+++ b/base/testfiles/tlb-nfss-alphabets-01.lvt
@@ -0,0 +1,44 @@
+\documentclass{article}
+
+\input{test2e}
+
+\START
+\DeclareSymbolFont{fooi}{OT1}{cmr}{m}{n}
+\DeclareSymbolFont{fooii}{OT1}{cmr}{m}{n}
+\DeclareSymbolFont{fooiii}{OT1}{cmr}{m}{n}
+
+\DeclareMathAlphabet\baz{OT1}{cmr}{m}{n}
+\DeclareMathAlphabet\bazi{OT1}{cmr}{m}{n}
+\DeclareMathAlphabet\bazii{OT1}{cmr}{m}{n}
+\DeclareMathAlphabet\baziii{OT1}{cmr}{m}{n}
+\DeclareMathAlphabet\baziv{OT1}{cmr}{m}{n}
+\DeclareMathAlphabet\bazv{OT1}{cmr}{m}{n}
+\DeclareMathAlphabet\bazvi{OT1}{cmr}{m}{n}
+\DeclareMathAlphabet\bazvii{OT1}{cmr}{m}{n}
+\DeclareMathAlphabet\bazviii{OT1}{cmr}{m}{sl}
+\DeclareMathAlphabet\bazix{OT1}{cmtt}{m}{n}
+\DeclareMathAlphabet\bazx{OT1}{cmss}{m}{n}
+
+\begin{document}
+
+\setbox0\hbox{$\mathbf{x}\mathtt{x}\mathsf{x}\mathit{x}
+\baz{a}\bazi{b}
+\bazii{c}\baziii{d}  % those two are flexible
+\showlists
+$}
+
+\typeout{==> In unicode engines this will always give a diff as all math alphabets can be allocated!}
+
+\setbox0\hbox{$\mathbf{x}\mathtt{x}\mathsf{x}\mathit{x}
+\baz{a}\bazi{b}
+\bazix{d}\bazx{e}    % so these should work
+\showlists
+$}
+
+\setbox0\hbox{$\mathbf{x}\mathtt{x}\mathsf{x}\mathit{x}
+\baz{a}
+\bazviii{b}\bazix{d}\bazx{e}  % but not 3
+\showlists
+$}
+
+\END
diff --git a/base/testfiles/tlb-nfss-alphabets-01.tlg b/base/testfiles/tlb-nfss-alphabets-01.tlg
new file mode 100644
index 00000000..19817b05
--- /dev/null
+++ b/base/testfiles/tlb-nfss-alphabets-01.tlg
@@ -0,0 +1,113 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+\symfooi=\mathgroup4
+\symfooii=\mathgroup5
+\symfooiii=\mathgroup6
+(tlb-nfss-alphabets-01.aux)
+LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line ....
+LaTeX Font Info:    ... okay on input line ....
+LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line ....
+LaTeX Font Info:    ... okay on input line ....
+LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line ....
+LaTeX Font Info:    ... okay on input line ....
+LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line ....
+LaTeX Font Info:    ... okay on input line ....
+LaTeX Font Info:    Checking defaults for TS1/cmr/m/n on input line ....
+LaTeX Font Info:    ... okay on input line ....
+LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line ....
+LaTeX Font Info:    ... okay on input line ....
+LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line ....
+LaTeX Font Info:    ... okay on input line ....
+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 on input line ....
+### math mode entered at line 24
+\mathord
+.\fam7 x
+\mathord
+.\fam8 x
+\mathord
+.\fam9 x
+\mathord
+.\fam10 x
+\mathord
+.\fam11 a
+\mathord
+.\fam12 b
+\mathord
+.\fam13 c
+\mathord
+.\fam14 d
+### restricted horizontal mode entered at line 24
+spacefactor 1000
+### vertical mode entered at line 0
+### current page:
+\write-{}
+prevdepth 0.0
+! OK.
+l. ...\showlists
+LaTeX Font Info:    Undo math alphabet allocation in version normal on input line ....
+==> In unicode engines this will always give a diff as all math alphabets can be allocated!
+### math mode entered at line 32
+\mathord
+.\fam7 x
+\mathord
+.\fam8 x
+\mathord
+.\fam9 x
+\mathord
+.\fam10 x
+\mathord
+.\fam11 a
+\mathord
+.\fam12 b
+\mathord
+.\fam14 d
+\mathord
+.\fam15 e
+### restricted horizontal mode entered at line 32
+spacefactor 1000
+### vertical mode entered at line 0
+### current page:
+\write-{}
+prevdepth 0.0
+! OK.
+l. ...\showlists
+LaTeX Font Info:    Undo math alphabet allocation in version normal on input line ....
+! LaTeX Error: Too many math alphabets used in version normal.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\bazviii{b}\bazix{d}\bazx{e}
+                                   % but not 3
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+### math mode entered at line 38
+\mathord
+.\fam7 x
+\mathord
+.\fam8 x
+\mathord
+.\fam9 x
+\mathord
+.\fam10 x
+\mathord
+.\fam11 a
+\mathord
+.\fam14 b
+\mathord
+.\fam15 d
+\mathord
+.\fam1 e
+### restricted horizontal mode entered at line 38
+spacefactor 1000
+### vertical mode entered at line 0
+### current page:
+\write-{}
+prevdepth 0.0
+! OK.
+l. ...\showlists
+LaTeX Font Info:    Undo math alphabet allocation in version normal on input line ....
diff --git a/base/testfiles/tlb-nfss-alphabets-01.xetex.tlg b/base/testfiles/tlb-nfss-alphabets-01.xetex.tlg
new file mode 100644
index 00000000..c0997554
--- /dev/null
+++ b/base/testfiles/tlb-nfss-alphabets-01.xetex.tlg
@@ -0,0 +1,100 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+\symfooi=\mathgroup4
+\symfooii=\mathgroup5
+\symfooiii=\mathgroup6
+(tlb-nfss-alphabets-01.aux)
+LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line ....
+LaTeX Font Info:    ... okay on input line ....
+LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line ....
+LaTeX Font Info:    ... okay on input line ....
+LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line ....
+LaTeX Font Info:    ... okay on input line ....
+LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line ....
+LaTeX Font Info:    ... okay on input line ....
+LaTeX Font Info:    Checking defaults for TS1/cmr/m/n on input line ....
+LaTeX Font Info:    ... okay on input line ....
+LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line ....
+LaTeX Font Info:    ... okay on input line ....
+LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line ....
+LaTeX Font Info:    ... okay on input line ....
+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 ....
+### math mode entered at line 24
+\mathord
+.\fam7 x
+\mathord
+.\fam8 x
+\mathord
+.\fam9 x
+\mathord
+.\fam10 x
+\mathord
+.\fam11 a
+\mathord
+.\fam12 b
+\mathord
+.\fam13 c
+\mathord
+.\fam14 d
+### restricted horizontal mode entered at line 24
+spacefactor 1000
+### vertical mode entered at line 0
+### current page:
+\write-{}
+prevdepth 0.0
+! OK.
+l. ...\showlists
+==> In unicode engines this will always give a diff as all math alphabets can be allocated!
+### math mode entered at line 32
+\mathord
+.\fam7 x
+\mathord
+.\fam8 x
+\mathord
+.\fam9 x
+\mathord
+.\fam10 x
+\mathord
+.\fam11 a
+\mathord
+.\fam12 b
+\mathord
+.\fam15 d
+\mathord
+.\fam16 e
+### restricted horizontal mode entered at line 32
+spacefactor 1000
+### vertical mode entered at line 0
+### current page:
+\write-{}
+prevdepth 0.0
+! OK.
+l. ...\showlists
+### math mode entered at line 38
+\mathord
+.\fam7 x
+\mathord
+.\fam8 x
+\mathord
+.\fam9 x
+\mathord
+.\fam10 x
+\mathord
+.\fam11 a
+\mathord
+.\fam17 b
+\mathord
+.\fam15 d
+\mathord
+.\fam16 e
+### restricted horizontal mode entered at line 38
+spacefactor 1000
+### vertical mode entered at line 0
+### current page:
+\write-{}
+prevdepth 0.0
+! OK.
+l. ...\showlists
diff --git a/base/testfiles/tlb-rollback-004-often.luatex.tlg b/base/testfiles/tlb-rollback-004-often.luatex.tlg
index b17bc59c..603f92cb 100644
--- a/base/testfiles/tlb-rollback-004-often.luatex.tlg
+++ b/base/testfiles/tlb-rollback-004-often.luatex.tlg
@@ -279,6 +279,7 @@ Already applied: [....-..-..] alias size function on input line ....
 Applying: [....-..-..] \select at group  on input line ....
 Already applied: [....-..-..] \select at group  on input line ....
 Skipping: [....-..-..] \document at select@group  on input line ....
+Skipping: [....-..-..] \document at select@group  on input line ....
 Applying: [....-..-..] \document at select@group  on input line ....
 Already applied: [....-..-..] \document at select@group  on input line ....
 Applying: [....-..-..] Make math accents robust on input line ....
diff --git a/base/testfiles/tlb-rollback-004-often.tlg b/base/testfiles/tlb-rollback-004-often.tlg
index cf3d4ccb..ec108828 100644
--- a/base/testfiles/tlb-rollback-004-often.tlg
+++ b/base/testfiles/tlb-rollback-004-often.tlg
@@ -268,6 +268,7 @@ Already applied: [....-..-..] alias size function on input line ....
 Applying: [....-..-..] \select at group  on input line ....
 Already applied: [....-..-..] \select at group  on input line ....
 Skipping: [....-..-..] \document at select@group  on input line ....
+Skipping: [....-..-..] \document at select@group  on input line ....
 Applying: [....-..-..] \document at select@group  on input line ....
 Already applied: [....-..-..] \document at select@group  on input line ....
 Applying: [....-..-..] Make math accents robust on input line ....
diff --git a/base/testfiles/tlb-rollback-004-often.xetex.tlg b/base/testfiles/tlb-rollback-004-often.xetex.tlg
index bca204a7..497974e8 100644
--- a/base/testfiles/tlb-rollback-004-often.xetex.tlg
+++ b/base/testfiles/tlb-rollback-004-often.xetex.tlg
@@ -268,6 +268,7 @@ Already applied: [....-..-..] alias size function on input line ....
 Applying: [....-..-..] \select at group  on input line ....
 Already applied: [....-..-..] \select at group  on input line ....
 Skipping: [....-..-..] \document at select@group  on input line ....
+Skipping: [....-..-..] \document at select@group  on input line ....
 Applying: [....-..-..] \document at select@group  on input line ....
 Already applied: [....-..-..] \document at select@group  on input line ....
 Applying: [....-..-..] Make math accents robust on input line ....
diff --git a/base/testfiles/tlb-rollback-005.luatex.tlg b/base/testfiles/tlb-rollback-005.luatex.tlg
index ffec581c..425e59d8 100644
--- a/base/testfiles/tlb-rollback-005.luatex.tlg
+++ b/base/testfiles/tlb-rollback-005.luatex.tlg
@@ -284,6 +284,7 @@ Already applied: [....-..-..] \select at group  on input line ....
 Applying: [....-..-..] \document at select@group  on input line ....
 Already applied: [....-..-..] \document at select@group  on input line ....
 Already applied: [....-..-..] \document at select@group  on input line ....
+Already applied: [....-..-..] \document at select@group  on input line ....
 Applying: [....-..-..] Make math accents robust on input line ....
 Already applied: [....-..-..] Make math accents robust on input line ....
 Applying: [....-..-..] makemath accents robust on input line ....
diff --git a/base/testfiles/tlb-rollback-005.tlg b/base/testfiles/tlb-rollback-005.tlg
index cbdc6a81..1b6b5fc3 100644
--- a/base/testfiles/tlb-rollback-005.tlg
+++ b/base/testfiles/tlb-rollback-005.tlg
@@ -274,6 +274,7 @@ Already applied: [....-..-..] \select at group  on input line ....
 Applying: [....-..-..] \document at select@group  on input line ....
 Already applied: [....-..-..] \document at select@group  on input line ....
 Already applied: [....-..-..] \document at select@group  on input line ....
+Already applied: [....-..-..] \document at select@group  on input line ....
 Applying: [....-..-..] Make math accents robust on input line ....
 Already applied: [....-..-..] Make math accents robust on input line ....
 Applying: [....-..-..] makemath accents robust on input line ....
diff --git a/base/testfiles/tlb-rollback-005.xetex.tlg b/base/testfiles/tlb-rollback-005.xetex.tlg
index 35d7779f..826994b7 100644
--- a/base/testfiles/tlb-rollback-005.xetex.tlg
+++ b/base/testfiles/tlb-rollback-005.xetex.tlg
@@ -274,6 +274,7 @@ Already applied: [....-..-..] \select at group  on input line ....
 Applying: [....-..-..] \document at select@group  on input line ....
 Already applied: [....-..-..] \document at select@group  on input line ....
 Already applied: [....-..-..] \document at select@group  on input line ....
+Already applied: [....-..-..] \document at select@group  on input line ....
 Applying: [....-..-..] Make math accents robust on input line ....
 Already applied: [....-..-..] Make math accents robust on input line ....
 Applying: [....-..-..] makemath accents robust on input line ....





More information about the latex3-commits mailing list.