-
-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reset top-level alphabets only for the current math version
- Loading branch information
1 parent
69b3f3b
commit 7540b2b
Showing
4 changed files
with
36 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,12 @@ to completeness or accuracy and it contains some references to files that are | |
not part of the distribution. | ||
================================================================================ | ||
|
||
2024-11-27 Frank Mittelbach <[email protected]> | ||
|
||
* ltfssdcl.dtx (section{Interface Commands}): | ||
Reset top-level alphabet definitions | ||
only for the current math version (gh/1101 and gh/1028) | ||
|
||
2024-11-17 Frank Mittelbach <[email protected]> | ||
|
||
* ltmarks.dtx (section{Public interfaces for packages such as \pkg{multicol}}): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,11 +32,11 @@ | |
%% all rights reserved. | ||
% | ||
%<*driver> | ||
% \fi | ||
\fi | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
FrankMittelbach
Author
Member
|
||
% | ||
% | ||
\ProvidesFile{ltfssdcl.dtx} | ||
[2024/11/19 v3.1c LaTeX Kernel (NFSS Declarative Interface)] | ||
[2024/11/27 v3.1d LaTeX Kernel (NFSS Declarative Interface)] | ||
% \iffalse | ||
\documentclass{ltxdoc} | ||
\begin{document} | ||
|
@@ -719,34 +719,45 @@ | |
\int_compare:nNnTF { \int_use:c{c@mv@#1} } > | ||
{ \tl_use:c{g__nfss_frozen_mv_ #1 _tl} } | ||
{ | ||
\@font@info{Undo~ math~ alphabet~ allocation~ in~ version~ #1} | ||
\@font@info{ Undo~ math~ alphabet~ allocation~ in~ version~ #1 } | ||
% \end{macrocode} | ||
% If the undo is necessary, we restore the \cs{mv@\meta{version}} code. | ||
% \begin{macrocode} | ||
\cs_gset_eq:cc { mv@#1 }{ mv@#1@frozen } | ||
\int_gset:cn { c@mv@#1 }{ \tl_use:c {g__nfss_frozen_mv_ #1 _tl} } | ||
% \end{macrocode} | ||
% But we also should undo changes to the math alphabet | ||
% But we also should undo changes to the top-level math alphabet | ||
% definitions. We therefore run this code with a modified | ||
% definition for \cs{getanddefine@fonts} because there is no need | ||
% to do anything to the symbol fonts that are permanently allocated. | ||
% \begin{macrocode} | ||
\group_begin: | ||
\cs_set_eq:NN \getanddefine@fonts \use_none:nn | ||
\use:c {mv@#1} | ||
\group_end: | ||
% However, we do this only if the resetting was for the current | ||
% math version, because otherwise we would give the top-level | ||
% definitions the values for the last math version being resetted | ||
% (e.g., bold if there are just two). | ||
% \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@version {#1} | ||
{ | ||
\@font@info{ Also~reset~ the~ top-level~ math~ | ||
alphabet~ definitions } | ||
\group_begin: | ||
\cs_set_eq:NN \getanddefine@fonts \use_none:nn | ||
\use:c {mv@ \math@version } | ||
\group_end: | ||
} | ||
} | ||
{ | ||
% \end{macrocode} | ||
% If there was no change, we report that in the log (but this | ||
% branch could go completely). | ||
% \begin{macrocode} | ||
\@font@info{No~ math~ alphabet~ change~ to~ frozen~ version~ #1} | ||
\@font@info{ No~ math~ alphabet~ change~ to~ frozen~ version~ #1 } | ||
} | ||
} | ||
{ | ||
\@font@info{Nested~ math:~ keeping math~ alphabet~ | ||
allocation~ in~ version~ #1} | ||
\@font@info{ Nested~ math:~ keeping~ math~ alphabet~ | ||
allocation~ in~ version~ #1} | ||
} | ||
% \end{macrocode} | ||
% If this is executed after a math display, we may have to arrange | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Is this uncommenting expected?