blob: e5dd42103c012474df6b770a7e9cc3741e7cf715 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
\ProvidesPackage{zlmtt}[2014/06/28 v1.01 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
\RequirePackage{xkeyval}
\if@zlmtt@mw
\edef\mdseries@tt{m} % default mdseries is medium
\edef\bfseries@tt{b} % default bfseries is bold
\DeclareOptionX{light}{\edef\mdseries@tt{l}}
\DeclareOptionX{l}{\edef\mdseries@tt{l}} % make mdseries mean l
\DeclareOptionX{lightcondensed}{\edef\mdseries@tt{lc}}
\DeclareOptionX{lc}{\edef\mdseries@tt{lc}}
\DeclareOptionX{med}{\edef\bfseries@tt{m}} % make bfseries mean m
\DeclareOptionX{m}{\edef\bfseries@tt{m}}
\fi
\DeclareOptionX{proportional}{%
\renewcommand{\ttdefault}{zlmvtt}
}
\DeclareOptionX{p}{%
\renewcommand{\ttdefault}{zlmvtt}
}
\def\zlmtt@scale{1}
\DeclareOptionX{scaled}{\def\zlmtt@scale{#1}}
\ProcessOptionsX\relax
\newcommand{\proptt}[1]{{\fontfamily{zlmvtt}\selectfont #1}}
\newcommand{\monott}[1]{{\fontfamily{zlmtt}\selectfont #1}}
\newcommand{\lctt}[1]{{\fontfamily{zlmtt}\fontseries{lc}\selectfont #1}}
\endinput
|