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
194 %<latexrelease> \XeTeXcharclass\chardef\@cclv}
196 %<latexrelease>\EndIncludeInRelease
202 % The default values of the picture and |\fbox| parameters:
208 % The saved value of \TeX's |\maxdepth|:
210 \@maxdepth = \maxdepth
212 % |\vsize| initialized because a |\clearpage| with |\vsize < \topskip|
214 % |\@colroom| and |\@colht| also initialized because |\vsize| may be
215 % set to them if a |\clearpage| is done before the |\begin{document}|
222 % Initialise |\textheight| |\textwidth| and page style, to avoid
223 % internal errors if they are not set by the class.
224 % \changes{v0.1b}{1994/04/18}
225 % {Initialise \cs{textheight}, \cs{textwidth} and page style}
227 \textheight=.5\maxdimen
228 \textwidth=\textheight
232 % \subsection{Lccodes for hyphenation}
234 % \changes{v2.0a}{2015/01/03}{Unicode data loading added}
235 % \changes{v2.0c}{2015/01/24}{Skip T1-code entirely with Unicode engines}
236 % \changes{v2.0d}{2015/03/26}{Use renamed
237 % \texttt{unicode-letters.def}}
238 % For $7$- and $8$-bit engines the assumption of T1 encodings is the
239 % basis for the hyphenation patterns. That's not the case for the Unicode
240 % engines, where the assumption is engine-native working. The file
241 % |unicode-letters.def| contains data extracted from the
242 % master Unicode Consortium
243 % information covering not only |\lccode| but also other related data. The
244 % |\lccode| part of that at least needs to be loaded before hyphenation is
245 % tackled: Xe\TeX{} follows the standard \TeX{} route of building patterns
246 % into the format. Lua\TeX{} doesn't require this data be loaded \emph{here}
247 % but it does need to be loaded somewhere. Rather than test for the Unicode
248 % engines by name, the approach here is to look for the extended math mode
249 % handling both provide: any other engine developed in this area will
250 % presumably also provide |\Umathcode| (older Xe\TeX{} versions use
251 % |\XeTeXmathcode| so that is covered too).
254 \ifx\Umathcode\@undefined\else 1\fi
255 \ifx\XeTeXmathcode\@undefined\else 1\fi
257 \message{ Unicode character data,}
258 \input{unicode-letters.def}
260 % \changes{v2.0d}{2015/02/03}{Set \cs{lccode} for \texttt{-} with Unicode
262 % There is one over-ride that makes sense here (see below for the same for
263 % $8$-bit engines): setting the lccode for |-| to itself.
265 \lccode`\- =`\- % default hyphen char
267 % The alternative is that a ``traditional'' engine is in use.
271 % \changes{v1.1b}{1998/05/20}{Set up lccodes before loading
272 % hyphenation files: pr/2639}
273 % We set things up so that hyphenation files can assume that the
274 % default (T1) lccodes are in use (at present this also sets up the
276 % We temporarily define |\reserved@a| to apply |\reserved@c| to
277 % all the numbers in the range of its arguments.
279 \def\reserved@a#1#2{%
285 \ifnum\@tempcnta>\@tempcntb\else
286 \reserved@c\@tempcnta
287 \advance\@tempcnta\@ne
288 \expandafter\reserved@b
292 % Depending on the \TeX{} version, we might not be allowed to do
293 % this for non-ASCII characters.
294 % \changes{v1.0n}{1994/06/09}{For \TeX2, do not set codes for higher
295 % half of character table.}
298 \count@=#1\advance\count@ by -"20
302 \reserved@a{`\a}{`\z}
303 \ifnum\inputlineno=\m@ne\else
304 \reserved@a{"A0}{"BC}
305 \reserved@a{"E0}{"FF}
308 % The upper case characters need their |\uccode| and |\lccode| values
309 % set, and their |\sfcode| set to 999.
312 \count@=#1\advance\count@ by "20
317 \reserved@a{`\A}{`\Z}
318 \ifnum\inputlineno=\m@ne\else
319 \reserved@a{"80}{"9C}
320 \reserved@a{"C0}{"DF}
323 % Well, it would be nice if that were correct, but unfortunately, the
324 % Cork encoding contains some odd slots whose uccode or lccode isn't
325 % quite what you'd expect.
327 \uccode`\^^Y=`\I % dotless i
328 \lccode`\^^Y=`\^^Y % dotless i
329 \uccode`\^^Z=`\J % dotless j, ae in OT1
330 \lccode`\^^Z=`\^^Z % dotless j, ae in OT1
331 \ifnum\inputlineno=\m@ne\else
332 \lccode`\^^9d=`\i % dotted I
333 \uccode`\^^9d=`\^^9d % dotted I
334 \lccode`\^^9e=`\^^9e % d-bar
335 \uccode`\^^9e=`\^^d0 % d-bar
338 % Finally here is one that helps hyphenation in the OT1 encoding.
339 % \changes{v1.0z}{1996/10/31}
340 % {Added extra \cs{lcode}, hoping it does no harm in T1 (pr/1969)}
342 \lccode`\^^[=`\^^[ % oe in OT1
345 % And we also set the |\lccode| of |\-| and |\textcompwordmark| so
346 % that they do not prevent hyphenation in the remainder of the word
347 % (as suggested by Lars Helstr\"om).
348 % \changes{v1.1e}{2003/10/13}
349 % {Added extra \cs{lccode} for \cs{-} and \cs{textcompwordmark}}
351 \lccode`\- =`\- % default hyphen char
352 \lccode 127=127 % alternate hyphen char
353 \lccode 23 =23 % textcompwordmark in T1
356 % End of the conditional to select either Unicode or T1 encoding defaults.
361 % This is as good a place as any to active a few Xe\TeX{}-specific
364 \ifx\XeTeXuseglyphmetrics\@undefined
366 \XeTeXuseglyphmetrics=1 %
367 \XeTeXdashbreakstate=1 %
371 % \subsection{Hyphenation}
373 % \changes{v0.1a}{1994/03/07}{move code here from lhyphen.dtx}
374 % \changes{v0.1a}{1994/03/07}
375 % {use \cs{InputIfFileExists} not \cs{IfFileExists}}
376 % \changes{v1.0x}{1995/11/01}
377 % {(DPC) Switch meaning of \cs{@addtofilelist} for cfg files}%
378 % The following code will be compiled into the format file. It checks
379 % for the existence of \texttt{hyphen.cfg} in inputs that file if
380 % found. Otherwise it inputs \texttt{hyphen.ltx}. Note that these
381 % are loaded in \emph{before} the |\catcode|s are set, so local
382 % hyphenation files can use 8-bit input.
384 % We try to load the customized hyphenation description file.
386 \InputIfFileExists{hyphen.cfg}
387 {\typeout{===========================================^^J%
388 Local configuration file hyphen.cfg used^^J%
389 ===========================================}%
390 \def\@addtofilelist##1{\xdef\@filelist{\@filelist,##1}}%
393 \let\@addtofilelist\@gobble
398 % \subsection{Font loading}
399 % Fonts loaded during the formatting process might already have
400 % changed the |\font@submax| from |0pt| to something higher.
401 % If so, we put out a bold warning.
402 % \changes{v0.1l}{1994/05/20}{Use new font warning commands}
404 % \changes{v1.1c}{2000/08/23}{Fix typo in warning}
405 \ifdim \font@submax >\z@
406 \@font@warning{Size substitutions with differences\MessageBreak
407 up to \font@submax\space have occurred.\MessageBreak
409 Please check the transcript file
410 carefully\MessageBreak
411 and redo the format generation if necessary!
413 \errhelp{Only stopped, to give you time to
414 read the above message.}
417 % We reset the macro. Otherwise every user will get a warning on
420 \def\font@submax{0pt}
424 % \subsection{Input encoding}
426 % We temporarily define |\reserved@a| to apply |\reserved@c| to all the
427 % numbers in the range of its arguments.
429 \def\reserved@a#1#2{%
435 \ifnum\@tempcnta>\@tempcntb\else
436 \reserved@c\@tempcnta
437 \advance\@tempcnta\@ne
438 \expandafter\reserved@b
442 % \changes{v0.1e}{1994/05/02}{Added setting the special catcodes.}
443 % \changes{v0.1f}{1994/05/02}{Set the catcode of control-J.}
444 % Set the special catcodes (although some of these are useless, since an
445 % error will have occurred if the catcodes have changed). Note that
446 % |^^J| has catcode `other' for use in warning messages.
465 % \changes{v0.1e}{1994/05/02}{Added setting the `other' catcodes.}
466 % Set the `other' catcodes.
468 \def\reserved@c#1{\catcode#1=12\relax}
471 \reserved@a{`\'}{`\?}
477 % \changes{v0.1e}{1994/05/02}{Added setting the `letter' catcodes.}
478 % Set the `letter' catcodes.
480 \def\reserved@c#1{\catcode#1=11\relax}
481 \reserved@a{`\A}{`\Z}
482 \reserved@a{`\a}{`\z}
484 % \changes{v0.1e}{1994/05/02}{Made slot 127 illegal}
485 % \changes{v1.0n}{1994/11/18}
486 % {re-allow slots 127--255}
487 % All the characters in the range 0--31 and 127--255 are illegal,
488 % \emph{except} tab (|^^I|), nl (|^^J|), ff (|^^L|) and cr (|^^M|).
490 % Now allow 8-bit characters, although their use in this way is
491 % strongly discouraged. See |inputenc.dtx| for a supported mechanism
494 \def\reserved@c#1{\catcode#1=15\relax}
495 \reserved@a{0}{`\^^H}
497 \reserved@a{`\^^N}{31}
498 %\ifnum\inputlineno=\m@ne
501 % \reserved@a{"7F}{"FF}
505 % \subsection{Lccodes and uccodes}
507 % \changes{v1.1b}{1998/05/20}{Set up uc/lccodes after loading
508 % hyphenation files: pr/2639}
509 % We now again set up the default (T1) uc/lccodes.
510 % The lower case characters need their |\uccode| and |\lccode| values
511 % set. Some of this is a repeat of the set-up before loading
513 % Depending on the \TeX{} version, we might not be allowed to do
514 % this for non-ASCII characters.
515 % \changes{v1.0n}{1994/06/09}{For \TeX2, do not set codes for higher
516 % half of character table.}
517 % \changes{v2.0a}{2015/01/03}{Skip resetting codes with Unicode engines}
518 % For the Unicode engines (Xe\TeX{} and Lua\TeX{}) there is no need to
519 % do any of this: they use hyphenation data which does not alter any
520 % of the set up and so this entire block is skipped.
523 \ifx\Umathcode\@undefined\else 1\fi
524 \ifx\XeTeXmathcode\@undefined\else 1\fi
528 \count@=#1\advance\count@ by -"20
532 \reserved@a{`\a}{`\z}
533 \ifnum\inputlineno=\m@ne\else
534 \reserved@a{"A0}{"BC}
535 \reserved@a{"E0}{"FF}
538 % The upper case characters need their |\uccode| and |\lccode| values
539 % set, and their |\sfcode| set to 999.
542 \count@=#1\advance\count@ by "20
547 \reserved@a{`\A}{`\Z}
548 \ifnum\inputlineno=\m@ne\else
549 \reserved@a{"80}{"9C}
550 \reserved@a{"C0}{"DF}
553 % Well, it would be nice if that were correct, but unfortunately, the
554 % Cork encoding contains some odd slots whose uccode or lccode isn't
555 % quite what you'd expect.
557 \uccode`\^^Y=`\I % dotless i
558 \lccode`\^^Y=`\^^Y % dotless i
559 \uccode`\^^Z=`\J % dotless j, ae in OT1
560 \lccode`\^^Z=`\^^Z % dotless j, ae in OT1
561 \ifnum\inputlineno=\m@ne\else
562 \lccode`\^^9d=`\i % dotted I
563 \uccode`\^^9d=`\^^9d % dotted I
564 \lccode`\^^9e=`\^^9e % d-bar
565 \uccode`\^^9e=`\^^d0 % d-bar
568 % Finally here is one that helps hyphenation in the OT1 encoding.
569 % \changes{v1.0z}{1996/10/31}
570 % {Added extra \cs{lcode}, hoping it does no harm in T1 (pr/1969)}
572 \lccode`\^^[=`\^^[ % oe in OT1
573 \fi % End of reset block for 8-bit engines
576 % \begin{macro}{\MakeUppercase}
577 % \begin{macro}{\MakeUppercase}
578 % \begin{macro}{\@uclclist}
580 % \changes{v1.1a}{1997/10/20}{Removed \cs{aa} and \cs{AA} from
581 % \cs{@uclclist} as these are macros.}
583 % And whilst we're doing things with uc/lc tables, here are two
584 % commands to upper- and lower-case a string.
586 % \emph{Note} that this implementation is subject to change! At
587 % the moment we're not providing any way to extend the list of
588 % uc/lc commands, since finding a good interface is difficult.
589 % These commands have some nasty features, such as uppercasing
590 % mathematics, environment names, labels, etc. A much better
591 % long-term solution is to use all-caps fonts, but these aren't
592 % generally available.
594 \DeclareRobustCommand{\MakeUppercase}[1]{{%
596 \def\reserved@a##1##2{\let##1##2\reserved@a}%
597 \expandafter\reserved@a\@uclclist\reserved@b{\reserved@b\@gobble}%
598 \protected@edef\reserved@a{\uppercase{#1}}%
601 \DeclareRobustCommand{\MakeLowercase}[1]{{%
602 \def\reserved@a##1##2{\let##2##1\reserved@a}%
603 \expandafter\reserved@a\@uclclist\reserved@b{\reserved@b\@gobble}%
604 \protected@edef\reserved@a{\lowercase{#1}}%
607 \def\@uclclist{\oe\OE\o\O\ae\AE
608 \dh\DH\dj\DJ\l\L\ng\NG\ss\SS\th\TH}
610 % The above code works, but has the nasty side-effect that if you
611 % say something like:
613 % \markboth{\MakeUppercase\contentsname}
614 % {\MakeUppercase\contentsname}
616 % then the uppercasing is only done to the first letter of the
617 % contents name, since the mark expands out to:
619 % \mark{\protect\MakeUppercase Table of Contents}
620 % {\protect\MakeUppercase Table of Contents}
622 % In order to get round this, we redefine |\MakeUppercase| and
623 % |\MakeLowercase| to grab their argument and brace it. This is a
624 % very low-level hack, and is \emph{not} recommended practice!
625 % This is an instance of a general problem that makes it unsafe to
626 % grab arguments unbraced, and probably needs a more general
627 % solution. For the moment though, this hack will do:
629 \protected@edef\MakeUppercase#1{\MakeUppercase{#1}}
630 \protected@edef\MakeLowercase#1{\MakeLowercase{#1}}
636 % \changes{v1.0h}{1994/05/13}{Added output enc stuff}
637 % \changes{v1.0i}{1994/05/16}{moved output enc stuff to lfonts}
639 % \changes{v0.1a}{1994/03/07}{Add code from the old dump.dtx}
641 % \subsection{Applying Patch files}
642 % Between major releases, small patches will be distributed in
643 % files |ltpatch.ltx| which must be added at this point.
644 % \changes{v1.0m}{1994/06/08}{Add patch file system}
645 % \changes{v2.0h}{2015/06/23}
646 % {set \cs{patch@level} in ltvers rather than in ltfinal/ltpatch}
648 % Patch file code removed.
650 %\IfFileExists{ltpatch.ltx}
651 % {\typeout{=================================^^J%
652 % Applying patch file ltpatch.ltx^^J%
653 % =================================}
654 % \def\fmtversion@topatch{unknown}
655 % \input{ltpatch.ltx}
656 % \ifx\fmtversion\fmtversion@topatch
657 % \ifx\patch@level\@undefined
658 % \typeout{^^J^^J^^J%
659 % !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J%
660 % !! Patch file `ltpatch.ltx' not suitable for this^^J%
661 % !! version of LaTeX.^^J^^J%
662 % !! Please check if initex found an old patch file:^^J%
663 % !! --- if so, rename it or delete it, and redo the^^J%
665 % !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J}%
669 % \changes{v1.0q}{1995/04/21}
670 % {Allow initial patch level 0}
671 % \changes{v1.0t}{1995/06/13}
672 % {Add patch level string more carefully}
673 % The code below adds the `patch level' string to the first |\typeout|
674 % in the startup banner.
676 % \def\fmtversion@topatch{0}%
677 % \ifx\fmtversion@topatch\patch@level\else
678 % \def\reserved@a\typeout##1##2\reserved@a{%
679 % \typeout{##1 patch level \patch@level}##2}
680 % \everyjob\expandafter\expandafter\expandafter{%
681 % \expandafter\reserved@a\the\everyjob\reserved@a}
682 % \let\reserved@a\relax
687 % \typeout{^^J^^J^^J%
688 % !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J%
689 % !! Patch file `ltpatch.ltx' (for version <\fmtversion@topatch>)^^J%
690 % !! is not suitable for version <\fmtversion> of LaTeX.^^J^^J%
691 % !! Please check if initex found an old patch file:^^J%
692 % !! --- if so, rename it or delete it, and redo the^^J%
694 % !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J}%
697 % \let\fmtversion@topatch\relax
701 % \subsection{Freeing Memory}
703 % \begin{macro}{\reserved@a}
704 % \begin{macro}{\reserved@b}
705 % \changes{v1.0v}{1995/10/17}{reset here after the \cs{input} above}
706 % And just to make sure nobody relies on those definitions of
707 % |\reserved@b| and friends.
708 % These macros are reserved for use in the kernel. \emph{Do not use
709 % them as general scratch macros}.
711 \let\reserved@a\@filelist
712 \let\reserved@b=\@undefined
713 \let\reserved@c=\@undefined
714 \let\reserved@d=\@undefined
715 \let\reserved@e=\@undefined
716 \let\reserved@f=\@undefined
721 % \begin{macro}{\toks}
722 % \changes{v1.0y}{1996/07/10}
723 % {Free up memory from scratch registers /2213}
733 % \begin{macro}{\errhelp}
734 % \changes{v0.1g}{1994/05/05}{Set error help empty.}
735 % \changes{v1.1d}{2000/09/01}{Set error help empty at very end
736 % (pr/449 done correctly).}
737 % Empty the error help message, which may have some rubbish:
743 % \subsection{Initialise file list}
745 % \begin{macro}{\@providesfile}
746 % \changes{v1.0v}{1995/10/17}{reset macro}
747 % Initialise for use in the document. During initex a modified version
748 % has been used which leaves debugging information for |latexbug.tex|.
750 \def\@providesfile#1[#2]{%
752 \expandafter\xdef\csname ver@#1\endcsname{#2}%
757 % \begin{macro}{\@filelist}
758 % \changes{v1.0w}{1995/10/19}{Move after \cs{reserved@a} setting:-)}
759 % \begin{macro}{\@addtofilelist}
760 % Reset |\@filelist| so files input while making the format are not
761 % listed. The list built up so far may take up a lot of memory and so
762 % it is moved to |\reserved@a| where it will be overwritten as soon
763 % as almost any \LaTeX\ command is issued in a class file.
764 % However the |latexbug.tex| program will be able to access this
765 % information and insert it into a bug report.
767 \let\@filelist\@gobble
768 \def\@addtofilelist#1{\xdef\@filelist{\@filelist,#1}}%
773 % \subsection{Dumping the format}
774 % Finally we make |@| into a letter, ensure the format will
775 % be in the `normal' error mode, and dump everything into the
777 % \changes{v1.0t}{1995/06/13}
778 % {Call \cs{errorstopmode}}