diff options
author | Karl Berry <karl@freefriends.org> | 2016-12-06 22:29:46 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-12-06 22:29:46 +0000 |
commit | 33409d331a3e1f9eb622961494046256813e4392 (patch) | |
tree | 9c506659e56fe28a0c855a00ff2c7047ab422d9e /Master/texmf-dist/tex/latex/mweights | |
parent | 80ccb8b3240cecd4e00cd168b5ece7b07376287e (diff) |
mweights (4dec16)
git-svn-id: svn://tug.org/texlive/trunk@42647 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/mweights')
-rw-r--r-- | Master/texmf-dist/tex/latex/mweights/mweights.sty | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/mweights/mweights.sty b/Master/texmf-dist/tex/latex/mweights/mweights.sty index a50156de382..4fe5df421ff 100644 --- a/Master/texmf-dist/tex/latex/mweights/mweights.sty +++ b/Master/texmf-dist/tex/latex/mweights/mweights.sty @@ -1,7 +1,7 @@ \ProvidesPackage{mweights} - [2016/12/02 (Bob Tennent) Support package for multiple-weight font packages. ] - + [2016/12/04 (Bob Tennent) Support package for multiple-weight font packages. ] +\def\mweights@init{% % Define any undefined \mdseries@rm etc. % Defined \mdseries@rm etc. assumed to be fully expanded! \ifdefined\mdseries@rm\else\edef\mdseries@rm{\mddefault}\fi @@ -10,15 +10,16 @@ \ifdefined\bfseries@sf\else\edef\bfseries@sf{\bfdefault}\fi \ifdefined\mdseries@tt\else\edef\mdseries@tt{\mddefault}\fi \ifdefined\bfseries@tt\else\edef\bfseries@tt{\bfdefault}\fi - % In case any unexpanded macros present in \rmdefault, etc \edef\rmdef@ult{\rmdefault} \edef\sfdef@ult{\sfdefault} \edef\ttdef@ult{\ttdefault} \edef\bfdef@ult{\bfdefault} \edef\mddef@ult{\mddefault} +} \DeclareRobustCommand\bfseries{% +\mweights@init \not@math@alphabet\bfseries\mathbf \ifx\f@family\rmdef@ult\fontseries\bfseries@rm \else\ifx\f@family\sfdef@ult\fontseries\bfseries@sf @@ -26,6 +27,7 @@ \else\fontseries\bfdefault\fi\fi\fi\selectfont}% \DeclareRobustCommand\mdseries{% +\mweights@init \not@math@alphabet\mdseries\relax \ifx\f@family\rmdef@ult\fontseries\mdseries@rm \else\ifx\f@family\sfdef@ult\fontseries\mdseries@sf @@ -33,6 +35,7 @@ \else\fontseries\mddefault\fi\fi\fi\selectfont} \DeclareRobustCommand\rmfamily{% +\mweights@init \not@math@alphabet\rmfamily\mathrm % change the current series before changing the family \ifx\f@family\sfdef@ult @@ -51,6 +54,7 @@ \fi\fi\fontfamily\rmdefault\selectfont} \DeclareRobustCommand\sffamily{% +\mweights@init \not@math@alphabet\sffamily\mathsf % change the current series before changing the family \ifx\f@family\rmdef@ult @@ -69,6 +73,7 @@ \fi\fi\fontfamily\sfdefault\selectfont} \DeclareRobustCommand\ttfamily{% +\mweights@init \not@math@alphabet\ttfamily\mathtt % change the current series before changing the family \ifx\f@family\rmdef@ult |