From f075bfd65ba4e1d7134779fbae632ba3f73e7a58 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 3 Dec 2016 22:27:09 +0000 Subject: mweights (3dec16) git-svn-id: svn://tug.org/texlive/trunk@42632 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/mweights/mweights.sty | 33 +++++++++++------------ 1 file changed, 16 insertions(+), 17 deletions(-) (limited to 'Master/texmf-dist/tex') diff --git a/Master/texmf-dist/tex/latex/mweights/mweights.sty b/Master/texmf-dist/tex/latex/mweights/mweights.sty index ea40621dedd..a50156de382 100644 --- a/Master/texmf-dist/tex/latex/mweights/mweights.sty +++ b/Master/texmf-dist/tex/latex/mweights/mweights.sty @@ -1,23 +1,22 @@ \ProvidesPackage{mweights} - [2016/08/15 (Bob Tennent) Support package for multiple-weight font packages. ] + [2016/12/02 (Bob Tennent) Support package for multiple-weight font packages. ] -\AtBeginDocument{% - % Define any undefined \mdseries@rm etc. - % Defined \mdseries@rm etc. assumed to be fully expanded! - \ifdefined\mdseries@rm\else\edef\mdseries@rm{\mddefault}\fi - \ifdefined\bfseries@rm\else\edef\bfseries@rm{\bfdefault}\fi - \ifdefined\mdseries@sf\else\edef\mdseries@sf{\mddefault}\fi - \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} -} +% Define any undefined \mdseries@rm etc. +% Defined \mdseries@rm etc. assumed to be fully expanded! +\ifdefined\mdseries@rm\else\edef\mdseries@rm{\mddefault}\fi +\ifdefined\bfseries@rm\else\edef\bfseries@rm{\bfdefault}\fi +\ifdefined\mdseries@sf\else\edef\mdseries@sf{\mddefault}\fi +\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{% \not@math@alphabet\bfseries\mathbf -- cgit v1.2.3