diff options
Diffstat (limited to 'fonts/zlmtt/tex/zlmtt.sty')
-rw-r--r-- | fonts/zlmtt/tex/zlmtt.sty | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/fonts/zlmtt/tex/zlmtt.sty b/fonts/zlmtt/tex/zlmtt.sty index af0569393b..b8e0d167c9 100644 --- a/fonts/zlmtt/tex/zlmtt.sty +++ b/fonts/zlmtt/tex/zlmtt.sty @@ -1,9 +1,21 @@ -\ProvidesPackage{zlmtt}[2019/06/11 v1.02 Alternate support package for Latin Modern TypeWriter] +\NeedsTeXFormat{LaTeX2e} +\def\fileversion{1.03} +\def\filedate{2021/12/21} +\ProvidesPackage{zlmtt}[\filedate\space v\fileversion. Alternate support package for Latin Modern TypeWriter] % Load after every package that (re)defines \ttdefault. \renewcommand{\ttdefault}{zlmtt} \newif\if@zlmtt@mw -\IfFileExists{mweights.sty}{\RequirePackage{mweights}\@zlmtt@mwtrue% -}{}% allows choice of how to render medium, bold +\@ifpackageloaded{mweights}{\@zlmtt@mwtrue}{% + \IfFileExists{mweights.sty}{\RequirePackage{mweights}\@zlmtt@mwtrue + }{}% +} +%The code above, suggested by Maurice Hansen, handles in a more +% intelligent way the possibility that because the mweights code is now +% built into the latex kernel, mweights.sty might not continue to be +% provided as a stand-alone package. +%Replaced code follows: +%\IfFileExists{mweights.sty}{\RequirePackage{mweights}\@zlmtt@mwtrue% +%}{}% allows choice of how to render medium, bold \RequirePackage{xkeyval} \if@zlmtt@mw \edef\mdseries@tt{m} % default mdseries is medium |