X-Git-Url: https://git.distorted.org.uk/~mdw/mdwtools/blobdiff_plain/86f6a31e4b41acb71ba37f3838a9ce75f7743330..9cb5c64cc696cd59cf723021386b254ab8de5b13:/cmtt.dtx diff --git a/cmtt.dtx b/cmtt.dtx index 95d284f..a2e9eb2 100644 --- a/cmtt.dtx +++ b/cmtt.dtx @@ -1,41 +1,23 @@ -% \begin{meta-comment} -% -% $Id: cmtt.dtx,v 1.1 2002/02/03 20:49:02 mdw Exp $ -% -% Nicer handling of the Computer Modern Typewriter font -% -% (c) 1996 Mark Wooding -% -%----- Revision history ----------------------------------------------------- -% -% $Log: cmtt.dtx,v $ -% Revision 1.1 2002/02/03 20:49:02 mdw -% Checkin for new build system. -% -% Revision 1.1 1996/11/19 20:47:55 mdw -% Initial revision -% -% -% \end{meta-comment} -% % \begin{meta-comment} %% -%% mdwlist package -- various list-related things -%% Copyright (c) 1996 Mark Wooding +%% cmtt package -- nicer handling of the Computer Modern Typewriter font +%% Copyright (c) 1996, 2002, 2003 Mark Wooding +%% +%% This file is part of the `mdwtools' LaTeX package collection. %% -%% This program is free software; you can redistribute it and/or modify -%% it under the terms of the GNU General Public License as published by -%% the Free Software Foundation; either version 2 of the License, or -%% (at your option) any later version. +%% `mdwtools' is free software: you can redistribute it and/or modify it +%% under the terms of the GNU General Public License as published by the +%% Free Software Foundation; either version 2 of the License, or (at your +%% option) any later version. %% -%% This program is distributed in the hope that it will be useful, -%% but WITHOUT ANY WARRANTY; without even the implied warranty of -%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -%% GNU General Public License for more details. +%% `mdwtools' is distributed in the hope that it will be useful, but +%% WITHOUT ANY WARRANTY; without even the implied warranty of +%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +%% General Public License for more details. %% %% You should have received a copy of the GNU General Public License -%% along with this program; if not, write to the Free Software -%% Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +%% along with `mdwtools'. If not, write to the Free Software Foundation, +%% Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. %% % \end{meta-comment} % @@ -43,12 +25,12 @@ % \begin{meta-comment} %<+sty>\NeedsTeXFormat{LaTeX2e} %<+sty>\ProvidesPackage{cmtt} -%<+fd>\ProvidesFile{mTTcmtt.fd} -%<+def>\ProvidesFile{mTTcmtt.def} -%<+sty|fd|def> [1996/05/25 1.1 Handing of the cmtt font] +%<+fd>\ProvidesFile{mttcmtt.fd} +%<+def>\ProvidesFile{mttcmtt.def} +%<+sty|fd|def> [2020/09/06 1.14.0 Handing of the cmtt font] % \end{meta-comment} % -% ^^A \CheckSum{174} +% \CheckSum{174} %% \CharacterTable %% {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 %% 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 @@ -120,22 +102,22 @@ % Typewriter font, since it doesn't allow hyphenation by default anyway.) % % There are several files you'll need to create: -% \begin{description} \def\makelabel#1{\hskip\labelsep\mttfamily#1\hfil} +% \begin{description} \setdescriptionlabel{\mttfamily#1} % % \item [cmtt.sty] tells \LaTeX\ that there's a new encoding. It also % provides some options for customising some aspects of the % encoding, and defines some useful commands. % -% \item [mTTenc.def] describes the encoding to \LaTeX: it sets up all the +% \item [mttenc.def] describes the encoding to \LaTeX: it sets up all the % appropriate text commands so that they produce beautiful results. % -% \item [mTTcmtt.fd] describes the re-encoded version of the font. This -% is more or less a copy of the file \mtt{OT1cmtt.fd}. +% \item [mttcmtt.fd] describes the re-encoded version of the font. this +% is more or less a copy of the file \mtt{ot1cmtt.fd}. % % \end{description} % % The package accepts some options which may be useful: -% \begin{description} \def\makelabel#1{\hskip\labelsep\sffamily#1\hfil} +% \begin{description} \setdescriptionlabel{\sffamily#1} % % \item [override] overrides the meaning of the \mtt{\\ttfamily} command % (and therefore also the \mtt{\\texttt} command too), making it the @@ -270,7 +252,7 @@ % \end{macrocode} % % Wait: there's a problem. \LaTeX\ will now complain bitterly that it can't -% find the font \mtt{mTT/cmr/m/n}, which is readonable, since I haven't +% find the font \mtt{mTT/cmr/m/n}, which is reasonable, since I haven't % declared any such font. The following line should sort this out, % % \begin{macrocode} @@ -281,7 +263,7 @@ % font variant. % % \begin{macrocode} -\input{mTTenc.def} +\input{mttenc.def} % \end{macrocode} % % \begin{macro}{\mttfamily} @@ -342,7 +324,7 @@ \def\mtt@chars{% \do\#\#% \do\%\%% - \do\&\&% + \do\&\&% \do\^\^% \do\~\~% \do\'\textquotesingl%