Debian Codegraph @

texmf-dist/tex/latex/mdwtools/cmtt.sty

raw
1 %%
2 %% This is file `cmtt.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% cmtt.dtx (with options: `sty')
8 %%
9 %% IMPORTANT NOTICE
10 %%
11 %% mdwlist package -- various list-related things
12 %% Copyright (c) 1996 Mark Wooding
13 %%
14 %% This program is free software; you can redistribute it and/or modify
15 %% it under the terms of the GNU General Public License as published by
16 %% the Free Software Foundation; either version 2 of the License, or
17 %% (at your option) any later version.
18 %%
19 %% This program is distributed in the hope that it will be useful,
20 %% but WITHOUT ANY WARRANTY; without even the implied warranty of
21 %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 %% GNU General Public License for more details.
23 %%
24 %% You should have received a copy of the GNU General Public License
25 %% along with this program; if not, write to the Free Software
26 %% Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 %%
28 \NeedsTeXFormat{LaTeX2e}
29 \ProvidesPackage{cmtt}
30 [1996/05/25 1.1 Handing of the cmtt font]
31 %% \CharacterTable
32 %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
33 %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
34 %% Digits \0\1\2\3\4\5\6\7\8\9
35 %% Exclamation \! Double quote \" Hash (number) \#
36 %% Dollar \$ Percent \% Ampersand \&
37 %% Acute accent \' Left paren \( Right paren \)
38 %% Asterisk \* Plus \+ Comma \,
39 %% Minus \- Point \. Solidus \/
40 %% Colon \: Semicolon \; Less than \<
41 %% Equals \= Greater than \> Question mark \?
42 %% Commercial at \@ Left bracket \[ Backslash \\
43 %% Right bracket \] Circumflex \^ Underscore \_
44 %% Grave accent \` Left brace \{ Vertical bar \|
45 %% Right brace \} Tilde \~}
46 %%
47 \newif\ifcmtt@override
48 \newif\ifcmtt@dcfonts
49 \def\@tempa{T1}\ifx\encodingdefault\@tempa
50 \cmtt@dcfontstrue
51 \fi
52 \DeclareOption{override}{\cmtt@overridetrue}
53 \DeclareOption{t1}{\cmtt@dcfontstrue}
54 \DeclareOption{ot1}{\cmtt@dcfontsfalse}
55 \ProcessOptions
56 \DeclareFontEncoding{mTT}{}{}
57 \DeclareFontSubstitution{mTT}{cmtt}{m}{n}
58 \input{mTTenc.def}
59 \DeclareRobustCommand{\mttfamily}{%
60 \fontencoding{mTT}\fontfamily{\ttdefault}\selectfont%
61 }
62 \DeclareTextFontCommand{\textmtt}{\mttfamily}
63 \ifcmtt@override
64 \let\ttfamily\mttfamily
65 \fi
66 \def\mtt@setchar#1#2{%
67 \ifx#1#2\chardef#1`#1\else\let#1#2\fi%
68 \ifnum\catcode`#1=13%
69 \begingroup%
70 \lccode`\~=`#1%
71 \lowercase{\endgroup\let~#1}%
72 \fi%
73 }
74 \def\mtt@chars{%
75 \do\#\#%
76 \do\%\%%
77 \do\&\&%
78 \do\^\^%
79 \do\~\~%
80 \do\'\textquotesingl%
81 \do\"\textquotedbl%
82 \do\|\textbar%
83 \do\$\textdollar%
84 \do\_\textunderscore%
85 \do\{\textbraceleft%
86 \do\}\textbraceright%
87 \do\\\textbackslash%
88 \do\ \textvisiblespace%
89 }
90 \def\mtt@do{\let\do\mtt@setchar\mtt@chars}
91 \DeclareRobustCommand\mtt[1]{\textmtt{\mtt@do#1}}
92 \def\@tabacckludge#1{%
93 \expandafter\@changed@cmd\csname\string#1\endcsname\relax%
94 }
95 \let\a\@tabacckludge
96 \let\nbsp\nobreakspace
97 \endinput
98 %%
99 %% End of file `cmtt.sty'.