diff options
author | Karl Berry <karl@freefriends.org> | 2022-12-05 21:24:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-12-05 21:24:22 +0000 |
commit | 2598aecacc6b815dc556224b2c0be626bb78e969 (patch) | |
tree | 7cdce25f2e122326edbca572c454dec3ac006725 /Master/texmf-dist/tex | |
parent | 5caccaedbc1e667bc6c77cd4121b3aa42fd0cbba (diff) |
mathfont (5dec22)
git-svn-id: svn://tug.org/texlive/trunk@65205 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/mathfont/mathfont.sty | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/mathfont/mathfont.sty b/Master/texmf-dist/tex/latex/mathfont/mathfont.sty index 028bc72670f..17556e8a5ab 100644 --- a/Master/texmf-dist/tex/latex/mathfont/mathfont.sty +++ b/Master/texmf-dist/tex/latex/mathfont/mathfont.sty @@ -6,9 +6,10 @@ %% %% mathfont_code.dtx (with options: `package') %% -%% This file is from version 2.2 of the free and open-source -%% LaTeX package "mathfont," to be used with the XeTeX or -%% LuaTeX engines. (As of version 2.0, LuaTeX is recommended.) +%% This file is from version 2.2a of the free and open-source +%% LaTeX package "mathfont," released December 2022, to be used +%% with the XeTeX or LuaTeX engines. (As of version 2.0, LuaTeX +%% is recommended.) %% %% Copyright 2018-2022 by Conrad Kosowsky %% @@ -59,7 +60,7 @@ %% For more information, see mathfont_code.dtx. Happy TeXing! %% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{mathfont}[2022/12/04 v. 2.2 Package mathfont] +\ProvidesPackage{mathfont}[2022/12/05 v. 2.2a Package mathfont] \newif\ifM@XeTeXLuaTeX % is engine one of xetex or luatex? \newif\ifM@Noluaotfload % cannot find luaotfload.sty? \newif\ifM@adjust@font % should adjust fonts with lua script? @@ -797,18 +798,18 @@ \def\@tempb{#1} \def\@tempc{upright} \ifx\@tempb\@tempc - \let\@tempc\shapedefault + \let\m@th@const@nts@font@sh@pe\shapedefault \else \def\@tempc{italic} \ifx\@tempb\@tempc - \let\@tempc\itdefault + \let\m@th@const@nts@font@sh@pe\itdefault \else \M@BadMathConstantsFontTypeError{#1} \fi \fi \ifcsname symM#1\csname M@fontid@\@tempa\endcsname\endcsname\else \DeclareSymbolFont{M#1\csname M@fontid@\@tempa\endcsname} - {TU}{\@tempa}{\mddefault}{\@tempc} + {TU}{\@tempa}{\mddefault}{\m@th@const@nts@font@sh@pe} \fi \let\m@th@const@nts@font\@tempa \protected\def\M@SetMathConstants{% @@ -818,8 +819,10 @@ \csname symM#1\csname M@fontid@\m@th@const@nts@font\endcsname \expandafter \endcsname % expands to \symMupright<id> - \csname TU/\m@th@const@nts@font/\seriesdefault/\@tempc - \endcsname % expands to \TU/<nfss family name>/m/<shape> + \csname TU/\m@th@const@nts@font + /\seriesdefault + /\m@th@const@nts@font@sh@pe\endcsname + % above \csname expands to \TU/<nfss family name>/m/<shape> \globaldefs\@ne \expandafter\@gobbletwo\math@fonts % gobble to avoid infinite loop \endgroup} @@ -904,13 +907,18 @@ \else \directlua{ local num = tonumber("\@tempa") + local bool = 0 % keep track if \@tempa is (int >= 0) if num then % if number? if num == num - (num \@percentchar 1) then % if integer? if num >= 0 then % if nonnegative? - tex.print("\@backslashchar\@backslashchar endgroup% - \@backslashchar\@backslashchar M@arg@goodtrue") + bool = 1 end end + end + tex.print("\@backslashchar\@backslashchar endgroup") + if bool == 1 then + tex.print("\@backslashchar\@backslashchar csname M@arg@goodtrue% + \@backslashchar\@backslashchar endcsname") end} \fi \fi} |