diff options
author | Karl Berry <karl@freefriends.org> | 2023-08-31 21:41:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-08-31 21:41:15 +0000 |
commit | 796db766b029f447c766ce54e724eaf65a8f3a63 (patch) | |
tree | b9cbe2097f14de7fb5d20ce6f88d276c0f9e3dc3 /Master/texmf-dist/tex/latex/mathastext | |
parent | 66ca5c194aaf78a2958c039dcf01b6beed0184dc (diff) |
mathastext (31aug23)
git-svn-id: svn://tug.org/texlive/trunk@68125 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/mathastext')
-rw-r--r-- | Master/texmf-dist/tex/latex/mathastext/mathastext.sty | 225 |
1 files changed, 113 insertions, 112 deletions
diff --git a/Master/texmf-dist/tex/latex/mathastext/mathastext.sty b/Master/texmf-dist/tex/latex/mathastext/mathastext.sty index e849137fa74..d00588bf0b2 100644 --- a/Master/texmf-dist/tex/latex/mathastext/mathastext.sty +++ b/Master/texmf-dist/tex/latex/mathastext/mathastext.sty @@ -23,16 +23,17 @@ %%---------------------------------------------------------------- %% Package: mathastext %% Info: Use the text font in math mode (JFB) -%% Version: 1.3y 2022/11/04 +%% Version: 1.3z 2023/09/01 %% License: LPPL 1.3c (http://www.latex-project.org/lppl/lppl-1-3c.txt) -%% Copyright (C) 2011-2019, 2022 Jean-Francois Burnol <jfbu at free dot fr> +%% Copyright (C) 2011-2016, 2018, 2019, 2022, 2023 Jean-Francois Burnol +%% <jfbu at free dot fr> %% Examples of use of mathastext: %% http://jf.burnol.free.fr/mathastext.html %% http://jf.burnol.free.fr/showcase.html %%---------------------------------------------------------------- \NeedsTeXFormat{LaTeX2e} \ProvidesPackage {mathastext} - [2022/11/04 v1.3y Use the text font in math mode (JFB)] + [2023/09/01 v1.3z Use the text font in math mode (JFB)] \newif\ifmst@robust@obsessed@LaTeX@era \@ifl@t@r\fmtversion{2019/10/01}{\mst@robust@obsessed@LaTeX@eratrue}{} \edef\mst@robustifyingspace{\ifmst@robust@obsessed@LaTeX@era\space\fi} @@ -582,45 +583,45 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue} \ifmst@subdued\else\mst@setalphabets\fi \providecommand*\MTgreekupdefault{n} \providecommand*\MTgreekitdefault{it} -\newif\ifmst@lgr@lower@up -\newif\ifmst@lgr@upper@up +\newif\ifmst@greek@lower@up +\newif\ifmst@greek@upper@up \def\mst@update@greeksh{ - \def\mst@lgr@lsh{\mst@ltsh} - \def\mst@lgr@ush{\mst@opsh} - \mst@lgr@lower@uptrue + \def\mst@greek@lsh{\mst@ltsh} + \def\mst@greek@ush{\mst@opsh} + \mst@greek@lower@uptrue \expandafter\in@\expanded{{\mst@ltsh.}}{it.,sl.}% - \ifin@\mst@lgr@lower@upfalse\fi - \mst@lgr@upper@uptrue + \ifin@\mst@greek@lower@upfalse\fi + \mst@greek@upper@uptrue \expandafter\in@\expanded{{\mst@opsh.}}{it.,sl.}% - \ifin@\mst@lgr@upper@upfalse\fi + \ifin@\mst@greek@upper@upfalse\fi \ifmst@itgreek - \def\mst@lgr@lsh{\MTgreekitdefault} - \def\mst@lgr@ush{\MTgreekitdefault} - \mst@lgr@lower@upfalse - \mst@lgr@upper@upfalse + \def\mst@greek@lsh{\MTgreekitdefault} + \def\mst@greek@ush{\MTgreekitdefault} + \mst@greek@lower@upfalse + \mst@greek@upper@upfalse \fi \ifmst@upgreek - \def\mst@lgr@lsh{\MTgreekupdefault} - \def\mst@lgr@ush{\MTgreekupdefault} - \mst@lgr@lower@uptrue - \mst@lgr@upper@uptrue + \def\mst@greek@lsh{\MTgreekupdefault} + \def\mst@greek@ush{\MTgreekupdefault} + \mst@greek@lower@uptrue + \mst@greek@upper@uptrue \fi \ifmst@frenchmath \ifmst@itgreek\else \ifmst@upgreek\else - \def\mst@lgr@lsh{\mst@opsh} - \def\mst@lgr@ush{\mst@opsh} - \mst@lgr@lower@uptrue - \mst@lgr@upper@uptrue + \def\mst@greek@lsh{\mst@opsh} + \def\mst@greek@ush{\mst@opsh} + \mst@greek@lower@uptrue + \mst@greek@upper@uptrue \fi\fi \fi \ifcase\mst@greek@select \or - \def\mst@lgr@ush{\MTgreekitdefault} - \mst@lgr@upper@upfalse + \def\mst@greek@ush{\MTgreekitdefault} + \mst@greek@upper@upfalse \or - \def\mst@lgr@ush{\MTgreekupdefault} - \mst@lgr@upper@uptrue + \def\mst@greek@ush{\MTgreekupdefault} + \mst@greek@upper@uptrue \fi } \mst@update@greeksh @@ -1357,33 +1358,33 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue} \DeclareMathSymbol{\Psiit}{\mathalpha}{mtgreekit}{89} \DeclareMathSymbol{\Omegait}{\mathalpha}{mtgreekit}{87} % - \def\mst@Alpha{\ifmst@lgr@upper@up\Alphaup\else\Alphait\fi}% - \def\mst@Beta{\ifmst@lgr@upper@up\Betaup\else\Betait\fi}% - \def\mst@Epsilon{\ifmst@lgr@upper@up\Epsilonup\else\Epsilonit\fi}% - \def\mst@Zeta{\ifmst@lgr@upper@up\Zetaup\else\Zetait\fi}% - \def\mst@Eta{\ifmst@lgr@upper@up\Etaup\else\Etait\fi}% - \def\mst@Iota{\ifmst@lgr@upper@up\Iotaup\else\Iotait\fi}% - \def\mst@Kappa{\ifmst@lgr@upper@up\Kappaup\else\Kappait\fi}% - \def\mst@Mu{\ifmst@lgr@upper@up\Muup\else\Muit\fi}% - \def\mst@Nu{\ifmst@lgr@upper@up\Nuup\else\Nuit\fi}% - \def\mst@Omicron{\ifmst@lgr@upper@up\Omicronup\else\Omicronit\fi}% - \def\mst@Rho{\ifmst@lgr@upper@up\Rhoup\else\Rhoit\fi}% - \def\mst@Tau{\ifmst@lgr@upper@up\Tauup\else\Tauit\fi}% - \def\mst@Chi{\ifmst@lgr@upper@up\Chiup\else\Chiit\fi}% + \def\mst@Alpha{\ifmst@greek@upper@up\Alphaup\else\Alphait\fi}% + \def\mst@Beta{\ifmst@greek@upper@up\Betaup\else\Betait\fi}% + \def\mst@Epsilon{\ifmst@greek@upper@up\Epsilonup\else\Epsilonit\fi}% + \def\mst@Zeta{\ifmst@greek@upper@up\Zetaup\else\Zetait\fi}% + \def\mst@Eta{\ifmst@greek@upper@up\Etaup\else\Etait\fi}% + \def\mst@Iota{\ifmst@greek@upper@up\Iotaup\else\Iotait\fi}% + \def\mst@Kappa{\ifmst@greek@upper@up\Kappaup\else\Kappait\fi}% + \def\mst@Mu{\ifmst@greek@upper@up\Muup\else\Muit\fi}% + \def\mst@Nu{\ifmst@greek@upper@up\Nuup\else\Nuit\fi}% + \def\mst@Omicron{\ifmst@greek@upper@up\Omicronup\else\Omicronit\fi}% + \def\mst@Rho{\ifmst@greek@upper@up\Rhoup\else\Rhoit\fi}% + \def\mst@Tau{\ifmst@greek@upper@up\Tauup\else\Tauit\fi}% + \def\mst@Chi{\ifmst@greek@upper@up\Chiup\else\Chiit\fi}% % - \def\mst@Digamma{\ifmst@lgr@upper@up\Digammaup\else\Digammait\fi}% + \def\mst@Digamma{\ifmst@greek@upper@up\Digammaup\else\Digammait\fi}% % - \def\mst@Gamma{\ifmst@lgr@upper@up\Gammaup\else\Gammait\fi}% - \def\mst@Delta{\ifmst@lgr@upper@up\Deltaup\else\Deltait\fi}% - \def\mst@Theta{\ifmst@lgr@upper@up\Thetaup\else\Thetait\fi}% - \def\mst@Lambda{\ifmst@lgr@upper@up\Lambdaup\else\Lambdait\fi}% - \def\mst@Xi{\ifmst@lgr@upper@up\Xiup\else\Xiit\fi}% - \def\mst@Pi{\ifmst@lgr@upper@up\Piup\else\Piit\fi}% - \def\mst@Sigma{\ifmst@lgr@upper@up\Sigmaup\else\Sigmait\fi}% - \def\mst@Upsilon{\ifmst@lgr@upper@up\Upsilonup\else\Upsilonit\fi}% - \def\mst@Phi{\ifmst@lgr@upper@up\Phiup\else\Phiit\fi}% - \def\mst@Psi{\ifmst@lgr@upper@up\Psiup\else\Psiit\fi}% - \def\mst@Omega{\ifmst@lgr@upper@up\Omegaup\else\Omegait\fi}% + \def\mst@Gamma{\ifmst@greek@upper@up\Gammaup\else\Gammait\fi}% + \def\mst@Delta{\ifmst@greek@upper@up\Deltaup\else\Deltait\fi}% + \def\mst@Theta{\ifmst@greek@upper@up\Thetaup\else\Thetait\fi}% + \def\mst@Lambda{\ifmst@greek@upper@up\Lambdaup\else\Lambdait\fi}% + \def\mst@Xi{\ifmst@greek@upper@up\Xiup\else\Xiit\fi}% + \def\mst@Pi{\ifmst@greek@upper@up\Piup\else\Piit\fi}% + \def\mst@Sigma{\ifmst@greek@upper@up\Sigmaup\else\Sigmait\fi}% + \def\mst@Upsilon{\ifmst@greek@upper@up\Upsilonup\else\Upsilonit\fi}% + \def\mst@Phi{\ifmst@greek@upper@up\Phiup\else\Phiit\fi}% + \def\mst@Psi{\ifmst@greek@upper@up\Psiup\else\Psiit\fi}% + \def\mst@Omega{\ifmst@greek@upper@up\Omegaup\else\Omegait\fi}% % \DeclareMathSymbol{\alphaup}{\mathalpha}{mtgreekup}{97} \DeclareMathSymbol{\betaup}{\mathalpha}{mtgreekup}{98} @@ -1441,33 +1442,33 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue} \DeclareMathSymbol{\digammait}{\mathalpha}{mtgreekit}{147} \DeclareMathSymbol{\varsigmait}{\mathalpha}{mtgreekit}{99} % - \def\mst@alpha{\ifmst@lgr@lower@up\alphaup\else\alphait\fi}% - \def\mst@beta{\ifmst@lgr@lower@up\betaup\else\betait\fi}% - \def\mst@gamma{\ifmst@lgr@lower@up\gammaup\else\gammait\fi}% - \def\mst@delta{\ifmst@lgr@lower@up\deltaup\else\deltait\fi}% - \def\mst@epsilon{\ifmst@lgr@lower@up\epsilonup\else\epsilonit\fi}% - \def\mst@zeta{\ifmst@lgr@lower@up\zetaup\else\zetait\fi}% - \def\mst@eta{\ifmst@lgr@lower@up\etaup\else\etait\fi}% - \def\mst@theta{\ifmst@lgr@lower@up\thetaup\else\thetait\fi}% - \def\mst@iota{\ifmst@lgr@lower@up\iotaup\else\iotait\fi}% - \def\mst@kappa{\ifmst@lgr@lower@up\kappaup\else\kappait\fi}% - \def\mst@lambda{\ifmst@lgr@lower@up\lambdaup\else\lambdait\fi}% - \def\mst@mu{\ifmst@lgr@lower@up\muup\else\muit\fi}% - \def\mst@nu{\ifmst@lgr@lower@up\nuup\else\nuit\fi}% - \def\mst@xi{\ifmst@lgr@lower@up\xiup\else\xiit\fi}% - \def\mst@omicron{\ifmst@lgr@lower@up\omicronup\else\omicronit\fi}% - \def\mst@pi{\ifmst@lgr@lower@up\piup\else\piit\fi}% - \def\mst@rho{\ifmst@lgr@lower@up\rhoup\else\rhoit\fi}% - \def\mst@sigma{\ifmst@lgr@lower@up\sigmaup\else\sigmait\fi}% - \def\mst@tau{\ifmst@lgr@lower@up\tauup\else\tauit\fi}% - \def\mst@upsilon{\ifmst@lgr@lower@up\upsilonup\else\upsilonit\fi}% - \def\mst@phi{\ifmst@lgr@lower@up\phiup\else\phiit\fi}% - \def\mst@chi{\ifmst@lgr@lower@up\chiup\else\chiit\fi}% - \def\mst@psi{\ifmst@lgr@lower@up\psiup\else\psiit\fi}% - \def\mst@omega{\ifmst@lgr@lower@up\omegaup\else\omegait\fi}% + \def\mst@alpha{\ifmst@greek@lower@up\alphaup\else\alphait\fi}% + \def\mst@beta{\ifmst@greek@lower@up\betaup\else\betait\fi}% + \def\mst@gamma{\ifmst@greek@lower@up\gammaup\else\gammait\fi}% + \def\mst@delta{\ifmst@greek@lower@up\deltaup\else\deltait\fi}% + \def\mst@epsilon{\ifmst@greek@lower@up\epsilonup\else\epsilonit\fi}% + \def\mst@zeta{\ifmst@greek@lower@up\zetaup\else\zetait\fi}% + \def\mst@eta{\ifmst@greek@lower@up\etaup\else\etait\fi}% + \def\mst@theta{\ifmst@greek@lower@up\thetaup\else\thetait\fi}% + \def\mst@iota{\ifmst@greek@lower@up\iotaup\else\iotait\fi}% + \def\mst@kappa{\ifmst@greek@lower@up\kappaup\else\kappait\fi}% + \def\mst@lambda{\ifmst@greek@lower@up\lambdaup\else\lambdait\fi}% + \def\mst@mu{\ifmst@greek@lower@up\muup\else\muit\fi}% + \def\mst@nu{\ifmst@greek@lower@up\nuup\else\nuit\fi}% + \def\mst@xi{\ifmst@greek@lower@up\xiup\else\xiit\fi}% + \def\mst@omicron{\ifmst@greek@lower@up\omicronup\else\omicronit\fi}% + \def\mst@pi{\ifmst@greek@lower@up\piup\else\piit\fi}% + \def\mst@rho{\ifmst@greek@lower@up\rhoup\else\rhoit\fi}% + \def\mst@sigma{\ifmst@greek@lower@up\sigmaup\else\sigmait\fi}% + \def\mst@tau{\ifmst@greek@lower@up\tauup\else\tauit\fi}% + \def\mst@upsilon{\ifmst@greek@lower@up\upsilonup\else\upsilonit\fi}% + \def\mst@phi{\ifmst@greek@lower@up\phiup\else\phiit\fi}% + \def\mst@chi{\ifmst@greek@lower@up\chiup\else\chiit\fi}% + \def\mst@psi{\ifmst@greek@lower@up\psiup\else\psiit\fi}% + \def\mst@omega{\ifmst@greek@lower@up\omegaup\else\omegait\fi}% % - \def\mst@digamma{\ifmst@lgr@lower@up\digammaup\else\digammait\fi}% - \def\mst@varsigma{\ifmst@lgr@lower@up\varsigmaup\else\varsigmait\fi}% + \def\mst@digamma{\ifmst@greek@lower@up\digammaup\else\digammait\fi}% + \def\mst@varsigma{\ifmst@greek@lower@up\varsigmaup\else\varsigmait\fi}% \fi \newcommand*{\MTstandardgreek}{} \newcommand*{\MTcustomgreek}{} @@ -1940,52 +1941,52 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue} \fi \def\mst@greek@lsh@loc{\csname mst@ltshape@\mst@version\endcsname}% \def\mst@greek@ush@loc{\csname mst@shape@\mst@version\endcsname}% - \mst@lgr@lower@uptrue + \mst@greek@lower@uptrue \expandafter\in@\expanded{{\mst@greek@lsh@loc.}}{it.,sl.}% - \ifin@\mst@lgr@lower@upfalse\fi - \mst@lgr@upper@uptrue + \ifin@\mst@greek@lower@upfalse\fi + \mst@greek@upper@uptrue \expandafter\in@\expanded{{\mst@greek@ush@loc.}}{it.,sl.}% - \ifin@\mst@lgr@upper@upfalse\fi + \ifin@\mst@greek@upper@upfalse\fi \ifmst@itgreek \def\mst@greek@lsh@loc{\MTgreekitdefault}% \def\mst@greek@ush@loc{\MTgreekitdefault}% - \mst@lgr@lower@upfalse - \mst@lgr@upper@upfalse + \mst@greek@lower@upfalse + \mst@greek@upper@upfalse \fi \ifmst@upgreek \def\mst@greek@lsh@loc{\MTgreekupdefault}% \def\mst@greek@ush@loc{\MTgreekupdefault}% - \mst@lgr@lower@uptrue - \mst@lgr@upper@uptrue + \mst@greek@lower@uptrue + \mst@greek@upper@uptrue \fi \ifmst@frenchmath \ifmst@itgreek\else \ifmst@upgreek\else \def\mst@greek@lsh@loc{\csname mst@shape@\mst@version\endcsname}% \def\mst@greek@ush@loc{\csname mst@shape@\mst@version\endcsname}% - \mst@lgr@lower@uptrue - \mst@lgr@upper@uptrue + \mst@greek@lower@uptrue + \mst@greek@upper@uptrue \fi\fi \fi \ifcase\mst@greek@select \or \def\mst@greek@ush@loc{\MTgreekitdefault}% - \mst@lgr@upper@upfalse + \mst@greek@upper@upfalse \or \def\mst@greek@ush@loc{\MTgreekupdefault}% - \mst@lgr@upper@uptrue + \mst@greek@upper@uptrue \fi \ifmst@LGRgreeks \SetSymbolFont{mtgreekup}{#2}{LGR}{#4}{#5}{\MTgreekupdefault}% \SetSymbolFont{mtgreekit}{#2}{LGR}{#4}{#5}{\MTgreekitdefault}% - \expandafter\let\csname ifmst@lgr@\mst@version @upper@up\expandafter\endcsname - \csname ifmst@lgr@upper@up\endcsname - \expandafter\let\csname ifmst@lgr@\mst@version @lower@up\expandafter\endcsname - \csname ifmst@lgr@lower@up\endcsname + \expandafter\let\csname ifmst@greek@\mst@version @upper@up\expandafter\endcsname + \csname ifmst@greek@upper@up\endcsname + \expandafter\let\csname ifmst@greek@\mst@version @lower@up\expandafter\endcsname + \csname ifmst@greek@lower@up\endcsname \typeout{** Greek letters (upper: - `\ifmst@lgr@upper@up\MTgreekupdefault\else\MTgreekitdefault\fi\string', + `\ifmst@greek@upper@up\MTgreekupdefault\else\MTgreekitdefault\fi\string', lower: - `\ifmst@lgr@lower@up\MTgreekupdefault\else\MTgreekitdefault\fi\string') + `\ifmst@greek@lower@up\MTgreekupdefault\else\MTgreekitdefault\fi\string') will use font family `#4\string' (LGR)^^J** in mathastext math version `\mst@version\string'.}% @@ -1999,14 +2000,14 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue} \ifmst@LGRgreek \SetSymbolFont{mtgreekup}{#2}{LGR}{\mst@greekfont}{#5}{\MTgreekupdefault}% \SetSymbolFont{mtgreekit}{#2}{LGR}{\mst@greekfont}{#5}{\MTgreekitdefault}% - \expandafter\let\csname ifmst@lgr@\mst@version @upper@up\expandafter\endcsname - \csname ifmst@lgr@upper@up\endcsname - \expandafter\let\csname ifmst@lgr@\mst@version @lower@up\expandafter\endcsname - \csname ifmst@lgr@lower@up\endcsname + \expandafter\let\csname ifmst@greek@\mst@version @upper@up\expandafter\endcsname + \csname ifmst@greek@upper@up\endcsname + \expandafter\let\csname ifmst@greek@\mst@version @lower@up\expandafter\endcsname + \csname ifmst@greek@lower@up\endcsname \typeout{** Greek letters (upper: - `\ifmst@lgr@upper@up\MTgreekupdefault\else\MTgreekitdefault\fi\string', + `\ifmst@greek@upper@up\MTgreekupdefault\else\MTgreekitdefault\fi\string', lower: - `\ifmst@lgr@lower@up\MTgreekupdefault\else\MTgreekitdefault\fi\string') + `\ifmst@greek@lower@up\MTgreekupdefault\else\MTgreekitdefault\fi\string') will use font family `\mst@greekfont\string' (LGR)^^J** in mathastext math version `\mst@version\string'.}% \else @@ -2109,10 +2110,10 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue} \mst@subduedminus \else \mst@setalphabets - \expandafter\let\csname ifmst@lgr@upper@up\expandafter\endcsname - \csname ifmst@lgr@\math@version @upper@up\endcsname - \expandafter\let\csname ifmst@lgr@lower@up\expandafter\endcsname - \csname ifmst@lgr@\math@version @lower@up\endcsname + \expandafter\let\csname ifmst@greek@upper@up\expandafter\endcsname + \csname ifmst@greek@\math@version @upper@up\endcsname + \expandafter\let\csname ifmst@greek@lower@up\expandafter\endcsname + \csname ifmst@greek@\math@version @lower@up\endcsname \MTcustomgreek \mst@nonsubduedhbar \mst@nonsubduedinodot @@ -2121,10 +2122,10 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue} \fi \fi \else - \expandafter\let\csname ifmst@lgr@upper@up\expandafter\endcsname - \csname ifmst@lgr@\math@version @upper@up\endcsname - \expandafter\let\csname ifmst@lgr@lower@up\expandafter\endcsname - \csname ifmst@lgr@\math@version @lower@up\endcsname + \expandafter\let\csname ifmst@greek@upper@up\expandafter\endcsname + \csname ifmst@greek@\math@version @upper@up\endcsname + \expandafter\let\csname ifmst@greek@lower@up\expandafter\endcsname + \csname ifmst@greek@\math@version @lower@up\endcsname \MTcustomgreek % new with 1.3d \mst@nonsubduedhbar \mst@nonsubduedinodot @@ -2319,9 +2320,9 @@ defaultbf,defaultit,defaultsf,defaulttt}\mst@nonormalboldtrue} \mst@encoding@normal/\mst@family@normal/\mst@series@normal% (\mst@boldvariant@normal)/\mst@ltshape@normal}% \ifmst@LGRgreek\typeout{** Greek letters (upper: - `\ifmst@lgr@upper@up\MTgreekupdefault\else\MTgreekitdefault\fi\string', + `\ifmst@greek@upper@up\MTgreekupdefault\else\MTgreekitdefault\fi\string', lower: - `\ifmst@lgr@lower@up\MTgreekupdefault\else\MTgreekitdefault\fi\string') + `\ifmst@greek@lower@up\MTgreekupdefault\else\MTgreekitdefault\fi\string') will use font family `\mst@greekfont\string' (LGR)}% \fi \ifmst@nodigits\else |