blob: c19ec5c6209ea567ed3c088bb81f65daf22d28b4 (
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
32
33
34
35
36
37
38
39
|
\NeedsTeXFormat{LaTeX2e}
\def\filedate{2014/04/28}
\def\fileversion{1.0}
\ProvidesPackage{newtxtt}[\filedate\space v\fileversion]
\message{`newtxtt' v\fileversion, \filedate\space Typewriter text macros based on txfonts (msharpe)}
\RequirePackage[T1]{fontenc}
\RequirePackage{textcomp}
\DeclareEncodingSubset{TS1}{newtxtt}{0}
\edef\newtxtt@fig{a}
\IfFileExists{xkeyval.sty}{
\RequirePackage{xkeyval}
\define@choicekey*+{newtxtt.sty}{zerostyle}[\val\nr]{a,b,c,d}[a]{%
\ifcase\nr\relax
\edef\newtxtt@fig{a}
\or
\edef\newtxtt@fig{b}
\or
\edef\newtxtt@fig{c}
\or
\edef\newtxtt@fig{d}
\fi
}{%
\PackageWarning{newtxtt}{Option zerostyle must be one of a,b,c,d. Using `a'.}%
}
\newcommand*{\newtxtt@scale}{1}
\DeclareOptionX{scale}{\renewcommand*{\newtxtt@scale}{##1}}
\DeclareOptionX{scaled}{\renewcommand*{\newtxtt@scale}{##1}}
}{
\let\DeclareOptionX\DeclareOption
\let\ExecuteOptionsX\ExecuteOptions
\let\ProcessOptionsX\ProcessOptions
}
\ProcessOptionsX<newtxtt.sty>
\renewcommand*{\ttdefault}{newtxtt}
\endinput
|