\NeedsTeXFormat{LaTeX2e}
\def\fileversion{1.032}
\def\filedate{2022/08/07}
\ProvidesPackage{zlmtt}[\filedate\space v\fileversion. Alternate support package for Latin Modern TypeWriter]
% Load after every package that (re)defines \ttdefault.
\DeclareEncodingSubset{TS1}{zlmtt}{0}
\renewcommand{\ttdefault}{zlmtt}
\newif\if@zlmtt@mw 
\@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}
\def\mdseries@tt{m} % default mdseries is medium
\def\bfseries@tt{b} % default bfseries is bold
\if@zlmtt@mw
  \DeclareOptionX{light}{\def\mdseries@tt{l}}
  \DeclareOptionX{l}{\def\mdseries@tt{l}} % make mdseries mean l
  \DeclareOptionX{lightcondensed}{\def\mdseries@tt{lc}}
  \DeclareOptionX{lc}{\def\mdseries@tt{lc}}
  \DeclareOptionX{med}{\def\bfseries@tt{m}} % make bfseries mean m
  \DeclareOptionX{m}{\def\bfseries@tt{m}}
\fi
\DeclareOptionX{proportional}{%
  \renewcommand{\ttdefault}{zlmvtt}
}
\DeclareOptionX{p}{%
  \renewcommand{\ttdefault}{zlmvtt}
}
\def\zlmtt@scale{1}
\DeclareOptionX{scaled}{\def\zlmtt@scale{#1}}
\DeclareOptionX{scale}{\def\zlmtt@scale{#1}}
\ProcessOptionsX\relax
%\newcommand{\proptt}[1]{{\fontfamily{zlmvtt}\selectfont #1}}
%\newcommand{\monott}[1]{{\fontfamily{zlmtt}\selectfont #1}}
\newcommand{\monott}[1]{{\def\ttdefault{zlmtt}\texttt{#1}}} % 2019-06-11
\newcommand{\proptt}[1]{{\def\ttdefault{zlmvtt}\texttt{#1}}} % ditto
\newcommand{\lctt}[1]{{\fontfamily{zlmtt}\fontseries{lc}\selectfont #1}}

\endinput
