| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% Copyright (C) 1993-2025 |
| 4 |
% The LaTeX Project and any individual authors listed elsewhere |
| 5 |
% in this file. |
| 6 |
% |
| 7 |
% This file is part of the LaTeX base system. |
| 8 |
% ------------------------------------------- |
| 9 |
% |
| 10 |
% It may be distributed and/or modified under the |
| 11 |
% conditions of the LaTeX Project Public License, either version 1.3c |
| 12 |
% of this license or (at your option) any later version. |
| 13 |
% The latest version of this license is in |
| 14 |
% https://www.latex-project.org/lppl.txt |
| 15 |
% and version 1.3c or later is part of all distributions of LaTeX |
| 16 |
% version 2008 or later. |
| 17 |
% |
| 18 |
% This file has the LPPL maintenance status "maintained". |
| 19 |
% |
| 20 |
% The list of all files belonging to the LaTeX base distribution is |
| 21 |
% given in the file `manifest.txt'. See also `legal.txt' for additional |
| 22 |
% information. |
| 23 |
% |
| 24 |
% The list of derived (unpacked) files belonging to the distribution |
| 25 |
% and covered by LPPL is defined by the unpacking scripts (with |
| 26 |
% extension .ins) which are part of the distribution. |
| 27 |
% |
| 28 |
% \fi |
| 29 |
% |
| 30 |
% \title{Compatibility mode for \LaTeXe{} emulating \LaTeX~2.09} |
| 31 |
% \author{Alan Jeffrey and Frank Mittelbach} |
| 32 |
% \date{2024/11/16} |
| 33 |
% |
| 34 |
% |
| 35 |
% |
| 36 |
% \changes{v0.01}{1993/12/11}{Created the file, including: |
| 37 |
% setting the compatibility flag, |
| 38 |
% inputting oldlfont.sty, |
| 39 |
% setting the default encoding to be OT1, and |
| 40 |
% inputting the latex209.rc file} |
| 41 |
% \changes{v0.02}{1993/12/12}{Changed the package filename to |
| 42 |
% latex209.sty, and added the provides-package command.} |
| 43 |
% \changes{v0.03}{1993/12/16}{Added an empty mark, replaced |
| 44 |
% provides-package with provides-file, added the compatibility hook.} |
| 45 |
% \changes{v0.04}{1993/12/16}{Moved oldlfont.sty out of the |
| 46 |
% compatibility hook and back into latex209.cmp. Redefined |
| 47 |
% newfontswitch to ignore redefinitions. Set the LaTeX 2e commands |
| 48 |
% to be errors.} |
| 49 |
% \changes{v0.05}{1993/12/17} |
| 50 |
% {Removed the \cs{mark}, since it is now in the kernel.} |
| 51 |
% \changes{v0.06}{1993/12/18}{Replaced the redefinition of |
| 52 |
% \cs{@newfontswitch} to a redefinition of \cs{@renewfontswitch}. |
| 53 |
% Added \cs{sloppy.}} |
| 54 |
% \changes{v0.07}{1993/12/18}{Fixed a bug with \cs{@missingfileerror}.} |
| 55 |
% \changes{v0.08}{1993/12/18}{Added the obsolete .sty files.} |
| 56 |
% \changes{v0.09}{1993/12/20}{Removed art10.sty and friends.} |
| 57 |
% \changes{v0.10}{1994/01/14}{Replaced latex209.rc by latex209.cfg.} |
| 58 |
% \changes{v0.11}{1994/01/21}{Replaced latex209.cmp by latex209.def. |
| 59 |
% Moved half of oldlfont.dtx to here. Split the package dst option |
| 60 |
% into head and tail.} |
| 61 |
% \changes{v0.12}{1994/01/24} |
| 62 |
% {Added \cs{normalshape} and \cs{mediumseries}, and |
| 63 |
% declared the `oldlfont' option to stop oldlfont.sty from being |
| 64 |
% loaded.} |
| 65 |
% \changes{v0.13}{1994/01/31}{removed setting of \cs{normalsize}. FMi} |
| 66 |
% \changes{v0.14}{1994/02/07}{Added it back again.} |
| 67 |
% \changes{v0.15}{1994/02/10}{Renamed \cs{@compatibility} to |
| 68 |
% \cs{@documentclasshook}. Added the check for whether |
| 69 |
% \cs{normalsize} or \cs{@normalsize} needs defined.} |
| 70 |
% \changes{v0.16}{1994/02/11}{Replaced the allocation of temporary |
| 71 |
% dimens for \cs{footheight}, \cs{@maxsep} and \cs{@dblmaxsep} |
| 72 |
% by real dimen variables.} |
| 73 |
% \changes{v0.17}{1994/03/02}{Moved the documentation to the front, so |
| 74 |
% this file can be processed directly without a driver file. |
| 75 |
% Added \cs{@ptscale}, \cs{@halfmag}, \cs{@magscale}, and set the |
| 76 |
% default font to be CMR at 10pt.} |
| 77 |
% \changes{v0.18}{1994/03/11}{Restored the old definition of \cs{verb}. |
| 78 |
% Set the catcodes of the non-alphanumerics.} |
| 79 |
% \changes{v0.19}{1994/04/05}{Switched off more 2e features: \cs{lrbox}, |
| 80 |
% \cs{width}, \cs{height}, \cs{depth} in box dimensions, and the new |
| 81 |
% optional arguments to \cs{parbox}, \cs{minipage} and |
| 82 |
% \cs{newcommand}. The code was provided by DPC. Fixed a misplaced |
| 83 |
% </head!>. Made the \cs{ProvidesPackage} and \cs{ProvidesClass} |
| 84 |
% warnings log messages. Removed \cs{filedate}.} |
| 85 |
% \changes{v0.20}{1994/04/20} |
| 86 |
% {Restored the 2.09 definition of \cs{@noligs}.} |
| 87 |
% \changes{v0.21}{1994/04/24} |
| 88 |
% {Restored the 2.09 definition of \cs{@lquote}.} |
| 89 |
% \changes{v0.22}{1994/05/02}{Added \cs{@latex@e@command}.} |
| 90 |
% \changes{v0.23}{1994/05/11}{Added bezier.sty.} |
| 91 |
% \changes{v0.24}{1994/05/14}{Removed \cs{@@@} and switched the box |
| 92 |
% commands back on, for use in packages.} |
| 93 |
% \changes{v0.24}{1994/05/14}{Changed the 2e command error help.} |
| 94 |
% \changes{v0.24}{1994/05/14}{Removed date from announcement of |
| 95 |
% 2.09 mode.} |
| 96 |
% \changes{v0.25}{1994/05/14}{Added the newlfont option, and rewrote the |
| 97 |
% oldlfont option.} |
| 98 |
% \changes{v0.26}{1994/05/15}{Added the margid and nomargid options.} |
| 99 |
% \changes{v0.27}{1994/05/16}{Fixed a bug with the margid option.} |
| 100 |
% \changes{v0.28}{1994/05/16}{Fixed a bug with \cs{mediumseries}.} |
| 101 |
% \changes{v0.29}{1994/05/17}{Fixed a bug with \cs{newlfont}.} |
| 102 |
% \changes{v0.29}{1994/05/17}{Removed extra spaces from the missing |
| 103 |
% file error.} |
| 104 |
% \changes{v0.29}{1994/05/17}{Made the bezier package use \cs{iffalse} |
| 105 |
% to comment itself out, rather than \%\%, which caused it to |
| 106 |
% appear in every 2.09 file.} |
| 107 |
% \changes{v0.30}{1994/05/18}{Added \cs{@finalstrut}.} |
| 108 |
% \changes{v0.31}{1994/05/20}{New definition of \cs{@finalstrut}.} |
| 109 |
% \changes{v0.31}{1994/05/20}{Added the t1enc package.} |
| 110 |
% \changes{v0.32}{1994/05/20}{Added SLiTeX.} |
| 111 |
% \changes{v0.33}{1994/06/01}{Fixed bug with SLiTeX.} |
| 112 |
% \changes{v0.34}{1994/08/22}{Replaced l2euser by usrguide.} |
| 113 |
% \changes{v0.34}{1994/08/22}{Added a default definition for \cs{+}.} |
| 114 |
% \changes{v0.35}{1994/09/23} |
| 115 |
% {Added spaces to the old font scale commands.} |
| 116 |
% \changes{v0.36}{1994/10/17}{Added an empty \cs{mark} back again.} |
| 117 |
% \changes{v0.37}{1994/10/20}{Corrected a typo.} |
| 118 |
% \changes{v0.38}{1994/11/16}{Removed \cs{LaTeXe} from this list} |
| 119 |
% \changes{v0.39}{1994/11/28}{Added old behaviour of floats and space.} |
| 120 |
% \changes{v0.40}{1995/05/05}{Make \cs{verb} use \cs{tt} font in |
| 121 |
% math mode.} |
| 122 |
% \changes{v0.49}{1995/10/26}{Added code for fleqn.sty, leqno.sty, |
| 123 |
% openbib.sty.} |
| 124 |
% \changes{v0.50}{1995/12/08}{Switched of \cs{@inmathwarn}.} |
| 125 |
% \changes{v0.53}{2015/02/22}{Dropped \cs{@no@font@optfalse} in various places |
| 126 |
% - no longer provided by ltfsscmp.dtx.} |
| 127 |
% |
| 128 |
% \MaintainedByLaTeXTeam{latex} |
| 129 |
% \maketitle |
| 130 |
% |
| 131 |
% \section{Introduction} |
| 132 |
% |
| 133 |
% The file |latex209.def| is read in by \LaTeXe{} whenever it finds a |
| 134 |
% |\documentstyle| rather than |\documentclass| command at the |
| 135 |
% beginning of the file. This indicates a \LaTeX~2.09 document, which |
| 136 |
% should be processed in {\em compatibility mode}. |
| 137 |
% |
| 138 |
% Any document which compiled under \LaTeX~2.09 should compile under |
| 139 |
% compatibility mode, unless it uses low-level commands such as |
| 140 |
% |\tenrm|. |
| 141 |
% |
| 142 |
% \section{The docstrip modules} |
| 143 |
% |
| 144 |
% The following modules are used in the implementation to direct |
| 145 |
% docstrip in generating the external files: |
| 146 |
% \begin{center} |
| 147 |
% \begin{tabular}{ll} |
| 148 |
% driver & produce a documentation driver file \\ |
| 149 |
% head & produce the beginning of |latex209.def| \\ |
| 150 |
% tail & produce the end of |latex209.def| \\ |
| 151 |
% article & produce |article.sty| \\ |
| 152 |
% book & produce |book.sty| \\ |
| 153 |
% report & produce |report.sty| \\ |
| 154 |
% slides & produce |slides.sty| \\ |
| 155 |
% letter & produce |letter.sty| \\ |
| 156 |
% bezier & produce |bezier.sty| \\ |
| 157 |
% fleqn & produce |fleqn.sty| \\ |
| 158 |
% leqno & produce |leqno.sty| \\ |
| 159 |
% openbib & produce |openbib.sty| |
| 160 |
% \end{tabular} |
| 161 |
% \end{center} |
| 162 |
% Between the |head| and |tail| of |latex209.def|, the code for |
| 163 |
% |oldlfont.sty| is included, so \LaTeX~2.09 documents will |
| 164 |
% automatically be run simulating the OFSS. |
| 165 |
% \changes{v0.09}{1993/12/20}{Removed artN.sty, bkN.sty and repN.sty.} |
| 166 |
% \changes{v0.11}{1994/01/21}{Split package into head and tail.} |
| 167 |
% \changes{v0.23}{1994/05/11}{Added bezier option.} |
| 168 |
% |
| 169 |
% \MaybeStop{} |
| 170 |
% |
| 171 |
% \section{Driver} |
| 172 |
% |
| 173 |
% This section contains the driver for this documentation. |
| 174 |
% \begin{macrocode} |
| 175 |
%<*driver> |
| 176 |
\documentclass{ltxdoc} |
| 177 |
\DisableCrossrefs |
| 178 |
% \OnlyDescription |
| 179 |
\begin{document} |
| 180 |
\DocInput{latex209.dtx} |
| 181 |
\end{document} |
| 182 |
%</driver> |
| 183 |
% \end{macrocode} |
| 184 |
% |
| 185 |
% \section{Beginning of latex209.def} |
| 186 |
% |
| 187 |
% \changes{v0.11}{1994/01/21}{oldlfont.dtx is now also used to generate |
| 188 |
% latex209.dtx.} |
| 189 |
% |
| 190 |
% This section describes the beginning of the file |latex209.def|. |
| 191 |
% \begin{macrocode} |
| 192 |
%<*head> |
| 193 |
% \end{macrocode} |
| 194 |
% |
| 195 |
% \subsection{Identification} |
| 196 |
% |
| 197 |
% This file needs to be run with \LaTeXe. |
| 198 |
% \begin{macrocode} |
| 199 |
\NeedsTeXFormat{LaTeX2e} |
| 200 |
% \end{macrocode} |
| 201 |
% Describe the file. |
| 202 |
% \begin{macrocode} |
| 203 |
\ProvidesFile{latex209.def}[2020/11/26 v0.55 Standard LaTeX file] |
| 204 |
% \end{macrocode} |
| 205 |
% \changes{v0.24}{1994/05/14}{Removed date.} |
| 206 |
% \changes{v0.40}{1995/03/21} |
| 207 |
% {(DPC) Do not execute this file twice latex/1460} |
| 208 |
% Announce compatibility mode to the user. |
| 209 |
% \changes{v0.52}{1998/05/13}{Added experimental |
| 210 |
% long typeout to possibly avoid prs like 2807} |
| 211 |
% \begin{macrocode} |
| 212 |
\if@compatibility |
| 213 |
\expandafter\endinput |
| 214 |
\else |
| 215 |
\typeout{^^J\space |
| 216 |
\@spaces\@spaces\space Entering LaTeX 2.09 COMPATIBILITY MODE^^J\space |
| 217 |
*************************************************************^^J\space |
| 218 |
\space\space\space!!WARNING!!\space |
| 219 |
\space\space\space!!WARNING!!\space |
| 220 |
\space\space\space!!WARNING!!\space |
| 221 |
\space\space\space!!WARNING!!\space\space\space ^^J\space |
| 222 |
^^J\space |
| 223 |
This mode attempts to provide an emulation of the LaTeX 2.09^^J\space |
| 224 |
author environment so that OLD documents can be successfully^^J\space |
| 225 |
processed. It should NOT be used for NEW documents!^^J\space |
| 226 |
^^J\space |
| 227 |
New documents should use Standard LaTeX conventions and start^^J\space |
| 228 |
with the \string\documentclass\space command.^^J\space |
| 229 |
^^J\space |
| 230 |
Compatibility mode is UNLIKELY TO WORK with LaTeX 2.09 style^^J\space |
| 231 |
files that change any internal macros, especially not with^^J\space |
| 232 |
those that change the FONT SELECTION or OUTPUT ROUTINES.^^J\space |
| 233 |
^^J\space |
| 234 |
Therefore such style files MUST BE UPDATED to use^^J\space |
| 235 |
\@spaces\@spaces\space Current Standard LaTeX: LaTeX2e.^^J\space |
| 236 |
If you suspect that you may be using such a style file, which^^J\space |
| 237 |
is probably very, very old by now, then you should attempt to^^J\space |
| 238 |
get it updated by sending a copy of this error message to the^^J\space |
| 239 |
author of that file.^^J\space |
| 240 |
*************************************************************^^J} |
| 241 |
\fi |
| 242 |
% \end{macrocode} |
| 243 |
% |
| 244 |
% \subsection{Compatibility flag} |
| 245 |
% |
| 246 |
% \begin{macro}{\@compatibilitytrue} |
| 247 |
% \LaTeXe{} has a flag |\if@compatibility| which can be used by |
| 248 |
% document classes or packages to determine whether they are running |
| 249 |
% in compatibility mode or not. This flag is set true by this file. |
| 250 |
% \begin{macrocode} |
| 251 |
\@compatibilitytrue |
| 252 |
% \end{macrocode} |
| 253 |
% \end{macro} |
| 254 |
% |
| 255 |
% \subsection{Removing features} |
| 256 |
% |
| 257 |
% \changes{v0.22}{1994/05/02}{Added \cs{@latex@e@command}.} |
| 258 |
% \changes{v0.36}{1994/10/17}{Redid switching off commands.} |
| 259 |
% \changes{v0.38}{1994/11/16}{Removed \cs{LaTeXe} from this list} |
| 260 |
% |
| 261 |
% \begin{macro}{\usepackage} |
| 262 |
% \begin{macro}{\listfiles} |
| 263 |
% \begin{macro}{\ensuremath} |
| 264 |
% \begin{macro}{\lrbox} |
| 265 |
% \begin{macro}{\newcommand} |
| 266 |
% These \LaTeXe{} commands are switched off in compatibility mode. |
| 267 |
% This is done by saving the old definition, and redefining the |
| 268 |
% command to call |\@latex@e@error| before executing the old version. |
| 269 |
% \begin{macrocode} |
| 270 |
\def\@tempa#1#2{% |
| 271 |
\expandafter\let\csname @@\string#1\endcsname#1% |
| 272 |
\edef#1{% |
| 273 |
\noexpand\@latex@e@error{\noexpand#2}% |
| 274 |
\expandafter\noexpand\csname @@\string#1\endcsname |
| 275 |
}% |
| 276 |
} |
| 277 |
\@tempa\usepackage\usepackage |
| 278 |
\@tempa\listfiles\listfiles |
| 279 |
\@tempa\ensuremath\ensuremath |
| 280 |
\@tempa\lrbox{\begin{lrbox}}% |
| 281 |
\@tempa\@xargdef{\newcommand{cmd}[args][def]}% |
| 282 |
% \end{macrocode} |
| 283 |
% \end{macro} |
| 284 |
% \end{macro} |
| 285 |
% \end{macro} |
| 286 |
% \end{macro} |
| 287 |
% \end{macro} |
| 288 |
% |
| 289 |
% \changes{v0.22}{1994/05/02} |
| 290 |
% {Added \cs{if@latex@e@errors} and \cs{@@@}.} |
| 291 |
% \changes{v0.24} |
| 292 |
% {1994/05/14}{Removed \cs{if@latex@e@errors} and \cs{@@@}.} |
| 293 |
% \changes{v0.24}{1994/05/14}{Changed the error help.} |
| 294 |
% \changes{v0.36}{1994/10/17}{Initialized \cs{@latex@e@error} to do |
| 295 |
% nothing, and switched it on at the begin document.} |
| 296 |
% |
| 297 |
% \begin{macro}{\@latex@e@error} |
| 298 |
% \begin{macro}{\@latex@e@error@} |
| 299 |
% This error is produced if a user uses a \LaTeXe{} command in |
| 300 |
% compatibility mode. This is to encourage users to move over to |
| 301 |
% using |\documentclass| as quickly as possible. During the preamble |
| 302 |
% the error does nothing (so that packages can use \LaTeXe{} commands) |
| 303 |
% but it is redefined to be an error message at |\begin{document}|. |
| 304 |
% \begin{macrocode} |
| 305 |
\let\@latex@e@error\@gobble |
| 306 |
\def\@latex@e@error@#1{% |
| 307 |
\@latexerr{% |
| 308 |
LaTeX2e command \string#1\space in LaTeX 2.09 document% |
| 309 |
}{% |
| 310 |
This is a LaTeX 2.09 document, but it contains |
| 311 |
\string#1.^^J% |
| 312 |
If you want to use the new features of LaTeX2e, |
| 313 |
your document^^J% |
| 314 |
should begin with \string\documentclass\space |
| 315 |
rather than \string\documentstyle |
| 316 |
}% |
| 317 |
} |
| 318 |
% \end{macrocode} |
| 319 |
% \end{macro} |
| 320 |
% \end{macro} |
| 321 |
% |
| 322 |
% \changes{v0.36}{1994/10/17} |
| 323 |
% {Allow 2e commands to be redefined once with \cs{newcommand}.} |
| 324 |
% \changes{v0.40}{1995/03/21}{ |
| 325 |
% (DPC) Add \cs{r} to the list of 2e commands latex/1424} |
| 326 |
% |
| 327 |
% \begin{macro}{\@ifdefinable} |
| 328 |
% \begin{macro}{\@old@ifdefinable} |
| 329 |
% \begin{macro}{\@@ifdefinable} |
| 330 |
% \begin{macro}{\@latex@e@commands} |
| 331 |
% We trap the |\@notdefinable| error message to check to see if the |
| 332 |
% command is a \LaTeXe{} command, in which case we allow the |
| 333 |
% definition to happen. We keep a list of commands which are |
| 334 |
% allowed to be redefined this way in |\@latex@e@commands|, and |
| 335 |
% remove an entry each time it is defined. |
| 336 |
% \begin{macrocode} |
| 337 |
\let\@old@ifdefinable\@ifdefinable |
| 338 |
\long\def\@ifdefinable#1{% |
| 339 |
\def\@tempa##1#1##2#1##3#1##4\@tempa{% |
| 340 |
\def\@latex@e@commands{##1##2}% |
| 341 |
##3% ##3 will either be \iftrue or \iffalse |
| 342 |
\expandafter\@firstofone |
| 343 |
\else |
| 344 |
\expandafter\@old@ifdefinable\expandafter#1% |
| 345 |
\fi |
| 346 |
}% |
| 347 |
\expandafter\@tempa\@latex@e@commands#1\iftrue#1\iffalse#1\@tempa% |
| 348 |
} |
| 349 |
\let\@@ifdefinable\@ifdefinable |
| 350 |
\def\@latex@e@commands{% |
| 351 |
\usepackage\listfiles\ensuremath\LaTeXe\lrbox |
| 352 |
\th\dh\ng\dj\TH\DH\NG\DJ\k\r\SS |
| 353 |
\guillemetleft\guillemetright |
| 354 |
\guillemotleft\guillemotright\guilsinglleft |
| 355 |
\guilsinglright\quotedblbase\quotesinglbase |
| 356 |
} |
| 357 |
% \end{macrocode} |
| 358 |
% \end{macro} |
| 359 |
% \end{macro} |
| 360 |
% \end{macro} |
| 361 |
% \end{macro} |
| 362 |
% |
| 363 |
% \begin{macro}{\@begin@tempboxa} |
| 364 |
% \changes{v0.22}{1994/05/02}{Commented out the redefinition of |
| 365 |
% \cs{@begin@tempboxa}.} |
| 366 |
% If we were to switch off the new |\width|, |\height| and |\depth| |
| 367 |
% commands, this is how to do it. This isn't done, since these |
| 368 |
% commands may be used in packages. |
| 369 |
% \begin{verbatim} |
| 370 |
%\long\def\@begin@tempboxa#1#2{% |
| 371 |
% \begingroup |
| 372 |
% \setbox\@tempboxa#1{{#2}}} |
| 373 |
% \end{verbatim} |
| 374 |
% \end{macro} |
| 375 |
% |
| 376 |
% \subsection{Document class hook} |
| 377 |
% |
| 378 |
% \begin{macro}{\@documentclasshook} |
| 379 |
% \changes{v0.15}{1994/02/10}{Renamed from \cs{@compatibility} to |
| 380 |
% \cs{@documentclasshook}. Added the check for \cs{@normalsize} and |
| 381 |
% \cs{normalsize} being defined.} |
| 382 |
% \changes{v0.22}{1994/05/02}{Moved switching off commands into the |
| 383 |
% document class hook.} |
| 384 |
% \changes{v0.24}{1994/05/14}{Switched the box commands back on, for use |
| 385 |
% in packages.} |
| 386 |
% \changes{v0.36}{1994/10/17}{Changed the way the 2e command error is |
| 387 |
% activated.} |
| 388 |
% \changes{v0.51}{1996/05/24}{(DPC) Reimplemented for /2153.} |
| 389 |
% This macro is called by each use of |\documentclass|. We define |
| 390 |
% it to define |\@normalsize| and |\normalsize| if necessary, |
| 391 |
% to input each unused option as a package, and to switch off the new |
| 392 |
% \LaTeXe{} commands. However, we leave on the commands |
| 393 |
% |\settoheight|, |\settowidth| and the new options to |\parbox| and |
| 394 |
% |\minipage|, since these are likely to be used in packages. |
| 395 |
% |
| 396 |
% The intention of the strange |\normalsize| tests below are that after |
| 397 |
% the |\documentstyle| command has completed, then |
| 398 |
% if neither of the commands |\normalsize| |
| 399 |
% nor |\@normalsize| were defined by the main style or one of its |
| 400 |
% `substyles' or `options', then |\@normalsize| will be undefined and |
| 401 |
% |\normalsize| will generate an error saying it hasn't been defined. |
| 402 |
% |
| 403 |
% If the style defined either |\normalsize| or \@|normalsize| then |
| 404 |
% these two commands will be |\let| equal to each other, with the |
| 405 |
% definition given by the style file. |
| 406 |
% |
| 407 |
% If the style defines both |\normalsize| and |\@normalsize| then |
| 408 |
% those two definitions are kept. |
| 409 |
% \begin{macrocode} |
| 410 |
\def\@documentclasshook{% |
| 411 |
\RequirePackage\@unusedoptionlist |
| 412 |
\let\@unusedoptionlist\@empty |
| 413 |
\def\@tempa{\@normalsize}% |
| 414 |
\ifx\normalsize\@tempa |
| 415 |
\let\normalsize\@normalsize |
| 416 |
\fi |
| 417 |
\ifx\@normalsize\@undefined |
| 418 |
\let\@normalsize\normalsize |
| 419 |
\fi |
| 420 |
\ifx\normalsize\@undefined |
| 421 |
\let\normalsize\original@normalsize |
| 422 |
\fi |
| 423 |
\let\@latex@e@error\@latex@e@error@} |
| 424 |
% \end{macrocode} |
| 425 |
% \end{macro} |
| 426 |
% |
| 427 |
% \begin{macro}{\original@normalsize} |
| 428 |
% \changes{v0.51}{1996/05/24}{(DPC) Macro added /2153.} |
| 429 |
% Save the original definition of |\normalsize| (which generates an |
| 430 |
% error) |
| 431 |
% \begin{macrocode} |
| 432 |
\let\original@normalsize\normalsize |
| 433 |
% \end{macrocode} |
| 434 |
% \end{macro} |
| 435 |
% |
| 436 |
% \begin{macro}{\normalsize} |
| 437 |
% \changes{v0.14}{1994/02/07}{Added \cs{normalsize}.} |
| 438 |
% Some styles don't define |\normalsize|, just |\@normalsize|. |
| 439 |
% \begin{macrocode} |
| 440 |
\def\normalsize{\@normalsize} |
| 441 |
% \end{macrocode} |
| 442 |
% \end{macro} |
| 443 |
% |
| 444 |
% \subsection{Compatibility with \LaTeX~2.09 document styles} |
| 445 |
% |
| 446 |
% \begin{macro}{\@missingfileerror} |
| 447 |
% If a |.cls| file is missing, we look to see if there is |
| 448 |
% a file of the same name with a |.sty| extension. |
| 449 |
% \changes{v0.06}{1993/12/18}{Corrected a typo |
| 450 |
% \cs{@saved@missingfileerror} |
| 451 |
% should have been \cs{saved@missingfileerror}.} |
| 452 |
% \changes{v0.07}{1993/12/18}{Corrected a typo, I'd forgotten to pass |
| 453 |
% the arguments of \cs{@missingfileerror} on to |
| 454 |
% \cs{saved@missingfileerror}.} |
| 455 |
% \changes{v0.29}{1994/05/17}{Removed extraneous spaces.} |
| 456 |
% \begin{macrocode} |
| 457 |
\@ifundefined{saved@missingfileerror}{ |
| 458 |
\let\saved@missingfileerror=\@missingfileerror |
| 459 |
}{} |
| 460 |
\def\@missingfileerror#1#2{% |
| 461 |
\ifx#2\@clsextension |
| 462 |
\InputIfFileExists{#1.\@pkgextension}{% |
| 463 |
\wlog{Compatibility mode: loading #1.\@pkgextension |
| 464 |
\space rather than #1.#2.}% |
| 465 |
}{% |
| 466 |
\saved@missingfileerror{#1}{#2}% |
| 467 |
}% |
| 468 |
\else |
| 469 |
\saved@missingfileerror{#1}{#2}% |
| 470 |
\fi |
| 471 |
} |
| 472 |
\@ifundefined{@missing@onefilewithoptions}{}{% |
| 473 |
\def\@missing@onefilewithoptions#1{% |
| 474 |
\@pass@ptions\@currext{#1}{\@currname}% |
| 475 |
\@missingfileerror\@currname\@currext |
| 476 |
\let\@currname\@empty}% |
| 477 |
} |
| 478 |
% \end{macrocode} |
| 479 |
% \end{macro} |
| 480 |
% |
| 481 |
% \begin{macro}{\@obsoletefile} |
| 482 |
% For compatibility with the document styles which |\input| the |
| 483 |
% standard \LaTeX~2.09 document styles, we distribute |
| 484 |
% files called |article.sty|, |book.sty|, |report.sty|, |
| 485 |
% |slides.sty| and |letter.sty|. These use the command |
| 486 |
% |\@obsoletefile|, which the \LaTeXe{} kernel defines to produce a |
| 487 |
% warning message. We redefine it to just produce a message in the |
| 488 |
% log file, and to pass any options from the old filename to the |
| 489 |
% new filename. |
| 490 |
% \changes{v0.08}{1993/12/19}{Added this command.} |
| 491 |
% \changes{v0.10}{1994/01/14}{Added the option-passing.} |
| 492 |
% \begin{macrocode} |
| 493 |
\def\@obsoletefile#1#2{% |
| 494 |
\expandafter\let\csname opt@#1\expandafter\endcsname |
| 495 |
\csname opt@\@currname.\@currext\endcsname |
| 496 |
\wlog{Compatibility mode: inputting `#1' |
| 497 |
instead of obsolete `#2'.}} |
| 498 |
% \end{macrocode} |
| 499 |
% \end{macro} |
| 500 |
% |
| 501 |
% \begin{macro}{\footheight} |
| 502 |
% \begin{macro}{\@maxsep} |
| 503 |
% \begin{macro}{\@dblmaxsep} |
| 504 |
% \LaTeX~2.09 supported these parameters, so for compatibility with |
| 505 |
% old document styles we allocate them. |
| 506 |
% \changes{v0.16}{1994/02/11}{Replaced the allocation of temporary |
| 507 |
% dimens for \cs{footheight}, \cs{@maxsep} and \cs{@dblmaxsep} by |
| 508 |
% real dimen variables.} |
| 509 |
% \begin{macrocode} |
| 510 |
\newdimen\footheight |
| 511 |
\newdimen\@maxsep |
| 512 |
\newdimen\@dblmaxsep |
| 513 |
% \end{macrocode} |
| 514 |
% \end{macro} |
| 515 |
% \end{macro} |
| 516 |
% \end{macro} |
| 517 |
% |
| 518 |
% \changes{v0.36}{1994/10/17}{Added an empty \cs{mark}.} |
| 519 |
% \changes{v0.37} |
| 520 |
% {1994/10/20}{Corrected a type with the empty \cs{mark}.} |
| 521 |
% |
| 522 |
% \begin{macro}{\mark} |
| 523 |
% \LaTeX~2.09 initialized an empty mark. Who knows, someone may have |
| 524 |
% relied on it: |
| 525 |
% \begin{macrocode} |
| 526 |
\mark{{}{}} |
| 527 |
% \end{macrocode} |
| 528 |
% We mimic this also for the new mark mechanism (in a low-level |
| 529 |
% way): marks 1,2, and 3 correspond to 2e-left, 2e-right, and |
| 530 |
% 2e-right-noempty. |
| 531 |
% \begin{macrocode} |
| 532 |
\ExplSyntaxOn |
| 533 |
\marks1{\__mark_value:nn {2.09-compat}{}} |
| 534 |
\marks2{\__mark_value:nn {2.09-compat}{}} |
| 535 |
\marks3{\__mark_value:nn {2.09-compat}{}} |
| 536 |
\ExplSyntaxOff |
| 537 |
% \end{macrocode} |
| 538 |
% \end{macro} |
| 539 |
% |
| 540 |
% \subsection{Layout} |
| 541 |
% |
| 542 |
% \begin{macro}{\sloppy} |
| 543 |
% \changes{v0.06}{1993/12/18}{Added \cs{sloppy}} |
| 544 |
% There is a new version of |\sloppy| in \LaTeXe, so we restore the |
| 545 |
% old one. |
| 546 |
% \begin{macrocode} |
| 547 |
\def\sloppy{\tolerance \@M \hfuzz .5\p@ \vfuzz .5\p@} |
| 548 |
% \end{macrocode} |
| 549 |
% \end{macro} |
| 550 |
% |
| 551 |
% \begin{macro}{\@finalstrut} |
| 552 |
% \changes{v0.30}{1994/05/18}{Added \cs{@finalstrut}.} |
| 553 |
% \changes{v0.31}{1994/05/20}{New definition of \cs{@finalstrut}.} |
| 554 |
% The strut which is used in a footnote has changed. This restores |
| 555 |
% the old definition. |
| 556 |
% \begin{macrocode} |
| 557 |
\def\@finalstrut#1{\unskip\strut} |
| 558 |
% \end{macrocode} |
| 559 |
% \end{macro} |
| 560 |
% |
| 561 |
% \begin{macro}{\@marginparreset} |
| 562 |
% \begin{macro}{\@floatboxreset} |
| 563 |
% \changes{v0.39}{1994/11/28}{Added old behaviour of floats and space.} |
| 564 |
% \changes{v0.45}{1995/05/25}{(CAR) Changed method of restoring |
| 565 |
% old behaviour of floats and space.} |
| 566 |
% Restore the old spacing around floats. |
| 567 |
% \begin{macrocode} |
| 568 |
\let \@marginparreset \@empty |
| 569 |
\let \@floatboxreset \@empty |
| 570 |
% \end{macrocode} |
| 571 |
% \end{macro} |
| 572 |
% \end{macro} |
| 573 |
% |
| 574 |
% \begin{macro}{\proclaim} |
| 575 |
% \changes{v0.41}{1995/04/24} |
| 576 |
% {Move here from ltplain.dtx} |
| 577 |
% From plain \TeX. |
| 578 |
% \begin{macrocode} |
| 579 |
\outer\def\proclaim #1. #2\par{% |
| 580 |
\medbreak |
| 581 |
\noindent{\bfseries#1.\enspace}{\slshape#2\par}% |
| 582 |
\ifdim\lastskip<\medskipamount |
| 583 |
\removelastskip\penalty55\medskip |
| 584 |
\fi} |
| 585 |
% \end{macrocode} |
| 586 |
% \end{macro} |
| 587 |
% |
| 588 |
% \begin{macro}{\hang} |
| 589 |
% \begin{macro}{\textindent} |
| 590 |
% \changes{v0.42}{1995/04/27} |
| 591 |
% {Move here from ltplain.dtx} |
| 592 |
% From plain \TeX. |
| 593 |
% \begin{macrocode} |
| 594 |
\def\hang{\hangindent\parindent} |
| 595 |
\def\textindent#1{\indent\llap{#1\enspace}\ignorespaces} |
| 596 |
% \end{macrocode} |
| 597 |
% \end{macro} |
| 598 |
% \end{macro} |
| 599 |
% \begin{macro}{\ttraggedright} |
| 600 |
% \changes{v0.41}{1995/04/24} |
| 601 |
% {Move here from ltplain.dtx} |
| 602 |
% \begin{macrocode} |
| 603 |
\def\ttraggedright{\reset@font\ttfamily\rightskip\z@ plus2em\relax} |
| 604 |
% \end{macrocode} |
| 605 |
% \end{macro} |
| 606 |
% |
| 607 |
% |
| 608 |
% \begin{macro}{\@footnotemark} |
| 609 |
% \changes{v0.43}{1995/05/12} |
| 610 |
% {macro added} |
| 611 |
% \LaTeXe\ version has |\nobreak| to allow hyphenation. |
| 612 |
% \begin{macrocode} |
| 613 |
\def\@footnotemark{% |
| 614 |
\leavevmode |
| 615 |
\ifhmode\edef\@x@sf{\the\spacefactor}\fi |
| 616 |
\@makefnmark |
| 617 |
\ifhmode\spacefactor\@x@sf\fi |
| 618 |
\relax} |
| 619 |
% \end{macrocode} |
| 620 |
% \end{macro} |
| 621 |
% |
| 622 |
% \begin{macro}{\@textsuperscript} |
| 623 |
% \changes{v0.48}{1995/07/07} |
| 624 |
% {macro added for latex/1722} |
| 625 |
% Fudge this command to remove the text font command which |
| 626 |
% is always the first thing in the argument. This is needed |
| 627 |
% as in compatibility mode footnotes are processed in math mode, |
| 628 |
% but the standard classes call |\@textsuperscript| in the definition |
| 629 |
% of |\thanks|. |
| 630 |
% \begin{macrocode} |
| 631 |
\def\@textsuperscript#1{$\m@th^{\@gobble#1}$} |
| 632 |
% \end{macrocode} |
| 633 |
% \end{macro} |
| 634 |
% |
| 635 |
% |
| 636 |
% |
| 637 |
% \begin{macro}{\@makefnmark} |
| 638 |
% \changes{v0.44}{1995/05/20}{macro added} |
| 639 |
% \LaTeXe\ version uses |\textsuperscript| rather than |
| 640 |
% math mode. |
| 641 |
% \begin{macrocode} |
| 642 |
\def\@makefnmark{\hbox{$^{\@thefnmark}\m@th$}} |
| 643 |
% \end{macrocode} |
| 644 |
% \end{macro} |
| 645 |
% |
| 646 |
% \begin{macro}{\thempfootnote} |
| 647 |
% \changes{v0.44}{1995/05/20}{macro added} |
| 648 |
% \LaTeXe\ version has an additional |\itshape| which would not |
| 649 |
% work (and would not make sense) in math mode. |
| 650 |
% \begin{macrocode} |
| 651 |
\def\thempfootnote{\@alph\c@mpfootnote} |
| 652 |
% \end{macrocode} |
| 653 |
% \end{macro} |
| 654 |
% |
| 655 |
% \begin{macro}{\@fnsymbol} |
| 656 |
% \changes{v0.46}{1995/06/30}{macro added} |
| 657 |
% \LaTeX\ version uses |\ensuremath| which does not work in |
| 658 |
% compatibility mode. |
| 659 |
% \begin{macrocode} |
| 660 |
\def\@fnsymbol#1{\ifcase#1\or *\or \dagger\or \ddagger\or |
| 661 |
\mathchar "278\or \mathchar "27B\or \|\or **\or \dagger\dagger |
| 662 |
\or \ddagger\ddagger \else\@ctrerr\fi} |
| 663 |
% \end{macrocode} |
| 664 |
% \end{macro} |
| 665 |
% |
| 666 |
% \begin{macro}{\@inmathwarn} |
| 667 |
% \changes{v0.50}{1995/12/08}{Switched off \cs{@inmathwarn}} |
| 668 |
% \LaTeX\ (1995/12/01) checks for text commands being used in math |
| 669 |
% mode. We switch this off in compatibility mode. |
| 670 |
% \begin{macrocode} |
| 671 |
\let\@inmathwarn\@gobble |
| 672 |
% \end{macrocode} |
| 673 |
% \end{macro} |
| 674 |
% |
| 675 |
% \subsection{Verbatim} |
| 676 |
% |
| 677 |
% \changes{v0.18}{1994/03/11}{Added the changes to \cs{verb}} |
| 678 |
% \changes{v0.40}{1995/05/05}{Make \cs{verb} use \cs{tt} font in |
| 679 |
% math mode.} |
| 680 |
% \begin{macro}{\verb} |
| 681 |
% \begin{macro}{\@sverb} |
| 682 |
% We restore the old definition of |\verb|, but using |
| 683 |
% |\verbatim@font| rather than |\tt|. The use of |\bgroup| and |
| 684 |
% |\egroup| allows us to prefix it with |\hbox| in math mode. |
| 685 |
% \begin{macrocode} |
| 686 |
\def\verb{% |
| 687 |
\relax\ifmmode\hbox\fi\bgroup |
| 688 |
\@noligs |
| 689 |
\verbatim@font |
| 690 |
\let\do\@makeother \dospecials |
| 691 |
\@ifstar{\@sverb}{\@verb}% |
| 692 |
} |
| 693 |
\def\@sverb#1{% |
| 694 |
\def\@tempa ##1#1{\leavevmode\null##1\egroup}% |
| 695 |
\@tempa |
| 696 |
} |
| 697 |
% \end{macrocode} |
| 698 |
% \end{macro} |
| 699 |
% \end{macro} |
| 700 |
% |
| 701 |
% \begin{macro}{\verbatim@nolig@list} |
| 702 |
% \changes{v0.20}{1994/04/20}{Added the redefinition of |
| 703 |
% \cs{verbatim@nolig@list}.} |
| 704 |
% The only ligatures which should be switched off in 2.09 mode are |
| 705 |
% the Spanish punctuation. |
| 706 |
% \begin{macrocode} |
| 707 |
\def\verbatim@nolig@list{\do\`} |
| 708 |
% \end{macrocode} |
| 709 |
% \end{macro} |
| 710 |
% |
| 711 |
% \begin{macro}{\@lquote} |
| 712 |
% \changes{v0.21}{1994/04/24}{Added the definition of \cs{@lquote}.} |
| 713 |
% We restore the old definition of |\@lquote| in case any packages |
| 714 |
% use it. |
| 715 |
% \begin{macrocode} |
| 716 |
\def\@lquote{\leavevmode{\kern\z@}`} |
| 717 |
% \end{macrocode} |
| 718 |
% \end{macro} |
| 719 |
% |
| 720 |
% |
| 721 |
% \subsection{Character codes} |
| 722 |
% |
| 723 |
% \changes{v0.18}{1994/03/11}{Added the catcode changes} |
| 724 |
% |
| 725 |
% By default, \LaTeXe{} makes the input characters 0--8, 11, 14--31 and |
| 726 |
% 128--255 illegal. In compatibility mode, we restore their old |
| 727 |
% meanings. |
| 728 |
% \begin{macrocode} |
| 729 |
\catcode0=9 |
| 730 |
\@tempcnta=1 |
| 731 |
\loop\ifnum\@tempcnta<32 |
| 732 |
\catcode\@tempcnta=12 |
| 733 |
\advance\@tempcnta by 1 |
| 734 |
\repeat% |
| 735 |
\catcode`\^^I=10\relax% |
| 736 |
\catcode`\^^L=13\relax% |
| 737 |
\catcode`\^^M=5\relax% |
| 738 |
\catcode127=15 |
| 739 |
\@tempcnta=128 |
| 740 |
\loop\ifnum\@tempcnta<256 |
| 741 |
\catcode\@tempcnta=12 |
| 742 |
\advance\@tempcnta by 1 |
| 743 |
\repeat |
| 744 |
% \end{macrocode} |
| 745 |
% |
| 746 |
% \subsection{Miscellaneous commands} |
| 747 |
% |
| 748 |
% \begin{macro}{\SLiTeX} |
| 749 |
% The \textsc{Sli\TeX} logo. |
| 750 |
% \begin{macrocode} |
| 751 |
\DeclareRobustCommand{\SLiTeX}{{% |
| 752 |
\normalfont S\kern -.06em |
| 753 |
{\scshape l\kern -.035emi}\kern -.06em |
| 754 |
\TeX}} |
| 755 |
% \end{macrocode} |
| 756 |
% \end{macro} |
| 757 |
% |
| 758 |
% \begin{macro}{\+} |
| 759 |
% The |\+| command should be defined, so that it can be used in |
| 760 |
% |\renewcommand|. |
| 761 |
% \begin{macrocode} |
| 762 |
\let\+\@empty |
| 763 |
% \end{macrocode} |
| 764 |
% \end{macro} |
| 765 |
% |
| 766 |
% \begin{macro}{\@cla} |
| 767 |
% \begin{macro}{\@clb} |
| 768 |
% \changes{v0.47}{1995/09/25} |
| 769 |
% {(DPC) Declare old \cs{cline} registers} |
| 770 |
% \begin{macro}{\mscount} |
| 771 |
% \LaTeX2.09 (and early versions of \LaTeXe) used these count registers |
| 772 |
% in the definition of |\cline| and |\multispan|. |
| 773 |
% Declare them here in case they were used for any other purposes. |
| 774 |
% \begin{macrocode} |
| 775 |
\newcount\@cla |
| 776 |
\newcount\@clb |
| 777 |
\newcount\mscount |
| 778 |
% \end{macrocode} |
| 779 |
% \end{macro} |
| 780 |
% \end{macro} |
| 781 |
% \end{macro} |
| 782 |
% |
| 783 |
% \begin{macro}{\@imakepicbox} |
| 784 |
% \changes{v0.48}{1995/10/16} |
| 785 |
% {(DPC) emulate old behaviour of picture mode makebox} |
| 786 |
% picture mode version |
| 787 |
% \begin{macrocode} |
| 788 |
\long\def\@imakepicbox(#1,#2)[#3]#4{% |
| 789 |
\vbox to#2\unitlength |
| 790 |
{\let\mb@b\vss \let\mb@l\hss\let\mb@r\hss |
| 791 |
\let\mb@t\vss |
| 792 |
\@tfor\reserved@a :=#3\do{% |
| 793 |
\if s\reserved@a |
| 794 |
\let\mb@l\relax\let\mb@r\relax |
| 795 |
\else |
| 796 |
\expandafter\let\csname mb@\reserved@a\endcsname\relax |
| 797 |
\fi}% |
| 798 |
\mb@t |
| 799 |
\hb@xt@ #1\unitlength{\mb@l #4\mb@r}% |
| 800 |
\mb@b |
| 801 |
% \end{macrocode} |
| 802 |
% This kern ensures that a |b| option aligns on the bottom of the |
| 803 |
% text rather than the baseline. this is the documented behaviour in |
| 804 |
% the \LaTeX Book. The kern is removed in compatibility mode. |
| 805 |
% |
| 806 |
% Remove kern for bug compatibility with 2.09. |
| 807 |
% \begin{macrocode} |
| 808 |
% \kern\z@ |
| 809 |
}} |
| 810 |
% \end{macrocode} |
| 811 |
% \end{macro} |
| 812 |
% |
| 813 |
% \begin{macro}{\supereject} |
| 814 |
% \begin{macrocode} |
| 815 |
\def\supereject{\par\penalty-\@MM} |
| 816 |
% \end{macrocode} |
| 817 |
% \end{macro} |
| 818 |
% |
| 819 |
% \begin{macro}{\nofiles} |
| 820 |
% \changes{v0.51}{1996/05/24}{(DPC) Old definition, without \cs{write} |
| 821 |
% added to \cs{protected@write}, for latex/2146} |
| 822 |
% This old version might change the vertical spacing when it is used. |
| 823 |
% Some old document might depend on that changed spacing so\ldots |
| 824 |
% \begin{macrocode} |
| 825 |
\def\nofiles{% |
| 826 |
\@fileswfalse |
| 827 |
\typeout{No auxiliary output files.^^J}% |
| 828 |
\long\def\protected@write##1##2##3{}% |
| 829 |
\let\makeindex\relax |
| 830 |
\let\makeglossary\relax} |
| 831 |
% \end{macrocode} |
| 832 |
% \end{macro} |
| 833 |
% |
| 834 |
% \subsection{Packages and classes} |
| 835 |
% |
| 836 |
% \begin{macro}{\ProvidesPackage} |
| 837 |
% \begin{macro}{\ProvidesClass} |
| 838 |
% We redefine |\ProvidesPackage| and |\ProvidesClass| to produce a |
| 839 |
% log message rather than a warning if they find an unexpected |
| 840 |
% file. |
| 841 |
% \begin{macrocode} |
| 842 |
\def\ProvidesPackage#1{% |
| 843 |
\xdef\@gtempa{#1}% |
| 844 |
\ifx\@gtempa\@currname\else |
| 845 |
\wlog{Compatibility mode: \@cls@pkg\space`\@currname' requested, |
| 846 |
but `#1' provided.}% |
| 847 |
\fi |
| 848 |
\@ifnextchar[\@pr@videpackage{\@pr@videpackage[]}}%] |
| 849 |
\let\ProvidesClass=\ProvidesPackage |
| 850 |
% \end{macrocode} |
| 851 |
% \end{macro} |
| 852 |
% \end{macro} |
| 853 |
% That ends the head of |latex209.def|. |
| 854 |
% \begin{macrocode} |
| 855 |
%</head> |
| 856 |
% \end{macrocode} |
| 857 |
% |
| 858 |
% \section{Middle of latex209.def} |
| 859 |
% |
| 860 |
% At this point, the code for |oldlfont.sty| is read in by the |
| 861 |
% installation script. |
| 862 |
% |
| 863 |
% \section{End of latex209.def} |
| 864 |
% |
| 865 |
% This section describes the end of |latex209.def|. |
| 866 |
% \begin{macrocode} |
| 867 |
%<*tail> |
| 868 |
% \end{macrocode} |
| 869 |
% |
| 870 |
% \subsection{Font commands} |
| 871 |
% |
| 872 |
% \changes{v0.12}{1994/01/24}{Added the oldlfont option.} |
| 873 |
% \changes{v0.25}{1994/05/14}{Added the newlfont option, rewrote the |
| 874 |
% oldlfont option to change math grouping.} |
| 875 |
% \changes{v0.26}{1994/05/15}{Added the margid and nomargid options.} |
| 876 |
% \changes{v0.27}{1994/05/16}{Replaced \# by \#\# in margid.} |
| 877 |
% \changes{v0.28}{1994/05/17}{Replaced \cs{input} newlfont.sty by |
| 878 |
% \cs{OptionNotUsed} in \cs{ds@newlfont}.} |
| 879 |
% |
| 880 |
% \begin{macro}{\ds@oldlfont} |
| 881 |
% \begin{macro}{\ds@newlfont} |
| 882 |
% \begin{macro}{\ds@margid} |
| 883 |
% \begin{macro}{\ds@nomargid} |
| 884 |
% We declare |oldlfont|, |newlfont|, |margid| and |nomargid| |
| 885 |
% options to mimic the \LaTeX~2.09 NFSS1 options. |
| 886 |
% \begin{macrocode} |
| 887 |
\def\ds@oldlfont{% |
| 888 |
%FM \@no@font@optfalse |
| 889 |
\let\math@bgroup\@empty |
| 890 |
\let\math@egroup\@empty |
| 891 |
\let\@@math@bgroup\math@bgroup |
| 892 |
\let\@@math@egroup\math@egroup |
| 893 |
} |
| 894 |
\def\ds@newlfont{% |
| 895 |
%FM \@no@font@optfalse |
| 896 |
\OptionNotUsed |
| 897 |
} |
| 898 |
\def\ds@margid{% |
| 899 |
%FM \@no@font@optfalse |
| 900 |
\let\math@bgroup\bgroup |
| 901 |
\def\math@egroup##1{##1\egroup}% |
| 902 |
\let \@@math@bgroup \math@bgroup |
| 903 |
\let \@@math@egroup \math@egroup |
| 904 |
} |
| 905 |
\let\ds@nomargid\ds@oldlfont |
| 906 |
\@onlypreamble\ds@oldfont |
| 907 |
\@onlypreamble\ds@newfont |
| 908 |
\@onlypreamble\ds@margid |
| 909 |
\@onlypreamble\ds@nomargid |
| 910 |
% \end{macrocode} |
| 911 |
% \end{macro} |
| 912 |
% \end{macro} |
| 913 |
% \end{macro} |
| 914 |
% \end{macro} |
| 915 |
% |
| 916 |
% \begin{macro}{\encodingdefault} |
| 917 |
% The default encoding for old documents is OT1 rather than T1. |
| 918 |
% \begin{macrocode} |
| 919 |
\renewcommand{\encodingdefault}{OT1} |
| 920 |
% \end{macrocode} |
| 921 |
% \end{macro} |
| 922 |
% |
| 923 |
% \begin{macro}{\cmex/m/n/10} |
| 924 |
% Just in case a document style relies on |\cmex/m/n/10| to exist |
| 925 |
% (which may have been hard-wired to |\fam3|) we load the font. |
| 926 |
% \begin{macrocode} |
| 927 |
\expandafter\font\csname cmex/m/n/10\endcsname=cmex10 |
| 928 |
% \end{macrocode} |
| 929 |
% \end{macro} |
| 930 |
% |
| 931 |
% |
| 932 |
% \changes{v0.12}{1994/01/24} |
| 933 |
% {Added \cs{normalshape} and \cs{mediumseries}.} |
| 934 |
% \changes{v0.28}{1994/05/16}{\cs{mediumseries} was using |
| 935 |
% \cs{fontshape} rather than \cs{fontseries}.} |
| 936 |
% |
| 937 |
% \begin{macro}{\normalshape} |
| 938 |
% \begin{macro}{\mediumseries} |
| 939 |
% These commands were used in older versions of NFSS. |
| 940 |
% \begin{macrocode} |
| 941 |
\def\normalshape{\fontshape\shapedefault\selectfont} |
| 942 |
\def\mediumseries{\fontseries\seriesdefault\selectfont} |
| 943 |
% \end{macrocode} |
| 944 |
% \end{macro} |
| 945 |
% \end{macro} |
| 946 |
% \begin{macro}{\DeclareOldFontCommand} |
| 947 |
% We redefine |\DeclareOldFontCommand| to do nothing. This means |
| 948 |
% that any new document classes will have their redefinitions of |
| 949 |
% |\rm|, |\bf| etc.~ignored. |
| 950 |
% \changes{v0.06}{1993/12/18}{Replaced \cs{@newfontswitch} by |
| 951 |
% \cs{@renewfontswitch}.} |
| 952 |
% \changes{v0.11}{1994/01/21}{Removed \cs{RequirePackage}{oldlfont}.} |
| 953 |
% \changes{v0.19}{1994/04/05}{Replaced \cs{@renewfontswitch} by |
| 954 |
% \cs{DeclareOldFontCommand}.} |
| 955 |
% \begin{macrocode} |
| 956 |
\def \DeclareOldFontCommand #1#2#3{% |
| 957 |
\wlog{Compatibility mode: definition |
| 958 |
of \string#1\space ignored.}% |
| 959 |
} |
| 960 |
% \end{macrocode} |
| 961 |
% \end{macro} |
| 962 |
% |
| 963 |
% \changes{v0.17} |
| 964 |
% {1994/03/02}{Added \cs{@halfmag}, \cs{@magscale} and \cs{@ptscale}} |
| 965 |
% \changes{v0.35} |
| 966 |
% {1994/09/23}{Added spaces to the old font scale commands.} |
| 967 |
% |
| 968 |
% \begin{macro}{\@halfmag} |
| 969 |
% \begin{macro}{\@magscale} |
| 970 |
% \begin{macro}{\@ptscale} |
| 971 |
% Some font-specifying commands from \LaTeX~2.09. |
| 972 |
% \begin{macrocode} |
| 973 |
\def\@halfmag{ scaled \magstephalf} |
| 974 |
\def\@magscale#1{ scaled \magstep#1 } |
| 975 |
\def\@ptscale#1{ scaled #100 } |
| 976 |
% \end{macrocode} |
| 977 |
% \end{macro} |
| 978 |
% \end{macro} |
| 979 |
% \end{macro} |
| 980 |
% |
| 981 |
% \begin{macro}{\font} |
| 982 |
% The current font is set to be CMR 10pt, to match \LaTeX~2.09. |
| 983 |
% \begin{macrocode} |
| 984 |
\fontencoding{OT1} \fontfamily{cmr} |
| 985 |
\fontsize{10}{12} \fontseries{m} \fontshape{n} |
| 986 |
\selectfont |
| 987 |
% \end{macrocode} |
| 988 |
% \end{macro} |
| 989 |
% |
| 990 |
% \changes{v0.11}{1994/01/21}{Added the rest of this subsection, which |
| 991 |
% used to be in oldlfont.dtx.} |
| 992 |
% |
| 993 |
% \begin{macro}{\load} |
| 994 |
% The |\load| command is no longer needed, it is therefore |
| 995 |
% defined to do nothing. |
| 996 |
% \begin{macrocode} |
| 997 |
\let\load\@gobbletwo |
| 998 |
% \end{macrocode} |
| 999 |
% \end{macro} |
| 1000 |
% |
| 1001 |
% Here are three delimiters which have be partly disabled by |
| 1002 |
% NFSS2 (the small variants) since the corresponding fonts are |
| 1003 |
% normally not preloaded as math symbol fonts. |
| 1004 |
% \begin{macrocode} |
| 1005 |
\DeclareMathDelimiter{\lgroup} % extensible ( with sharper tips |
| 1006 |
{\mathopen}{bold}{"28}{largesymbols}{"3A} |
| 1007 |
\DeclareMathDelimiter{\rgroup} % extensible ) with sharper tips |
| 1008 |
{\mathclose}{bold}{"29}{largesymbols}{"3B} |
| 1009 |
\DeclareMathDelimiter{\bracevert} % the vertical bar that extends braces |
| 1010 |
{\mathord}{typewriter}{"7C}{largesymbols}{"3E} |
| 1011 |
% \end{macrocode} |
| 1012 |
% |
| 1013 |
% In old documents we might find some usages of |\bffam| etc. Thus |
| 1014 |
% we add the following code: |
| 1015 |
% \begin{macrocode} |
| 1016 |
\let\bffam\symbold |
| 1017 |
\let\sffam\symsans |
| 1018 |
\let\itfam\symitalic |
| 1019 |
\let\ttfam\symtypewriter |
| 1020 |
\let\scfam\symsmallcaps |
| 1021 |
\let\slfam\symslanted |
| 1022 |
\let\rmfam\symoperators |
| 1023 |
% \end{macrocode} |
| 1024 |
% |
| 1025 |
% Below are the |\..pt| commands with hopefully the same |
| 1026 |
% functionality as in the old \texttt{lfonts.tex}. Notice that the |
| 1027 |
% |\baselineskip| parameter wasn't set by these commands so that |
| 1028 |
% using them now shouldn't set this either. Thus we go low-level. |
| 1029 |
% This means that the commands are now fragile but I think they |
| 1030 |
% have been fragile before. |
| 1031 |
% \begin{macrocode} |
| 1032 |
\newcommand\vpt {\edef\f@size{\@vpt}\rm} |
| 1033 |
\newcommand\vipt {\edef\f@size{\@vipt}\rm} |
| 1034 |
\newcommand\viipt {\edef\f@size{\@viipt}\rm} |
| 1035 |
\newcommand\viiipt{\edef\f@size{\@viiipt}\rm} |
| 1036 |
\newcommand\ixpt {\edef\f@size{\@ixpt}\rm} |
| 1037 |
\newcommand\xpt {\edef\f@size{\@xpt}\rm} |
| 1038 |
\newcommand\xipt {\edef\f@size{\@xipt}\rm} |
| 1039 |
\newcommand\xiipt {\edef\f@size{\@xiipt}\rm} |
| 1040 |
\newcommand\xivpt {\edef\f@size{\@xivpt}\rm} |
| 1041 |
\newcommand\xviipt{\edef\f@size{\@xviipt}\rm} |
| 1042 |
\newcommand\xxpt {\edef\f@size{\@xxpt}\rm} |
| 1043 |
\newcommand\xxvpt {\edef\f@size{\@xxvpt}\rm} |
| 1044 |
% \end{macrocode} |
| 1045 |
% |
| 1046 |
% \subsection{User customization} |
| 1047 |
% |
| 1048 |
% For sites which customized their version of \LaTeX~2.09, we provide |
| 1049 |
% a file |latex209.cfg|, which is loaded every time we enter |
| 1050 |
% compatibility mode. If the file doesn't exist, we don't do |
| 1051 |
% anything. |
| 1052 |
% \begin{macrocode} |
| 1053 |
\InputIfFileExists{latex209.cfg}{}{} |
| 1054 |
% \end{macrocode} |
| 1055 |
% That ends the file |latex209.def|. |
| 1056 |
% \begin{macrocode} |
| 1057 |
%</tail> |
| 1058 |
% \end{macrocode} |
| 1059 |
% |
| 1060 |
% \section{Obsolete style files} |
| 1061 |
% |
| 1062 |
% \changes{v0.08}{1993/12/19}{Added this section.} |
| 1063 |
% \changes{v0.09}{1993/12/20}{Removed artN.sty, bkN.sty and repN.sty.} |
| 1064 |
% \changes{v0.23}{1994/05/11}{Added bezier.sty.} |
| 1065 |
% \changes{v0.31}{1994/05/20}{Added t1enc.sty.} |
| 1066 |
% |
| 1067 |
% For each of the standard \LaTeX~2.09 document styles, we produce a |
| 1068 |
% file which points to the appropriate \LaTeXe{} document class file. |
| 1069 |
% This means that any styles which say |\input article.sty| should |
| 1070 |
% still work. |
| 1071 |
% |
| 1072 |
% \begin{macrocode} |
| 1073 |
%<*article|book|report|letter|slides> |
| 1074 |
\NeedsTeXFormat{LaTeX2e} |
| 1075 |
%</article|book|report|letter|slides> |
| 1076 |
%<*article> |
| 1077 |
\@obsoletefile{article.cls}{article.sty} |
| 1078 |
\LoadClass{article} |
| 1079 |
%</article> |
| 1080 |
%<*book> |
| 1081 |
\@obsoletefile{book.cls}{book.sty} |
| 1082 |
\LoadClass{book} |
| 1083 |
%</book> |
| 1084 |
%<*report> |
| 1085 |
\@obsoletefile{report.cls}{report.sty} |
| 1086 |
\LoadClass{report} |
| 1087 |
%</report> |
| 1088 |
%<*letter> |
| 1089 |
\@obsoletefile{letter.cls}{letter.sty} |
| 1090 |
\LoadClass{letter} |
| 1091 |
%</letter> |
| 1092 |
%<*slides> |
| 1093 |
\@obsoletefile{slides.cls}{slides.sty} |
| 1094 |
\LoadClass{slides} |
| 1095 |
%</slides> |
| 1096 |
% \end{macrocode} |
| 1097 |
% We also produce empty |fleqn.sty| and |leqno.sty| files in case |
| 1098 |
% anyone has |\input| one of them. |
| 1099 |
% \begin{macrocode} |
| 1100 |
%<*fleqn> |
| 1101 |
\@obsoletefile{fleqn.clo}{fleqn.sty} |
| 1102 |
\input{fleqn.clo} |
| 1103 |
%</fleqn> |
| 1104 |
%<*leqno> |
| 1105 |
\@obsoletefile{leqno.clo}{leqno.sty} |
| 1106 |
\input{leqno.clo} |
| 1107 |
%</leqno> |
| 1108 |
% \end{macrocode} |
| 1109 |
% We also produce an empty |openbib.sty| in case anyone has |\input| |
| 1110 |
% |openbib.sty|. The |openbib| class option is now part of the kernel. |
| 1111 |
% \begin{macrocode} |
| 1112 |
%<*openbib> |
| 1113 |
\iffalse |
| 1114 |
|
| 1115 |
The openbib option is now part of LaTeX thus this package is no |
| 1116 |
longer necessary. It is only retained for upward compatibility. |
| 1117 |
See the 2nd edition of the LaTeX book, or the file usrguide.tex |
| 1118 |
which comes with the LaTeX distribution, for more details. |
| 1119 |
|
| 1120 |
\fi |
| 1121 |
%</openbib> |
| 1122 |
% \end{macrocode} |
| 1123 |
% We also produce an empty |bezier.sty| in case anyone has |\input| |
| 1124 |
% |bezier.sty|. The |\bezier| command is now part of the kernel. |
| 1125 |
% \begin{macrocode} |
| 1126 |
%<*bezier> |
| 1127 |
\iffalse |
| 1128 |
|
| 1129 |
The \bezier command is now part of LaTeX thus this package is no |
| 1130 |
longer necessary. It is only retained for upward compatibility. |
| 1131 |
Also, please note that LaTeX now offers an extended bezier command |
| 1132 |
which automatically calculates the number of points needed for the |
| 1133 |
plot. See the 2nd edition of the LaTeX book, or the file |
| 1134 |
usrguide.tex which comes with the LaTeX distribution, for more |
| 1135 |
details. |
| 1136 |
|
| 1137 |
\fi |
| 1138 |
%</bezier> |
| 1139 |
% \end{macrocode} |
| 1140 |
% We also produce a |t1enc| package, for compatibility with the |
| 1141 |
% Companion. This has been replaced by the |fontenc| package. |
| 1142 |
% \begin{macrocode} |
| 1143 |
%<*t1enc> |
| 1144 |
\NeedsTeXFormat{LaTeX2e} |
| 1145 |
\ProvidesPackage{t1enc}[1994/06/01 Standard LaTeX package] |
| 1146 |
\renewcommand{\encodingdefault}{T1} |
| 1147 |
\fontencoding{T1}\selectfont |
| 1148 |
%</t1enc> |
| 1149 |
% \end{macrocode} |
| 1150 |
% \DeleteShortVerb{\|} |
| 1151 |
% \Finale |
| 1152 |
\endinput |