texlive[42647] Master/texmf-dist: mweights (4dec16)

commits+karl at tug.org commits+karl at tug.org
Tue Dec 6 23:29:46 CET 2016


Revision: 42647
          http://tug.org/svn/texlive?view=revision&revision=42647
Author:   karl
Date:     2016-12-06 23:29:46 +0100 (Tue, 06 Dec 2016)
Log Message:
-----------
mweights (4dec16)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/mweights/README
    trunk/Master/texmf-dist/tex/latex/mweights/mweights.sty

Modified: trunk/Master/texmf-dist/doc/latex/mweights/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/mweights/README	2016-12-06 22:25:59 UTC (rev 42646)
+++ trunk/Master/texmf-dist/doc/latex/mweights/README	2016-12-06 22:29:46 UTC (rev 42647)
@@ -1,4 +1,4 @@
-This is the README for the mweights package, version 2016-12-02.
+This is the README for the mweights package, version 2016-12-04.
 
 Many font families available for use with LaTeX have multiple
 weights, especially when originally aimed at use on the web. For

Modified: trunk/Master/texmf-dist/tex/latex/mweights/mweights.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/mweights/mweights.sty	2016-12-06 22:25:59 UTC (rev 42646)
+++ trunk/Master/texmf-dist/tex/latex/mweights/mweights.sty	2016-12-06 22:29:46 UTC (rev 42647)
@@ -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 at init{%
 % Define any undefined \mdseries at rm etc. 
 % Defined \mdseries at rm etc. assumed to be fully expanded!
 \ifdefined\mdseries at rm\else\edef\mdseries at rm{\mddefault}\fi
@@ -10,7 +10,6 @@
 \ifdefined\bfseries at sf\else\edef\bfseries at sf{\bfdefault}\fi
 \ifdefined\mdseries at tt\else\edef\mdseries at tt{\mddefault}\fi
 \ifdefined\bfseries at tt\else\edef\bfseries at tt{\bfdefault}\fi
-
 % In case any unexpanded macros present in \rmdefault, etc
 \edef\rmdef at ult{\rmdefault}
 \edef\sfdef at ult{\sfdefault}
@@ -17,8 +16,10 @@
 \edef\ttdef at ult{\ttdefault}
 \edef\bfdef at ult{\bfdefault}
 \edef\mddef at ult{\mddefault}
+}
 
 \DeclareRobustCommand\bfseries{%
+\mweights at init
 \not at math@alphabet\bfseries\mathbf
 \ifx\f at family\rmdef at ult\fontseries\bfseries at rm
 \else\ifx\f at family\sfdef at ult\fontseries\bfseries at sf
@@ -26,6 +27,7 @@
 \else\fontseries\bfdefault\fi\fi\fi\selectfont}%
 
 \DeclareRobustCommand\mdseries{%
+\mweights at init
 \not at math@alphabet\mdseries\relax
 \ifx\f at family\rmdef at ult\fontseries\mdseries at rm
 \else\ifx\f at family\sfdef at ult\fontseries\mdseries at sf
@@ -33,6 +35,7 @@
 \else\fontseries\mddefault\fi\fi\fi\selectfont}
 
 \DeclareRobustCommand\rmfamily{%
+\mweights at init
 \not at math@alphabet\rmfamily\mathrm
 % change the current series before changing the family
 \ifx\f at family\sfdef at ult
@@ -51,6 +54,7 @@
 \fi\fi\fontfamily\rmdefault\selectfont}
 
 \DeclareRobustCommand\sffamily{%
+\mweights at init
 \not at math@alphabet\sffamily\mathsf
 % change the current series before changing the family
 \ifx\f at family\rmdef at ult
@@ -69,6 +73,7 @@
 \fi\fi\fontfamily\sfdefault\selectfont}
 
 \DeclareRobustCommand\ttfamily{%
+\mweights at init
 \not at math@alphabet\ttfamily\mathtt
 % change the current series before changing the family
 \ifx\f at family\rmdef at ult



More information about the tex-live-commits mailing list