1 % \iffalse meta-comment
4 % The LaTeX3 Project and any individual authors listed elsewhere
7 % This file is part of the LaTeX base system.
8 % -------------------------------------------
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 % http://www.latex-project.org/lppl.txt
15 % and version 1.3c or later is part of all distributions of LaTeX
16 % version 2005/12/01 or later.
18 % This file has the LPPL maintenance status "maintained".
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
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.
31 %%% From File: ltfinal.dtx
35 \ProvidesFile{ltfinal.dtx}
36 [2015/06/23 v2.0h LaTeX Kernel (Final Settings)]
38 \documentclass{ltxdoc}
39 \GetFileInfo{ltfinal.dtx}
51 \MaintainedByLaTeXTeam{latex}
53 \DocInput{ltfinal.dtx}
60 % \section{Final settings}
61 % This section contains the final settings for \LaTeX. It initialises
62 % some debugging and typesetting parameters, sets the default
63 % |\catcode|s and uc/lc codes, and inputs the hyphenation file.
67 % \changes{v0.1a}{1994/03/07}{Initial version, split from latex.dtx}
68 % \changes{v0.1a}{1994/03/07}{Remove oldcomments environment}
69 % \changes{v0.1c}{1994/04/21}{Added comments, set the catcodes of
71 % \changes{v0.1d}{1994/04/23}{Check that \cs{font@submax} is still zero}
72 % \changes{v0.1e}{1994/05/02}{Set all the catcodes}
73 % \changes{v0.1f}{1994/05/03}{Set the catcode of control-J to be
74 % `other', for use in messages.}
75 % \changes{v0.1g}{1994/05/05}{Added empty errhelp.}
76 % \changes{v0.1h}{1994/05/13}{Added package ot1enc, and defined
77 % \cs{@acci}, \cs{@accii} and \cs{@acciii}.}
78 % \changes{v0.1j}{1994/05/18}{Corrected the lccode for d-bar.}
79 % \changes{v0.1k}{1994/05/19}{Removed \cs{makeat...}}
80 % \changes{v1.0n}{1994/05/31}{Renamed lthyphen.* to lthyphen.*.}
81 % \changes{v1.0o}{1994/11/17}
82 % {\cs{@tempa} to \cs{reserved@a}}
83 % \changes{v1.0p}{1994/12/01}
84 % {Renamed lthyphen.* to hyphen.*.}
85 % \changes{v1.0r}{1995/06/05}
86 % {Added \cs{MakeUppercase} and \cs{MakeLowercase}.}
87 % \changes{v1.0s}{1995/06/06}
88 % {Made \cs{MakeUppercase} and \cs{MakeLowercase} brace their
91 % \subsection{Debugging}
93 % By default, \LaTeX{} shows statistics:
99 % \subsection{Typesetting parameters}
101 % \begin{macro}{\@lowpenalty}
102 % \begin{macro}{\@medpenalty}
103 % \begin{macro}{\@highpenalty}
104 % These are penalties used internally.
106 \newcount\@lowpenalty
107 \newcount\@medpenalty
108 \newcount\@highpenalty
115 %\begin{macro}{\newmarks}
116 % \changes{v2.0a}{2014/12/30}{macro added}
117 % \changes{v2.0b}{2015/01/23}{use reserved count 256}
118 % \changes{v2.0g}{2015/06/19}{Use $-1$ for first range to get contiguous allocation}
119 % Allocate extended marks types if etex is active.
120 % Placed here at the end of the format
121 % to increase compatibility with count allocations
122 % in earlier releases.
125 %<*2ekernel|latexrelease>
126 %<latexrelease>\IncludeInRelease{2015/01/01}%
127 %<latexrelease> {\newmarks}{Extended Allocation}%
131 \ifx\marks\@undefined\else
133 \e@alloc\marks \e@alloc@chardef{\count256}\m@ne\e@alloc@top}
138 %</2ekernel|latexrelease>
139 %<latexrelease>\EndIncludeInRelease
140 %<latexrelease>\IncludeInRelease{0000/00/00}%
141 %<latexrelease> {\newmarks}{Extended Allocation}%
142 %<latexrelease>\let\newmarks\@undefined
143 %<latexrelease>\EndIncludeInRelease
148 %\begin{macro}{\newXeTeXintercharclass}
149 % \changes{v2.0a}{2014/12/30}{macro added}
150 % \changes{v2.0b}{2015/01/23}{use reserved count 257}
151 % \changes{v2.0f}{2015/04/28}{define \cs{xe@alloc@intercharclass} for compatibility with older xelatex initilisation}
152 % Allocate |\XeTeXintercharclass| types if xetex is active.
153 % previously defined in |xetex.ini|.
157 %<*2ekernel|latexrelease>
158 %<latexrelease>\IncludeInRelease{2015/01/01}%
159 %<latexrelease> {\newXeTeXintercharclass}{Extended Allocation}%
162 % Classes allocatedfrom 4 (1,2 and 3 are used by CJK), up to 254.
163 % \changes{v2.0g}{2015/06/19}{Use $-1$ for first range to get contiguous allocation}
165 \ifx\XeTeXcharclass\@undefined
167 \countdef\xe@alloc@intercharclass=257
168 \xe@alloc@intercharclass=\thr@@
169 \def\newXeTeXintercharclass{%
170 \e@alloc\XeTeXcharclass\chardef\xe@alloc@intercharclass\m@ne\@cclv}
175 %</2ekernel|latexrelease>
176 %<latexrelease>\EndIncludeInRelease
177 %<latexrelease>\IncludeInRelease{0000/00/00}%
178 %<latexrelease> {\newXeTeXintercharclass}{Extended Allocation}%
179 %<latexrelease> \ifx\XeTeXcharclass\@undefined
180 %<latexrelease> \else
181 %<latexrelease> \newcount\xe@alloc@intercharclass
182 %<latexrelease> \xe@alloc@intercharclass=\thr@@
183 %<latexrelease> \def\xe@alloc@#1#2#3#4#5{\global\advance#1\@ne
184 %<latexrelease> \xe@ch@ck#1#4#2%
185 %<latexrelease> \allocationnumber#1%
186 %<latexrelease> \global#3#5\allocationnumber
187 %<latexrelease> \wlog{\string#5=\string#2\the\allocationnumber}}
188 %<latexrelease> \def\xe@ch@ck#1#2#3{%
189 %<latexrelease> \ifnum#1<#2\else
190 %<latexrelease> \errmessage{No room for a new #3}%
192 %<latexrelease> \def\newXeTeXintercharclass{%
193 %<latexrelease> \xe@alloc@\xe@alloc@intercharclass\XeTeXcharclass\chardef\@cclv}
195 %<latexrelease>\EndIncludeInRelease
201 % The default values of the picture and |\fbox| parameters:
207 % The saved value of \TeX's |\maxdepth|:
209 \@maxdepth = \maxdepth
211 % |\vsize| initialized because a |\clearpage| with |\vsize < \topskip|
213 % |\@colroom| and |\@colht| also initialized because |\vsize| may be
214 % set to them if a |\clearpage| is done before the |\begin{document}|
221 % Initialise |\textheight| |\textwidth| and page style, to avoid
222 % internal errors if they are not set by the class.
223 % \changes{v0.1b}{1994/04/18}
224 % {Initialise \cs{textheight}, \cs{textwidth} and page style}
226 \textheight=.5\maxdimen
227 \textwidth=\textheight
231 % \subsection{Lccodes for hyphenation}
233 % \changes{v2.0a}{2015/01/03}{Unicode data loading added}
234 % \changes{v2.0c}{2015/01/24}{Skip T1-code entirely with Unicode engines}
235 % \changes{v2.0d}{2015/03/26}{Use renamed
236 % \texttt{unicode-letters.def}}
237 % For $7$- and $8$-bit engines the assumption of T1 encodings is the
238 % basis for the hyphenation patterns. That's not the case for the Unicode
239 % engines, where the assumption is engine-native working. The file
240 % |unicode-letters.def| contains data extracted from the
241 % master Unicode Consortium
242 % information covering not only |\lccode| but also other related data. The
243 % |\lccode| part of that at least needs to be loaded before hyphenation is
244 % tackled: Xe\TeX{} follows the standard \TeX{} route of building patterns
245 % into the format. Lua\TeX{} doesn't require this data be loaded \emph{here}
246 % but it does need to be loaded somewhere. Rather than test for the Unicode
247 % engines by name, the approach here is to look for the extended math mode
248 % handling both provide: any other engine developed in this area will
249 % presumably also provide |\Umathcode| (older Xe\TeX{} versions use
250 % |\XeTeXmathcode| so that is covered too).
253 \ifx\Umathcode\@undefined\else 1\fi
254 \ifx\XeTeXmathcode\@undefined\else 1\fi
256 \message{ Unicode character data,}
257 \input{unicode-letters.def}
259 % \changes{v2.0d}{2015/02/03}{Set \cs{lccode} for \texttt{-} with Unicode
261 % There is one over-ride that makes sense here (see below for the same for
262 % $8$-bit engines): setting the lccode for |-| to itself.
264 \lccode`\- =`\- % default hyphen char
266 % The alternative is that a ``traditional'' engine is in use.
270 % \changes{v1.1b}{1998/05/20}{Set up lccodes before loading
271 % hyphenation files: pr/2639}
272 % We set things up so that hyphenation files can assume that the
273 % default (T1) lccodes are in use (at present this also sets up the
275 % We temporarily define |\reserved@a| to apply |\reserved@c| to
276 % all the numbers in the range of its arguments.
278 \def\reserved@a#1#2{%
284 \ifnum\@tempcnta>\@tempcntb\else
285 \reserved@c\@tempcnta
286 \advance\@tempcnta\@ne
287 \expandafter\reserved@b
291 % Depending on the \TeX{} version, we might not be allowed to do
292 % this for non-ASCII characters.
293 % \changes{v1.0n}{1994/06/09}{For \TeX2, do not set codes for higher
294 % half of character table.}
297 \count@=#1\advance\count@ by -"20
301 \reserved@a{`\a}{`\z}
302 \ifnum\inputlineno=\m@ne\else
303 \reserved@a{"A0}{"BC}
304 \reserved@a{"E0}{"FF}
307 % The upper case characters need their |\uccode| and |\lccode| values
308 % set, and their |\sfcode| set to 999.
311 \count@=#1\advance\count@ by "20
316 \reserved@a{`\A}{`\Z}
317 \ifnum\inputlineno=\m@ne\else
318 \reserved@a{"80}{"9C}
319 \reserved@a{"C0}{"DF}
322 % Well, it would be nice if that were correct, but unfortunately, the
323 % Cork encoding contains some odd slots whose uccode or lccode isn't
324 % quite what you'd expect.
326 \uccode`\^^Y=`\I % dotless i
327 \lccode`\^^Y=`\^^Y % dotless i
328 \uccode`\^^Z=`\J % dotless j, ae in OT1
329 \lccode`\^^Z=`\^^Z % dotless j, ae in OT1
330 \ifnum\inputlineno=\m@ne\else
331 \lccode`\^^9d=`\i % dotted I
332 \uccode`\^^9d=`\^^9d % dotted I
333 \lccode`\^^9e=`\^^9e % d-bar
334 \uccode`\^^9e=`\^^d0 % d-bar
337 % Finally here is one that helps hyphenation in the OT1 encoding.
338 % \changes{v1.0z}{1996/10/31}
339 % {Added extra \cs{lcode}, hoping it does no harm in T1 (pr/1969)}
341 \lccode`\^^[=`\^^[ % oe in OT1
344 % And we also set the |\lccode| of |\-| and |\textcompwordmark| so
345 % that they do not prevent hyphenation in the remainder of the word
346 % (as suggested by Lars Helstr\"om).
347 % \changes{v1.1e}{2003/10/13}
348 % {Added extra \cs{lccode} for \cs{-} and \cs{textcompwordmark}}
350 \lccode`\- =`\- % default hyphen char
351 \lccode 127=127 % alternate hyphen char
352 \lccode 23 =23 % textcompwordmark in T1
355 % End of the conditional to select either Unicode or T1 encoding defaults.
360 % This is as good a place as any to active a few Xe\TeX{}-specific
363 \ifx\XeTeXuseglyphmetrics\@undefined
365 \XeTeXuseglyphmetrics=1 %
366 \XeTeXdashbreakstate=1 %
370 % \subsection{Hyphenation}
372 % \changes{v0.1a}{1994/03/07}{move code here from lhyphen.dtx}
373 % \changes{v0.1a}{1994/03/07}
374 % {use \cs{InputIfFileExists} not \cs{IfFileExists}}
375 % \changes{v1.0x}{1995/11/01}
376 % {(DPC) Switch meaning of \cs{@addtofilelist} for cfg files}%
377 % The following code will be compiled into the format file. It checks
378 % for the existence of \texttt{hyphen.cfg} in inputs that file if
379 % found. Otherwise it inputs \texttt{hyphen.ltx}. Note that these
380 % are loaded in \emph{before} the |\catcode|s are set, so local
381 % hyphenation files can use 8-bit input.
383 % We try to load the customized hyphenation description file.
385 \InputIfFileExists{hyphen.cfg}
386 {\typeout{===========================================^^J%
387 Local configuration file hyphen.cfg used^^J%
388 ===========================================}%
389 \def\@addtofilelist##1{\xdef\@filelist{\@filelist,##1}}%
392 \let\@addtofilelist\@gobble
397 % \subsection{Font loading}
398 % Fonts loaded during the formatting process might already have
399 % changed the |\font@submax| from |0pt| to something higher.
400 % If so, we put out a bold warning.
401 % \changes{v0.1l}{1994/05/20}{Use new font warning commands}
403 % \changes{v1.1c}{2000/08/23}{Fix typo in warning}
404 \ifdim \font@submax >\z@
405 \@font@warning{Size substitutions with differences\MessageBreak
406 up to \font@submax\space have occurred.\MessageBreak
408 Please check the transcript file
409 carefully\MessageBreak
410 and redo the format generation if necessary!
412 \errhelp{Only stopped, to give you time to
413 read the above message.}
416 % We reset the macro. Otherwise every user will get a warning on
419 \def\font@submax{0pt}
423 % \subsection{Input encoding}
425 % We temporarily define |\reserved@a| to apply |\reserved@c| to all the
426 % numbers in the range of its arguments.
428 \def\reserved@a#1#2{%
434 \ifnum\@tempcnta>\@tempcntb\else
435 \reserved@c\@tempcnta
436 \advance\@tempcnta\@ne
437 \expandafter\reserved@b
441 % \changes{v0.1e}{1994/05/02}{Added setting the special catcodes.}
442 % \changes{v0.1f}{1994/05/02}{Set the catcode of control-J.}
443 % Set the special catcodes (although some of these are useless, since an
444 % error will have occurred if the catcodes have changed). Note that
445 % |^^J| has catcode `other' for use in warning messages.
464 % \changes{v0.1e}{1994/05/02}{Added setting the `other' catcodes.}
465 % Set the `other' catcodes.
467 \def\reserved@c#1{\catcode#1=12\relax}
470 \reserved@a{`\'}{`\?}
476 % \changes{v0.1e}{1994/05/02}{Added setting the `letter' catcodes.}
477 % Set the `letter' catcodes.
479 \def\reserved@c#1{\catcode#1=11\relax}
480 \reserved@a{`\A}{`\Z}
481 \reserved@a{`\a}{`\z}
483 % \changes{v0.1e}{1994/05/02}{Made slot 127 illegal}
484 % \changes{v1.0n}{1994/11/18}
485 % {re-allow slots 127--255}
486 % All the characters in the range 0--31 and 127--255 are illegal,
487 % \emph{except} tab (|^^I|), nl (|^^J|), ff (|^^L|) and cr (|^^M|).
489 % Now allow 8-bit characters, although their use in this way is
490 % strongly discouraged. See |inputenc.dtx| for a supported mechanism
493 \def\reserved@c#1{\catcode#1=15\relax}
494 \reserved@a{0}{`\^^H}
496 \reserved@a{`\^^N}{31}
497 %\ifnum\inputlineno=\m@ne
500 % \reserved@a{"7F}{"FF}
504 % \subsection{Lccodes and uccodes}
506 % \changes{v1.1b}{1998/05/20}{Set up uc/lccodes after loading
507 % hyphenation files: pr/2639}
508 % We now again set up the default (T1) uc/lccodes.
509 % The lower case characters need their |\uccode| and |\lccode| values
510 % set. Some of this is a repeat of the set-up before loading
512 % Depending on the \TeX{} version, we might not be allowed to do
513 % this for non-ASCII characters.
514 % \changes{v1.0n}{1994/06/09}{For \TeX2, do not set codes for higher
515 % half of character table.}
516 % \changes{v2.0a}{2015/01/03}{Skip resetting codes with Unicode engines}
517 % For the Unicode engines (Xe\TeX{} and Lua\TeX{}) there is no need to
518 % do any of this: they use hyphenation data which does not alter any
519 % of the set up and so this entire block is skipped.
522 \ifx\Umathcode\@undefined\else 1\fi
523 \ifx\XeTeXmathcode\@undefined\else 1\fi
527 \count@=#1\advance\count@ by -"20
531 \reserved@a{`\a}{`\z}
532 \ifnum\inputlineno=\m@ne\else
533 \reserved@a{"A0}{"BC}
534 \reserved@a{"E0}{"FF}
537 % The upper case characters need their |\uccode| and |\lccode| values
538 % set, and their |\sfcode| set to 999.
541 \count@=#1\advance\count@ by "20
546 \reserved@a{`\A}{`\Z}
547 \ifnum\inputlineno=\m@ne\else
548 \reserved@a{"80}{"9C}
549 \reserved@a{"C0}{"DF}
552 % Well, it would be nice if that were correct, but unfortunately, the
553 % Cork encoding contains some odd slots whose uccode or lccode isn't
554 % quite what you'd expect.
556 \uccode`\^^Y=`\I % dotless i
557 \lccode`\^^Y=`\^^Y % dotless i
558 \uccode`\^^Z=`\J % dotless j, ae in OT1
559 \lccode`\^^Z=`\^^Z % dotless j, ae in OT1
560 \ifnum\inputlineno=\m@ne\else
561 \lccode`\^^9d=`\i % dotted I
562 \uccode`\^^9d=`\^^9d % dotted I
563 \lccode`\^^9e=`\^^9e % d-bar
564 \uccode`\^^9e=`\^^d0 % d-bar
567 % Finally here is one that helps hyphenation in the OT1 encoding.
568 % \changes{v1.0z}{1996/10/31}
569 % {Added extra \cs{lcode}, hoping it does no harm in T1 (pr/1969)}
571 \lccode`\^^[=`\^^[ % oe in OT1
572 \fi % End of reset block for 8-bit engines
575 % \begin{macro}{\MakeUppercase}
576 % \begin{macro}{\MakeUppercase}
577 % \begin{macro}{\@uclclist}
579 % \changes{v1.1a}{1997/10/20}{Removed \cs{aa} and \cs{AA} from
580 % \cs{@uclclist} as these are macros.}
582 % And whilst we're doing things with uc/lc tables, here are two
583 % commands to upper- and lower-case a string.
585 % \emph{Note} that this implementation is subject to change! At
586 % the moment we're not providing any way to extend the list of
587 % uc/lc commands, since finding a good interface is difficult.
588 % These commands have some nasty features, such as uppercasing
589 % mathematics, environment names, labels, etc. A much better
590 % long-term solution is to use all-caps fonts, but these aren't
591 % generally available.
593 \DeclareRobustCommand{\MakeUppercase}[1]{{%
595 \def\reserved@a##1##2{\let##1##2\reserved@a}%
596 \expandafter\reserved@a\@uclclist\reserved@b{\reserved@b\@gobble}%
597 \protected@edef\reserved@a{\uppercase{#1}}%
600 \DeclareRobustCommand{\MakeLowercase}[1]{{%
601 \def\reserved@a##1##2{\let##2##1\reserved@a}%
602 \expandafter\reserved@a\@uclclist\reserved@b{\reserved@b\@gobble}%
603 \protected@edef\reserved@a{\lowercase{#1}}%
606 \def\@uclclist{\oe\OE\o\O\ae\AE
607 \dh\DH\dj\DJ\l\L\ng\NG\ss\SS\th\TH}
609 % The above code works, but has the nasty side-effect that if you
610 % say something like:
612 % \markboth{\MakeUppercase\contentsname}
613 % {\MakeUppercase\contentsname}
615 % then the uppercasing is only done to the first letter of the
616 % contents name, since the mark expands out to:
618 % \mark{\protect\MakeUppercase Table of Contents}
619 % {\protect\MakeUppercase Table of Contents}
621 % In order to get round this, we redefine |\MakeUppercase| and
622 % |\MakeLowercase| to grab their argument and brace it. This is a
623 % very low-level hack, and is \emph{not} recommended practice!
624 % This is an instance of a general problem that makes it unsafe to
625 % grab arguments unbraced, and probably needs a more general
626 % solution. For the moment though, this hack will do:
628 \protected@edef\MakeUppercase#1{\MakeUppercase{#1}}
629 \protected@edef\MakeLowercase#1{\MakeLowercase{#1}}
635 % \changes{v1.0h}{1994/05/13}{Added output enc stuff}
636 % \changes{v1.0i}{1994/05/16}{moved output enc stuff to lfonts}
638 % \changes{v0.1a}{1994/03/07}{Add code from the old dump.dtx}
640 % \subsection{Applying Patch files}
641 % Between major releases, small patches will be distributed in
642 % files |ltpatch.ltx| which must be added at this point.
643 % \changes{v1.0m}{1994/06/08}{Add patch file system}
644 % \changes{v2.0h}{2015/06/23}
645 % {set \cs{patch@level} in ltvers rather than in ltfinal/ltpatch}
647 % Patch file code removed.
649 %\IfFileExists{ltpatch.ltx}
650 % {\typeout{=================================^^J%
651 % Applying patch file ltpatch.ltx^^J%
652 % =================================}
653 % \def\fmtversion@topatch{unknown}
654 % \input{ltpatch.ltx}
655 % \ifx\fmtversion\fmtversion@topatch
656 % \ifx\patch@level\@undefined
657 % \typeout{^^J^^J^^J%
658 % !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J%
659 % !! Patch file `ltpatch.ltx' not suitable for this^^J%
660 % !! version of LaTeX.^^J^^J%
661 % !! Please check if initex found an old patch file:^^J%
662 % !! --- if so, rename it or delete it, and redo the^^J%
664 % !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J}%
668 % \changes{v1.0q}{1995/04/21}
669 % {Allow initial patch level 0}
670 % \changes{v1.0t}{1995/06/13}
671 % {Add patch level string more carefully}
672 % The code below adds the `patch level' string to the first |\typeout|
673 % in the startup banner.
675 % \def\fmtversion@topatch{0}%
676 % \ifx\fmtversion@topatch\patch@level\else
677 % \def\reserved@a\typeout##1##2\reserved@a{%
678 % \typeout{##1 patch level \patch@level}##2}
679 % \everyjob\expandafter\expandafter\expandafter{%
680 % \expandafter\reserved@a\the\everyjob\reserved@a}
681 % \let\reserved@a\relax
686 % \typeout{^^J^^J^^J%
687 % !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J%
688 % !! Patch file `ltpatch.ltx' (for version <\fmtversion@topatch>)^^J%
689 % !! is not suitable for version <\fmtversion> of LaTeX.^^J^^J%
690 % !! Please check if initex found an old patch file:^^J%
691 % !! --- if so, rename it or delete it, and redo the^^J%
693 % !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J}%
696 % \let\fmtversion@topatch\relax
700 % \subsection{Freeing Memory}
702 % \begin{macro}{\reserved@a}
703 % \begin{macro}{\reserved@b}
704 % \changes{v1.0v}{1995/10/17}{reset here after the \cs{input} above}
705 % And just to make sure nobody relies on those definitions of
706 % |\reserved@b| and friends.
707 % These macros are reserved for use in the kernel. \emph{Do not use
708 % them as general scratch macros}.
710 \let\reserved@a\@filelist
711 \let\reserved@b=\@undefined
712 \let\reserved@c=\@undefined
713 \let\reserved@d=\@undefined
714 \let\reserved@e=\@undefined
715 \let\reserved@f=\@undefined
720 % \begin{macro}{\toks}
721 % \changes{v1.0y}{1996/07/10}
722 % {Free up memory from scratch registers /2213}
732 % \begin{macro}{\errhelp}
733 % \changes{v0.1g}{1994/05/05}{Set error help empty.}
734 % \changes{v1.1d}{2000/09/01}{Set error help empty at very end
735 % (pr/449 done correctly).}
736 % Empty the error help message, which may have some rubbish:
742 % \subsection{Initialise file list}
744 % \begin{macro}{\@providesfile}
745 % \changes{v1.0v}{1995/10/17}{reset macro}
746 % Initialise for use in the document. During initex a modified version
747 % has been used which leaves debugging information for |latexbug.tex|.
749 \def\@providesfile#1[#2]{%
751 \expandafter\xdef\csname ver@#1\endcsname{#2}%
756 % \begin{macro}{\@filelist}
757 % \changes{v1.0w}{1995/10/19}{Move after \cs{reserved@a} setting:-)}
758 % \begin{macro}{\@addtofilelist}
759 % Reset |\@filelist| so files input while making the format are not
760 % listed. The list built up so far may take up a lot of memory and so
761 % it is moved to |\reserved@a| where it will be overwritten as soon
762 % as almost any \LaTeX\ command is issued in a class file.
763 % However the |latexbug.tex| program will be able to access this
764 % information and insert it into a bug report.
766 \let\@filelist\@gobble
767 \def\@addtofilelist#1{\xdef\@filelist{\@filelist,#1}}%
772 % \subsection{Dumping the format}
773 % Finally we make |@| into a letter, ensure the format will
774 % be in the `normal' error mode, and dump everything into the
776 % \changes{v1.0t}{1995/06/13}
777 % {Call \cs{errorstopmode}}