summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/zlmtt
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-12-22 21:18:08 +0000
committerKarl Berry <karl@freefriends.org>2021-12-22 21:18:08 +0000
commit6eb6077eeb10b564fdb53c35df9f212c8f1d2a7c (patch)
tree24610737c83445f7e9b220e487ab60ab60a1b06d /Master/texmf-dist/tex/latex/zlmtt
parentf6cf5c218cb5b0a743e46d48baabd56627d40ad1 (diff)
zlmtt fix flatten
git-svn-id: svn://tug.org/texlive/trunk@61379 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/zlmtt')
-rw-r--r--Master/texmf-dist/tex/latex/zlmtt/zlmtt.sty18
1 files changed, 15 insertions, 3 deletions
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