From 6eb6077eeb10b564fdb53c35df9f212c8f1d2a7c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 22 Dec 2021 21:18:08 +0000 Subject: zlmtt fix flatten git-svn-id: svn://tug.org/texlive/trunk@61379 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/zlmtt/zlmtt.sty | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'Master/texmf-dist/tex/latex/zlmtt') diff --git a/Master/texmf-dist/tex/latex/zlmtt/zlmtt.sty b/Master/texmf-dist/tex/latex/zlmtt/zlmtt.sty index af0569393bb..b8e0d167c95 100644 --- a/Master/texmf-dist/tex/latex/zlmtt/zlmtt.sty +++ b/Master/texmf-dist/tex/latex/zlmtt/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 -- cgit v1.2.3