diff options
author | Norbert Preining <norbert@preining.info> | 2021-12-23 03:00:54 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-12-23 03:00:54 +0000 |
commit | efa3a013f699c533896b44e4fcb74c730e94ad34 (patch) | |
tree | 33ca0df069302a84b2b4ad8f53447960ae33bb9b /fonts/zlmtt/tex | |
parent | 9105ca38c03b7a88ed0c306472d9560cc5f206bd (diff) |
CTAN sync 202112230300
Diffstat (limited to 'fonts/zlmtt/tex')
-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 |