Update following CTAN rearrangements
[latex2e.git] / latex2e-20151001 / base / ltboxes.dtx
blob5f17cc31df72f30b7971858a0f19544f2bab8fc6
1 % \iffalse meta-comment
3 % Copyright 1993-2015
4 % The LaTeX3 Project and any individual authors listed elsewhere
5 % in this file.
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
22 % information.
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.
28 % \fi
30 % \iffalse
31 %%% From File: ltboxes.dtx
33 %<*driver>
34 % \fi
35 \ProvidesFile{ltboxes.dtx}
36              [2015/01/08 v1.1h LaTeX Kernel (Box Commands)]
37 % \iffalse
38 \documentclass{ltxdoc}
39 \GetFileInfo{ltboxes.dtx}
40 \title{\filename}
41 \date{\filedate}
42 \author{David Carlisle\and
43   Leslie Lamport\and
44   Frank Mittelbach\and
45   Chris Rowley}
46 \begin{document}
47  \MaintainedByLaTeXTeam{latex}
48  \maketitle
49  \DocInput{\filename}
50 \end{document}
51 %</driver>
52 % \fi
54 % \CheckSum{846}
56 % \changes{v1.1e}{1998/08/17}{(RmS) Minor Documentation fixes.}
57 % \section{\LaTeX\ Box commands}
60 % \DescribeMacro\makebox
61 % |\makebox[|\meta{wid}|][|\meta{pos}|]{|\meta{obj}|}|\\
62 % Puts \meta{obj} in an |\hbox| of width \meta{wid}, positioned by
63 % \meta{pos}.
65 % The possible \meta{pos} are:\\
66 % \begin{tabular}{ll}
67 % |s| stretched,\\
68 % |l| flushleft,\\
69 % |r| flushright,\\
70 % |c| (default) centred.
71 % \end{tabular}
73 % If \meta{wid} is missing, then \meta{pos} is also missing and
74 % \meta{obj} is put in an |\hbox| of its natural width.
76 %  |\makebox(|\meta{x}|,|\meta{y}|)[|\meta{pos}|]{|\meta{obj}|}|\\
77 %  Puts \meta{obj} in an |\hbox| of width $x * |\unitlength|$
78 %            and height $y * |\unitlength|$.
79 % \meta{pos} arguments are
80 %  |s|, |l|, |r| or |c| (default) for stretched, flushleft, flushright
81 %  or centred, and  |t| or |b|
82 %            for top, bottom -- or combinations like  |tr| or |rb|.
83 %            Default for horizontal and vertical are centered.
84 % Note that in this picture mode version of |\makebox| a [b] aligns on
85 % the \emph{bottom} of the text as documented. If you want to align on
86 % the \emph{baseline} use
87 %  |\makebox( , )[b]{\raisebox{0pt}[\height][0pt]{xyz}}}|
88 %  or |\makebox( , )[b]{\smash{xyz}}|
90 % \DescribeMacro\mbox
91 %  |\mbox{|\meta{obj}|}| The same as |\makebox{|\meta{obj}|}|, but is
92 %  more efficient as no checking for optional arguments is done.
94 % \DescribeMacro\newsavebox
95 %  |\newsavebox{\cmd}| : If |\cmd| is undefined, then defines it
96 %           to be a \TeX\ box register.
98 % \DescribeMacro\savebox
99 %  |\savebox{\cmd}| ... : |\cmd| is defined to be a \TeX\ box register,
100 %            and the '...' are any |\makebox| arguments.  It is
101 %            like |\makebox|, except it doesn't produce text but
102 %            saves the value in |\box| |\cmd|.
104 % \DescribeMacro\sbox
105 % |\sbox{|\meta{cmd}|}{|\meta{obj}|}| is an efficient abbreviation for\\
106 % |\savebox{|\meta{cmd}|}{|\meta{obj}|}|.
108 % \DescribeEnv{lrbox}
109 %  |\begin{lrbox}{|\meta{cmd}|}|\meta{text}|\end{lrbox}| is equivalent
110 %  to\\
111 %  |\sbox{|\meta{cmd}|}{|\meta{text}|}|\\
112 %  except that any white space at the beginning and end of \meta{text}
113 %  is ignored.
115 % \DescribeMacro\framebox
116 %  |\framebox| ...  : like |\makebox|, except it puts a `frame' around
117 %            the box.  The frame is made of lines of thickness
118 %            |\fboxrule|, separated by space |\fboxsep| from the
119 %            text -- except for |\framebox(X,Y)| ... , where the
120 %            thickness of the lines is as for the picture environment,
121 %            and there is no separation added.
123 % \DescribeMacro\fbox
124 % |\fbox{|\meta{obj}|}| is an abbreviation for
125 % |\framebox{|\meta{obj}|}|.
127 % \DescribeMacro\parbox
128 %  |\parbox[|\meta{pos}|][|\meta{height}|][|\meta{inner-pos}|]{|^^A
129 %                    \meta{width}|}{|\meta{text}|}| :
130 % Makes a box with |\hsize| \meta{width}, positioned by \meta{pos} as
131 % follows:
132 %              c : |\vcenter| (placed in |$...$| if not in math mode)
133 %              b : |\vbox|
134 %              t : |\vtop|
135 %         default value is c.
136 %    Sets |\hsize| := \meta{width} and calls |\@parboxrestore|, which
137 %    does the following:
138 %         Restores the original definitions of:
140 %              \begin{tabular}{l}
141 %              |\par|\\
142 %              |\\|\\
143 %              |\-|\\
144 %              |\'|\\
145 %              | \`|\\
146 %              |\=|
147 %              \end{tabular}
149 %         Resets the following parameters:
151 %              \begin{tabular}{l@{\quad=\quad}ll}
152 %              |\parindent|        & 0pt \\
153 %              |\parskip|          & 0pt           & added 20 Jan 87\\
154 %              |\linewidth|        & |\hsize|\\
155 %              |\@totalleftmargin| & 0pt\\
156 %              |\leftskip|         & 0pt\\
157 %              |\rightskip|        & 0pt\\
158 %              |\@rightskip|       & 0pt\\
159 %              |\parfillskip|      & 0pt plus 1fil\\
160 %              |\lineskip|         & |\normallineskip|\\
161 %              |\baselineskip|     & |\normalbaselineskip|
162 %              \end{tabular}
164 %         Calls |\sloppy|
166 %  Note: |\@arrayparboxrestore| same as |\@parboxrestore|
167 %         but it doesn't restore |\\|.
169 % \DescribeEnv{minipage}
170 % |minipage|  :  Similar to |\parbox|, except it also
171 %        makes this look like a page by setting
173 %              |\textwidth| == |\columnwidth| == box width
175 %        changes footnotes by redefining:\\%
176 %              |\@mpfn|         == mpfootnote \\
177 %              |\thempfn|       == |\thempfootnote|\\
178 %              |\@footnotetext| == |\@mpfootnotetext|
180 %        resets the following list environment parameters:\\
181 %              |\@listdepth|    == |\@mplistdepth|\\
182 %        where  |\@mplistdepth| is initialized to zero,
184 %        and executes |\@minipagerestore| to allow the document
185 %        style to reset any other parameters it desires.
186 %        It sets |@minipage| true, and resets |\everypar| to set
187 %        it false.  This switch keeps |\addvspace| from putting space
188 %        at the top of a minipage.
190 %        Change added 24 May 89: |\minipage| sets |@minipage| globally;
191 %        |\endminipage| resets it false.
194 % \DescribeMacro\rule
195 % |\rule[|\meta{raised}|]{|\meta{width}|}{|\meta{height}|}| :
196 % Makes a $\meta{width}*\meta{height}$ rule, raised \meta{raised}.
198 % \DescribeMacro\underline
199 % |\underline{|\meta{text}|}| : Makes an underlined hbox with
200 % \meta{text} in it.
202 % \DescribeMacro\raisebox
203 % |\raisebox{|\meta{distance}|}[|\meta{height}|][|\meta{depth}^^A
204 %                 |]{|\meta{box}|}| :\\
205 % Raises \meta{box} up by \meta{distance} length (down if
206 % \meta{distance} negative).  Makes \TeX\ think that the new box extends
207 % \meta{height} above the line and \meta{depth} below, for a total
208 % vertical length of \meta{height}+\meta{depth}.  Default values of
209 % \meta{height} \& \meta{depth} = actual height and depth of box in new
210 % position.
212 % \StopEventually{}
214 % \changes{v0.1e}{1994/03/02}{Remove need for drv file}
215 % \changes{v0.1e}{1994/03/02}{Add 2ekernel module}
216 % \changes{v1.0a}{1994/03/07}{Unify format with other Kernel files}
217 % \changes{v1.0f}{1994/05/11}
218 %     {Superfluous braces removed from several commands}
219 % \changes{v1.0j}{1994/10/18}
220 %         {stuff from ltpatch done}
221 % \changes{v1.0p}{1994/11/09}
222 %         {more colour changes\ldots}
223 % \changes{v1.0q}{1994/11/17}
224 %         {\cs{@tempa} to \cs{reserved@a}}
225 % \changes{v1.0t}{1995/05/07}{Use \cs{hb@xt@}}
226 % \changes{v1.0w}{1995/10/16}{Clarify makebox description}
227 %    \begin{macrocode}
228 %<*2ekernel>
229 \message{boxes,}
230 %    \end{macrocode}
232 % \begin{macro}{\makebox}
233 % \changes{v0.1a}{1993/12/03}
234 %         {modified}
235 % |\makebox| User level command just looks for optional |[| or |(|.
236 % \changes{v1.1h}{2015/01/08}{Make Robust (latexrelease)}
237 %    \begin{macrocode}
238 %</2ekernel>
239 %<latexrelease>\IncludeInRelease{2015/01/01}%
240 %<latexrelease>                 {\makebox}{Make \makebox robust}%
241 %<*2ekernel|latexrelease>
242 \DeclareRobustCommand\makebox{%
243   \leavevmode
244   \@ifnextchar(%)
245     \@makepicbox
246     {\@ifnextchar[\@makebox\mbox}}%
247 %</2ekernel|latexrelease>
248 %<latexrelease>\EndIncludeInRelease
249 %<latexrelease>\IncludeInRelease{0000/00/00}%
250 %<latexrelease>                 {\makebox}{Make \makebox robust}%
251 %<latexrelease>\def\makebox{%
252 %<latexrelease>  \leavevmode
253 %<latexrelease>  \@ifnextchar(%)
254 %<latexrelease>    \@makepicbox
255 %<latexrelease>    {\@ifnextchar[\@makebox\mbox}}%
256 %<latexrelease>\EndIncludeInRelease
257 %<*2ekernel>
258 %    \end{macrocode}
259 % \end{macro}
261 % \begin{macro}{\mbox}
262 % \changes{v0.1a}{1993/12/03}
263 %         {extra group}
264 % \changes{v1.0j}{1994/10/18}
265 %         {\cs{long} added}
266 % The basic horizontal box command for \LaTeX.
267 %    \begin{macrocode}
268 \long\def\mbox#1{\leavevmode\hbox{#1}}
269 %    \end{macrocode}
270 % \end{macro}
272 % \begin{macro}{\@makebox}
273 % \changes{v0.1a}{1993/12/03}
274 %         {default changed from x to c}
275 % Look for a possible second optional argument (defaults to |c|).
276 %    \begin{macrocode}
277 \def\@makebox[#1]{%
278   \@ifnextchar [{\@imakebox[#1]}{\@imakebox[#1][c]}}
279 %    \end{macrocode}
280 % \end{macro}
283 % \begin{macro}{\@begin@tempboxa}
284 % \changes{v0.1a}{1993/12/03}
285 %         {macro added}
286 % \changes{v0.1b}{1993/12/08}
287 %         {Extra braces for color support
288 %          (braces removed from other macros)}
289 % \changes{v1.0f}{1994/05/11}
290 %         {Use new \cs{color@setgroup} concept.}
291 % Helper macro for supporting |\height|, |\width| etc. Grab |#1| into
292 % |\@tempboxa| and measure it.
293 %    \begin{macrocode}
294 \long\def\@begin@tempboxa#1#2{%
295    \begingroup
296      \setbox\@tempboxa#1{\color@begingroup#2\color@endgroup}%
297      \def\width{\wd\@tempboxa}%
298      \def\height{\ht\@tempboxa}%
299      \def\depth{\dp\@tempboxa}%
300      \let\totalheight\@ovri
301      \totalheight\height
302      \advance\totalheight\depth}
303 %    \end{macrocode}
304 % \end{macro}
306 % \begin{macro}{\@end@tempboxa}
307 % \changes{v0.1a}{1993/12/03}
308 %         {macro added}
309 % End the group started by |\@begin@tempboxa|, so that the scope of
310 % |\height| only includes the `length' argument to the user-command.
311 %    \begin{macrocode}
312 \let\@end@tempboxa\endgroup
313 %    \end{macrocode}
314 % \end{macro}
316 % \begin{macro}{\bm@c}
317 % \begin{macro}{\bm@l}
318 % \begin{macro}{\bm@r}
319 % \begin{macro}{\bm@s}
320 % \begin{macro}{\bm@t}
321 % \begin{macro}{\bm@b}
322 % \changes{v0.1a}{1993/12/03}
323 %         {macros added}
324 % Set up spacing.
325 %    \begin{macrocode}
326 \def\bm@c{\hss\unhbox\@tempboxa\hss}
327 \def\bm@l{\unhbox\@tempboxa\hss}\let\bm@t\bm@l
328 \def\bm@r{\hss\unhbox\@tempboxa}\let\bm@b\bm@r
329 \def\bm@s{\unhbox\@tempboxa}
330 %    \end{macrocode}
331 % \end{macro}
332 % \end{macro}
333 % \end{macro}
334 % \end{macro}
335 % \end{macro}
336 % \end{macro}
338 % \begin{macro}{\@imakebox}
339 % \changes{v0.1a}{1993/12/03}
340 %         {macro modified}
341 % Internal form of |\makebox|.
342 %    \begin{macrocode}
343 \long\def\@imakebox[#1][#2]#3{%
344   \@begin@tempboxa\hbox{#3}%
345     \setlength\@tempdima{#1}%       support calc
346     \hb@xt@\@tempdima{\csname bm@#2\endcsname}%
347   \@end@tempboxa}
348 %    \end{macrocode}
349 % \end{macro}
351 % \begin{macro}{\@makepicbox}
352 % \changes{v0.1a}{1993/12/03}
353 %         {macro modified}
354 % Picture mode form of |\makebox|.
355 %    \begin{macrocode}
356 \def\@makepicbox(#1,#2){%
357   \@ifnextchar[{\@imakepicbox(#1,#2)}{\@imakepicbox(#1,#2)[]}}
358 %    \end{macrocode}
359 % \end{macro}
361 % \begin{macro}{\@imakepicbox}
362 % picture mode version
363 %    \begin{macrocode}
364 \long\def\@imakepicbox(#1,#2)[#3]#4{%
365   \vbox to#2\unitlength
366    {\let\mb@b\vss \let\mb@l\hss\let\mb@r\hss
367     \let\mb@t\vss
368     \@tfor\reserved@a :=#3\do{%
369       \if s\reserved@a
370         \let\mb@l\relax\let\mb@r\relax
371       \else
372         \expandafter\let\csname mb@\reserved@a\endcsname\relax
373       \fi}%
374     \mb@t
375     \hb@xt@ #1\unitlength{\mb@l #4\mb@r}%
376     \mb@b
377 %    \end{macrocode}
378 % This kern ensures that a |b| option aligns on the bottom of the
379 % text rather than the baseline. this is the documented behaviour in
380 % the \LaTeX Book. The kern is removed in compatibility mode.
381 %    \begin{macrocode}
382     \kern\z@}}
383 %    \end{macrocode}
384 % \end{macro}
387 % \begin{macro}{\set@color}
388 % \changes{v0.1a}{1993/12/03}
389 %         {macro added}
390 % \changes{v0.1a}{1993/12/03}
391 %         {color support}
392 % This macro is initially a no-op, but the colour package will redefine
393 % it to insert a |\special|.
394 %    \begin{macrocode}
395 \let\set@color\relax
396 %    \end{macrocode}
397 % \end{macro}
399 % \begin{macro}{\color@begingroup}
400 % \changes{v1.0b}{1994/03/14}
401 %         {macro added for colour support}
402 % \begin{macro}{\color@endgroup}
403 % \changes{v1.0b}{1994/03/14}
404 %         {macro added for colour support}
405 % \begin{macro}{\color@setgroup}
406 % \changes{v1.0f}{1994/05/11}
407 %         {macro added for colour support}
408 % \begin{macro}{\normalcolor}
409 % \changes{v1.0g}{1994/05/12}
410 %         {macro added for colour support}
411 % \begin{macro}{\color@hbox}
412 % \changes{v1.0n}{1994/11/05}
413 %         {macro added for colour support}
414 % \begin{macro}{\color@vbox}
415 % \changes{v1.0r}{1994/11/18}
416 %         {macro added for colour support}
417 % \begin{macro}{\color@endbox}
418 % \changes{v1.0n}{1994/11/05}
419 %         {macro added for colour support}
420 % These macros are initially a no-op, but the colour package will
421 % redefine them to be |\begingroup|, |\endgroup|,
422 % |\begingroup\set@color|,\\ |\hbox\bgroup\color@begingroup|,
423 % |\color@endgroup\egroup|.
424 % and \meta{set to main document colour} respectively.
425 %    \begin{macrocode}
426 \let\color@begingroup\relax
427 \let\color@endgroup\relax
428 \let\color@setgroup\relax
429 \let\normalcolor\relax
430 \let\color@hbox\relax
431 \let\color@vbox\relax
432 \let\color@endbox\relax
433 %    \end{macrocode}
434 % \end{macro}
435 % \end{macro}
436 % \end{macro}
437 % \end{macro}
438 % \end{macro}
439 % \end{macro}
440 % \end{macro}
442 % \begin{macro}{\newsavebox}
443 % \changes{v0.1a}{1993/12/03}
444 %         {Pass the whole of arg 1 to \cs{@ifdefinable}}
445 % Allocate a new `savebox'.
446 %    \begin{macrocode}
447 \def\newsavebox#1{\@ifdefinable{#1}{\newbox#1}}
448 %    \end{macrocode}
449 % \end{macro}
451 % \begin{macro}{\savebox}
452 % Save |#1| in a box register.
453 % \changes{v1.1h}{2015/01/08}{Make Robust (latexrelease)}
454 %    \begin{macrocode}
455 %</2ekernel>
456 %<latexrelease>\IncludeInRelease{2015/01/01}%
457 %<latexrelease>                 {\savebox}{Make \savebox robust}%
458 %<*2ekernel|latexrelease>
459 \DeclareRobustCommand\savebox[1]{%
460   \@ifnextchar(%)
461     {\@savepicbox#1}{\@ifnextchar[{\@savebox#1}{\sbox#1}}}%
462 %</2ekernel|latexrelease>
463 %<latexrelease>\EndIncludeInRelease
464 %<latexrelease>\IncludeInRelease{0000/00/00}%
465 %<latexrelease>                 {\savebox}{Make \savebox robust}%
466 %<latexrelease>\def\savebox#1{%
467 %<latexrelease>  \@ifnextchar(%)
468 %<latexrelease>    {\@savepicbox#1}{\@ifnextchar[{\@savebox#1}{\sbox#1}}}%
469 %<latexrelease>\EndIncludeInRelease
470 %<*2ekernel>
471 %    \end{macrocode}
472 % \end{macro}
474 % \begin{macro}{\sbox}
475 % \changes{v0.1a}{1993/12/03}
476 %         {extra group}
477 % \changes{v0.1a}{1993/12/03}
478 %         {color support}
479 % \changes{v1.0b}{1994/03/14}
480 %         {Use \cs{color@setgroup}}
481 % \changes{v1.0j}{1994/10/18}
482 %         {\cs{long} added}
483 % Save |#1| in a box register.
484 %    \begin{macrocode}
485 \long\def\sbox#1#2{\setbox#1\hbox{%
486   \color@setgroup#2\color@endgroup}}
487 %    \end{macrocode}
488 % \end{macro}
490 % \begin{macro}{\@savebox}
491 % \changes{v0.1a}{1993/12/03}
492 %         {default c not x}
493 % Look for second optional argument.
494 %    \begin{macrocode}
495 \def\@savebox#1[#2]{%
496   \@ifnextchar [{\@isavebox#1[#2]}{\@isavebox#1[#2][c]}}
497 %    \end{macrocode}
498 % \end{macro}
500 % \begin{macro}{\@isavebox}
501 % \changes{v0.1a}{1993/12/03}
502 %         {extra group}
503 % \changes{v0.1a}{1993/12/03}
504 %         {color support}
505 % \changes{v1.0b}{1994/03/14}
506 %         {Use \cs{color@setgroup}}
507 % \changes{v1.0d}{1994/04/15}
508 %         {Added missing procent character.}
509 % \changes{v1.0v}{1995/07/20}
510 %         {Use \cs{sbox}}
511 %    \begin{macrocode}
512 \long\def\@isavebox#1[#2][#3]#4{%
513   \sbox#1{\@imakebox[#2][#3]{#4}}}
514 %    \end{macrocode}
515 % \end{macro}
517 % \begin{macro}{\@savepicbox}
518 % Picture mode version of |\savebox|.
519 %    \begin{macrocode}
520 \def\@savepicbox#1(#2,#3){%
521   \@ifnextchar[%]
522     {\@isavepicbox#1(#2,#3)}{\@isavepicbox#1(#2,#3)[]}}
523 %    \end{macrocode}
524 % \end{macro}
526 % \begin{macro}{\@isavepicbox}
527 % \changes{v0.1a}{1993/12/03}
528 %         {extra group}
529 % \changes{v1.0b}{1994/03/14}
530 %         {Use \cs{color@setgroup}}
531 % \changes{v1.0l}{1994/10/25}
532 %         {missing percent (moved from ltpatch)}
533 % \changes{v1.0v}{1995/07/20}
534 %         {Use \cs{sbox}}
535 % Picture mode version of |\savebox|.
536 %    \begin{macrocode}
537 \long\def\@isavepicbox#1(#2,#3)[#4]#5{%
538   \sbox#1{\@imakepicbox(#2,#3)[#4]{#5}}}
539 %    \end{macrocode}
540 % \end{macro}
542 % \begin{macro}{\lrbox}
543 % \changes{v0.1a}{1993/12/03}
544 %         {macro added}
545 % \changes{v0.1a}{1993/12/03}
546 %         {color support}
547 % \changes{v0.1b}{1993/12/08}
548 %         {move \cs{@endpefalse} out of the inner group}
549 % \changes{v1.0b}{1994/03/14}
550 %         {Use \cs{color@setgroup}}
551 % |lrbox|: the new environment form of |\sbox|. Use |\aftergroup| tricks
552 % to enable a \emph{local} assignment to be made to the box, in a way
553 % that it still has an effect \emph{outside} the |lrbox| environment.
554 %    \begin{macrocode}
555 \def\lrbox#1{%
556   \edef\reserved@a{%
557     \endgroup
558     \setbox#1\hbox{%
559       \begingroup\aftergroup}%
560         \def\noexpand\@currenvir{\@currenvir}%
561         \def\noexpand\@currenvline{\on@line}}%
562   \reserved@a
563     \@endpefalse
564     \color@setgroup
565       \ignorespaces}
566 %    \end{macrocode}
567 % \end{macro}
569 % \begin{macro}{\endlrbox}
570 % \changes{v0.1a}{1993/12/03}
571 %         {macro added}
572 % End the |lrbox| environment.
573 %    \begin{macrocode}
574 \def\endlrbox{\unskip\color@endgroup}
575 %    \end{macrocode}
576 % \end{macro}
578 % \begin{macro}{\usebox}
579 % unchanged
580 %    \begin{macrocode}
581 \def\usebox#1{\leavevmode\copy #1\relax}
582 %    \end{macrocode}
583 % \end{macro}
585 % \begin{macro}{\frame}
587 % The following definition of |\frame| was written by Pavel Curtis
588 % (Extra space removed 14 Jan 88)
589 % RmS 92/08/24: Replaced occurrence of |\@halfwidth| by |\@wholewidth|
590 %    \begin{macrocode}
591 \long\def\frame#1{%
592   \leavevmode
593   \hbox{%
594     \hskip-\@wholewidth
595     \vbox{%
596       \vskip-\@wholewidth
597       \hrule \@height\@wholewidth
598       \hbox{%
599         \vrule\@width\@wholewidth
600         #1%
601         \vrule\@width\@wholewidth}%
602       \hrule\@height\@wholewidth
603       \vskip-\@wholewidth}%
604     \hskip-\@wholewidth}}
605 %    \end{macrocode}
606 % \end{macro}
608 % \begin{macro}{\fboxrule}
609 % \begin{macro}{\fboxsep}
610 % user level parameters,
611 %    \begin{macrocode}
612 \newdimen\fboxrule
613 \newdimen\fboxsep
614 %    \end{macrocode}
615 % \end{macro}
616 % \end{macro}
618 % \begin{macro}{\fbox}
619 % Abbreviated framed box command.
620 % \changes{v0.1a}{1993/12/03}
621 %         {extra group}
622 % \changes{v1.0g}{1994/05/12}
623 %         {New definition, merged with \cs{framebox}}
624 % \changes{v1.0i}{1994/06/01}
625 %         {New version, using \cs{@frameb@x}}
626 % \changes{v1.0j}{1994/10/18}
627 %         {\cs{long} added}
628 % \changes{v1.0k}{1994/10/24}
629 %         {Inner braces added (to fix latex/1061)}
630 % \changes{v1.0s}{1995/04/27}
631 %         {Move \cs{leavevmode} for graphics/1512}
632 %    \begin{macrocode}
633 \long\def\fbox#1{%
634   \leavevmode
635   \setbox\@tempboxa\hbox{%
636     \color@begingroup
637       \kern\fboxsep{#1}\kern\fboxsep
638     \color@endgroup}%
639   \@frameb@x\relax}
640 %    \end{macrocode}
641 % \end{macro}
643 % \begin{macro}{\framebox}
644 % Framed version of |\makebox|.
645 % \changes{v1.0g}{1994/05/12}
646 %         {Merged \cs{fbox} and \cs{framebox}}
647 % \changes{v1.0i}{1994/06/01}
648 %         {New version, so \cs{width} is correct in \cs{framebox}}
649 % \changes{v1.1h}{2015/01/08}{Make Robust (latexrelease)}
650 %    \begin{macrocode}
651 %</2ekernel>
652 %<latexrelease>\IncludeInRelease{2015/01/01}%
653 %<latexrelease>                 {\framebox}{Make \framebox robust}%
654 %<*2ekernel|latexrelease>
655 \DeclareRobustCommand\framebox{%
656   \@ifnextchar(%)
657     \@framepicbox{\@ifnextchar[\@framebox\fbox}}%
658 %</2ekernel|latexrelease>
659 %<latexrelease>\EndIncludeInRelease
660 %<latexrelease>\IncludeInRelease{0000/00/00}%
661 %<latexrelease>                 {\framebox}{Make \framebox robust}%
662 %<latexrelease>\def\framebox{%
663 %<latexrelease>  \@ifnextchar(%)
664 %<latexrelease>    \@framepicbox{\@ifnextchar[\@framebox\fbox}}%
665 %<latexrelease>\EndIncludeInRelease
666 %<*2ekernel>
667 %    \end{macrocode}
668 % \end{macro}
670 % \begin{macro}{\@framebox}
671 % Deal with optional arguments.
672 %    \begin{macrocode}
673 \def\@framebox[#1]{%
674   \@ifnextchar[%]
675     {\@iframebox[#1]}%
676     {\@iframebox[#1][c]}}
677 %    \end{macrocode}
678 % \end{macro}
680 % \begin{macro}{\@iframebox}
681 % The handling the optional arguments.
682 % \changes{v1.0i}{1994/06/01}
683 %         {New version, so \cs{width} is correct in \cs{framebox}}
684 % \changes{v1.0j}{1994/10/18}
685 %         {\cs{leavevmode} moved to \cs{@frameb@x}}
686 % \changes{v1.0s}{1995/04/27}
687 %         {Move \cs{leavevmode} for graphics/1512}
688 %    In order to set the whole box, including the frame to the
689 %    specified dimension, we first determine that dimension
690 %    from the natural size of the text, |#3|.
691 %    calculated width.
692 %    \begin{macrocode}
693 \long\def\@iframebox[#1][#2]#3{%
694   \leavevmode
695   \@begin@tempboxa\hbox{#3}%
696     \setlength\@tempdima{#1}%
697     \setbox\@tempboxa\hb@xt@\@tempdima
698          {\kern\fboxsep\csname bm@#2\endcsname\kern\fboxsep}%
699     \@frameb@x{\kern-\fboxrule}%
700   \@end@tempboxa}
701 %    \end{macrocode}
702 % \end{macro}
704 % \begin{macro}{\@frameb@x}
705 % Common part of |\framebox| and |\fbox|. |#1| is a negative kern
706 % in the |\framebox| case so that the vertical rules do not add to the
707 % width of the box.
708 % \changes{v1.0i}{1994/06/01}
709 %         {Macro added.}
710 % \changes{v1.0j}{1994/10/18}
711 %         {\cs{leavevmode} added}
712 % \changes{v1.0s}{1995/04/27}
713 %         {Move \cs{leavevmode} for graphics/1512}
714 %    \begin{macrocode}
715 \def\@frameb@x#1{%
716   \@tempdima\fboxrule
717   \advance\@tempdima\fboxsep
718   \advance\@tempdima\dp\@tempboxa
719   \hbox{%
720     \lower\@tempdima\hbox{%
721       \vbox{%
722         \hrule\@height\fboxrule
723         \hbox{%
724           \vrule\@width\fboxrule
725           #1%
726           \vbox{%
727             \vskip\fboxsep
728             \box\@tempboxa
729             \vskip\fboxsep}%
730           #1%
731           \vrule\@width\fboxrule}%
732         \hrule\@height\fboxrule}%
733                           }%
734         }%
736 %    \end{macrocode}
737 % \end{macro}
739 % \begin{macro}{\@framepicbox}
740 % Picture mode version.
741 %    \begin{macrocode}
742 \def\@framepicbox(#1,#2){%
743   \@ifnextchar[{\@iframepicbox(#1,#2)}{\@iframepicbox(#1,#2)[]}}
744 %    \end{macrocode}
745 % \end{macro}
747 % \begin{macro}{\@iframepicbox}
748 % Picture mode version.
749 %    \begin{macrocode}
750 \long\def\@iframepicbox(#1,#2)[#3]#4{%
751   \frame{\@imakepicbox(#1,#2)[#3]{#4}}}
752 %    \end{macrocode}
753 % \end{macro}
755 % \begin{macro}{\parbox}
756 % \changes{v0.1a}{1993/12/03}
757 %         {Redefined to support extra optional arguments}
758 % \changes{v0.1d}{1993/12/15}
759 %         {Changed default from `c' to `s'}
760 % The main vertical-box command for \LaTeX.
761 % \changes{v1.1h}{2015/01/08}{Make Robust (latexrelease)}
762 %    \begin{macrocode}
763 %</2ekernel>
764 %<latexrelease>\IncludeInRelease{2015/01/01}%
765 %<latexrelease>                 {\parbox}{Make \parbox robust}%
766 %<*2ekernel|latexrelease>
767 \DeclareRobustCommand\parbox{%
768   \@ifnextchar[%]
769     \@iparbox
770     {\@iiiparbox c\relax[s]}}%
771 %</2ekernel|latexrelease>
772 %<latexrelease>\EndIncludeInRelease
773 %<latexrelease>\IncludeInRelease{0000/00/00}%
774 %<latexrelease>                 {\parbox}{Make \parbox robust}%
775 %<latexrelease>\def\parbox{%
776 %<latexrelease>  \@ifnextchar[%]
777 %<latexrelease>    \@iparbox
778 %<latexrelease>    {\@iiiparbox c\relax[s]}}%
779 %<latexrelease>\EndIncludeInRelease
780 %<*2ekernel>
781 %    \end{macrocode}
782 % \end{macro}
784 % \begin{macro}{\@iparbox}
785 % \changes{v0.1d}{1993/12/15}
786 %         {Changed default from `c' to `s'}
787 % Optional argument handling.
788 %    \begin{macrocode}
789 \def\@iparbox[#1]{%
790   \@ifnextchar[%]
791     {\@iiparbox{#1}}%
792     {\@iiiparbox{#1}\relax[s]}}
793 %    \end{macrocode}
794 % \end{macro}
796 % \begin{macro}{\@iiparbox}
797 % Optional argument handling.
798 %    \begin{macrocode}
799 \def\@iiparbox#1[#2]{%
800   \@ifnextchar[%]
801     {\@iiiparbox{#1}{#2}}%
802     {\@iiiparbox{#1}{#2}[#1]}}
803 %    \end{macrocode}
804 % \end{macro}
806 % \begin{macro}{\@iiiparbox}
807 % \begin{macro}{\@parboxto}
808 % \changes{v1.0j}{1994/10/18}
809 %         {Macro added to remove misuse of \cs{@empty}}
810 % \changes{v0.1b}{1993/12/08}
811 %    {\cs{endgraf} added due to extra group in \cs{@begin@tempboxa}}
812 % \changes{v1.0y}{1996/06/10}
813 %         {(DPC) Changed \cs{endgraf} to \cs{@@par}}
814 % \changes{v1.1f}{1999/04/27}
815 %         {(CAR) Changed \cs{@empty} to \cs{relax} as flag for natural
816 %          width: pr/2975}
817 % \changes{v1.1g}{2006/05/18}
818 %         {Ensure \cs{@parboxto} holds the value of \cs{@tempdimb} not the
819 %          register itself (pr/3867)}
820 % The internal version of |\parbox|.
821 %    \begin{macrocode}
822 \let\@parboxto\@empty
823 \long\def\@iiiparbox#1#2[#3]#4#5{%
824   \leavevmode
825   \@pboxswfalse
826   \setlength\@tempdima{#4}%
827   \@begin@tempboxa\vbox{\hsize\@tempdima\@parboxrestore#5\@@par}%
828     \ifx\relax#2\else
829       \setlength\@tempdimb{#2}%
830       \edef\@parboxto{to\the\@tempdimb}%
831     \fi
832     \if#1b\vbox
833     \else\if #1t\vtop
834     \else\ifmmode\vcenter
835     \else\@pboxswtrue $\vcenter
836     \fi\fi\fi
837     \@parboxto{\let\hss\vss\let\unhbox\unvbox
838        \csname bm@#3\endcsname}%
839     \if@pboxsw \m@th$\fi
840   \@end@tempboxa}
841 %    \end{macrocode}
842 % \end{macro}
843 % \end{macro}
845 % \changes{v1.0c}{1994/04/12}
846 %         {Remove \cs{@acci}, now defined in ltplain.dtx}
847 % \changes{v1.0c}{1994/04/12}
848 %         {Remove \cs{@dischyph}, now defined in ltinit.dtx}
850 % \begin{macro}{\@arrayparboxrestore}
851 % Restore various paragraph parameters.
853 % The rational for allowing two normally global flags to be set
854 % locally here was stated originally by
855 % Donald Arsenau and extended by Chris Rowley.
856 % It is because these flags are only set globally to
857 % true by section commands, and these should never appear within
858 % boxes or, indeed, in any group; and they are only ever
859 % set globally to false when they are definitely true.
861 % If anyone is unhappy with this argument then both flags should be
862 % treated as in |\set@nobreak|; otherwise this command will be
863 % redundant.
864 % \changes{v1.1a}{1996/10/24}{Added local settings of flags: dangerous!!}
865 %    \begin{macrocode}
866 \def\@arrayparboxrestore{%
867   \let\if@nobreak\iffalse
868   \let\if@noskipsec\iffalse
869   \let\par\@@par
870   \let\-\@dischyph
871 %    \end{macrocode}
872 % Redefined accents to allow changes in font encoding
873 % \changes{v1.0h}{1994/05/13}
874 %     {New accent system, use \cs{let} not \cs{def}}
875 %    \begin{macrocode}
876   \let\'\@acci\let\`\@accii\let\=\@acciii
877   \parindent\z@ \parskip\z@skip
878   \everypar{}%
879   \linewidth\hsize
880   \@totalleftmargin\z@
881   \leftskip\z@skip \rightskip\z@skip \@rightskip\z@skip
882   \parfillskip\@flushglue \lineskip\normallineskip
883   \baselineskip\normalbaselineskip
884   \sloppy}
885 %    \end{macrocode}
886 % \end{macro}
888 % \begin{macro}{\parboxrestore}
889 % Restore various paragraph parameters, and also |\\|.
890 %    \begin{macrocode}
891 \def\@parboxrestore{\@arrayparboxrestore\let\\\@normalcr}
892 %    \end{macrocode}
893 % \end{macro}
895 % \begin{macro}{\if@minipage}
896 % Switch that is true at the start of a minipage.
897 % \changes{v1.0z}{1996/07/26}{put \cs{global} into definition}
898 %    \begin{macrocode}
899 \def\@minipagefalse{\global\let\if@minipage\iffalse}
900 \def\@minipagetrue {\global\let\if@minipage\iftrue}
901 \@minipagefalse
902 %    \end{macrocode}
903 % \end{macro}
905 % \begin{macro}{\minipage}
906 % \changes{v0.1a}{1993/12/03}
907 %         {Redefined to support extra optional arguments}
908 % \changes{v0.1d}{1993/12/15}
909 %         {extra space removed.}
910 % \changes{v0.1d}{1993/12/15}
911 %         {Changed default from `c' to `s'}
912 % Essentially an environment form of |\parbox|.
913 %    \begin{macrocode}
914 \def\minipage{%
915   \@ifnextchar[%]
916     \@iminipage
917     {\@iiiminipage c\relax[s]}}
918 %    \end{macrocode}
919 % \end{macro}
921 % \begin{macro}{\@iminipage}
922 % \changes{v0.1d}{1993/12/15}
923 %         {Changed default from `c' to `s'}
924 % Optional argument handling.
925 %    \begin{macrocode}
926 \def\@iminipage[#1]{%
927   \@ifnextchar[%]
928     {\@iiminipage{#1}}%
929     {\@iiiminipage{#1}\relax[s]}}
930 %    \end{macrocode}
931 % \end{macro}
933 % \begin{macro}{\@iiminipage}
934 % Optional argument handling.
935 %    \begin{macrocode}
936 \def\@iiminipage#1[#2]{%
937   \@ifnextchar[%]
938     {\@iiiminipage{#1}{#2}}%
939     {\@iiiminipage{#1}{#2}[#1]}}
940 %    \end{macrocode}
941 % \end{macro}
943 % \begin{macro}{\@iiiminipage}
944 % \changes{v1.0e}{1994/04/21}
945 %     {Extra \cs{bgroup} for colour}
946 % \changes{v1.0f}{1994/05/11}
947 %         {Use new \cs{color@setgroup} concept.}
948 % Internal form of |minipage|.
949 % \changes{v1.1a}{1996/10/24}{Use it or lose it (@setminpage): Frank
950 %                             will want to lose it}
951 %    \begin{macrocode}
952 \def\@iiiminipage#1#2[#3]#4{%
953   \leavevmode
954   \@pboxswfalse
955   \setlength\@tempdima{#4}%
956   \def\@mpargs{{#1}{#2}[#3]{#4}}%
957   \setbox\@tempboxa\vbox\bgroup
958     \color@begingroup
959       \hsize\@tempdima
960       \textwidth\hsize \columnwidth\hsize
961       \@parboxrestore
962       \def\@mpfn{mpfootnote}\def\thempfn{\thempfootnote}\c@mpfootnote\z@
963       \let\@footnotetext\@mpfootnotetext
964       \let\@listdepth\@mplistdepth \@mplistdepth\z@
965       \@minipagerestore
966       \@setminipage}
967 %    \end{macrocode}
968 % \end{macro}
970 % \begin{macro}{\@minipagerestore}
971 % Hook so that other styles can reset other commands in a minipage.
972 %    \begin{macrocode}
973  \let\@minipagerestore=\relax
974 %    \end{macrocode}
975 % \end{macro}
978 % \begin{macro}{\endminipage}
979 % \changes{LaTeX209}{1992/08/14}
980 %     {(RmS) replaced \cs{vskip}-\cs{lastskip} by \cs{unskip}
981 %       (proposed by FMi)}
982 % \changes{v1.0e}{1994/04/21}
983 %     {Extra \cs{egroup} for colour}
984 % \changes{v1.0f}{1994/05/11}
985 %         {Use new \cs{color@setgroup} concept.}
986 % \changes{v1.0n}{1994/11/05}
987 %     {Colour resetting for footnotes moved to here: as for main
988 %     page.}
989 %    \begin{macrocode}
990 \def\endminipage{%
991     \par
992     \unskip
993     \ifvoid\@mpfootins\else
994       \vskip\skip\@mpfootins
995       \normalcolor
996       \footnoterule
997       \unvbox\@mpfootins
998     \fi
999     \@minipagefalse   %% added 24 May 89
1000   \color@endgroup
1001   \egroup
1002   \expandafter\@iiiparbox\@mpargs{\unvbox\@tempboxa}}
1003 %    \end{macrocode}
1004 % \end{macro}
1006 % \begin{macro}{\@mplistdepth}
1007 % \begin{macro}{\@mpfootins}
1008 % Versions of |\@listdepth| and |\footins| local to minipage.
1009 %    \begin{macrocode}
1010 \newcount\@mplistdepth
1011 \newinsert\@mpfootins
1012 %    \end{macrocode}
1013 % \end{macro}
1014 % \end{macro}
1016 % \begin{macro}{\@mpfootnotetext}
1017 % Minipage version of |\@footnotetext|.
1019 % Final |\strut| added 27 Mar 89, on suggestion by Don Hosek
1020 % \changes{LaTeX2.09}{1991/09/29}{(RmS) added \cs{reset@font}}
1021 % \changes{LaTeX2.09}{1992/11/26}{(RmS) added protection for \cs{edef}}
1022 % \changes{v0.1a}{1994/03/07}{Extra group for colour}
1023 % \changes{v1.0e}{1994/04/21}
1024 %     {Extra \cs{endgraf} for colour}
1025 % \changes{v1.0f}{1994/05/11}
1026 %         {Use new \cs{color@setgroup} concept.}
1027 % \changes{v1.0f}{1994/05/11}
1028 %         {Use new \cs{normalcolor} and \cs{@finalstrut}.}
1029 % \changes{v1.0m}{1994/11/04}
1030 %         {Added \cs{protected@edef}. ASAJ.}
1031 % \changes{v1.0n}{1994/11/05}
1032 %     {Colour resetting for footnotes moved to endminipage: as for main
1033 %     page.}
1034 % \changes{v1.0o}{1994/11/05}
1035 %     {Colour groups restored here.}
1036 %    \begin{macrocode}
1037 \long\def\@mpfootnotetext#1{%
1038   \global\setbox\@mpfootins\vbox{%
1039     \unvbox\@mpfootins
1040     \reset@font\footnotesize
1041     \hsize\columnwidth
1042     \@parboxrestore
1043     \protected@edef\@currentlabel
1044          {\csname p@mpfootnote\endcsname\@thefnmark}%
1045     \color@begingroup
1046       \@makefntext{%
1047         \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
1048     \color@endgroup}}
1049 %    \end{macrocode}
1050 % \end{macro}
1052 %    \begin{macrocode}
1053 \newif\if@pboxsw
1054 %    \end{macrocode}
1056 % \begin{macro}{\rule}
1057 % Draw a rule of the specified size.
1058 % \changes{v1.1h}{2015/01/08}{Make Robust (latexrelease)}
1059 %    \begin{macrocode}
1060 %</2ekernel>
1061 %<latexrelease>\IncludeInRelease{2015/01/01}%
1062 %<latexrelease>                 {\rule}{Make \rule robust}%
1063 %<*2ekernel|latexrelease>
1064 \DeclareRobustCommand\rule{\@ifnextchar[\@rule{\@rule[\z@]}}%
1065 %</2ekernel|latexrelease>
1066 %<latexrelease>\EndIncludeInRelease
1067 %<latexrelease>\IncludeInRelease{0000/00/00}%
1068 %<latexrelease>                 {\rule}{Make \rule robust}%
1069 %<latexrelease>\def\rule{\@ifnextchar[\@rule{\@rule[\z@]}}%
1070 %<latexrelease>\EndIncludeInRelease
1071 %<*2ekernel>
1072 %    \end{macrocode}
1073 % \end{macro}
1075 % \begin{macro}{\@rule}
1076 % Internal form of |\rule|.
1077 % \changes{v1.1c}{1998/06/04}{Support calc-expressions}
1078 %    \begin{macrocode}
1079  \def\@rule[#1]#2#3{%
1080    \leavevmode
1081    \hbox{%
1082      \setlength\@tempdima{#1}%
1083      \setlength\@tempdimb{#2}%
1084      \setlength\@tempdimc{#3}%
1085      \advance\@tempdimc\@tempdima
1086      \vrule\@width\@tempdimb\@height\@tempdimc\@depth-\@tempdima}}
1087 %    \end{macrocode}
1088 % \end{macro}
1090 % \begin{macro}{\@@underline}
1091 % Saved primitive |\underline|.
1092 %    \begin{macrocode}
1093 \let\@@underline\underline
1094 %    \end{macrocode}
1095 % \end{macro}
1097 % \begin{macro}{\underline}
1098 % \LaTeX\ version works outside math.
1099 % \task{???}{why the second `relax in `underline ?}
1100 %    \begin{macrocode}
1101 \def\underline#1{%
1102   \relax
1103   \ifmmode\@@underline{#1}%
1104   \else $\@@underline{\hbox{#1}}\m@th$\relax\fi}
1105 %    \end{macrocode}
1106 % \end{macro}
1108 % \begin{macro}{\raisebox}
1109 % \changes{v0.1a}{1993/12/03}
1110 %         {redefined to support \cs{height}}
1111 % \changes{v1.0s}{1995/04/27}
1112 %         {Move \cs{leavevmode} for graphics/1512}
1113 % Raise a box, and change its vertical dimensions.
1114 % \changes{v1.1h}{2015/01/08}{Make Robust (latexrelease)}
1115 %    \begin{macrocode}
1116 %</2ekernel>
1117 %<latexrelease>\IncludeInRelease{2015/01/01}%
1118 %<latexrelease>                 {\raisebox}{Make \raisebox robust}%
1119 %<*2ekernel|latexrelease>
1120 \DeclareRobustCommand\raisebox[1]{%
1121   \leavevmode
1122   \@ifnextchar[{\@rsbox{#1}}{\@irsbox{#1}[]}}
1123 %</2ekernel|latexrelease>
1124 %<latexrelease>\EndIncludeInRelease
1125 %<latexrelease>\IncludeInRelease{0000/00/00}%
1126 %<latexrelease>                 {\raisebox}{Make \raisebox robust}%
1127 %<latexrelease>\def\raisebox#1{%
1128 %<latexrelease>  \leavevmode
1129 %<latexrelease>  \@ifnextchar[{\@rsbox{#1}}{\@irsbox{#1}[]}}
1130 %<latexrelease>\EndIncludeInRelease
1131 %<*2ekernel>
1132 %    \end{macrocode}
1133 % \end{macro}
1135 % \begin{macro}{\@rsbox}
1136 % Optional argument handling.
1137 %    \begin{macrocode}
1138 \def\@rsbox#1[#2]{%
1139   \@ifnextchar[{\@iirsbox{#1}[#2]}{\@irsbox{#1}[#2]}}
1140 %    \end{macrocode}
1141 % \end{macro}
1143 % \begin{macro}{\@argrsbox}
1144 % \changes{v0.1a}{1993/12/03}
1145 %         {macro removed}
1146 % ...
1147 % \end{macro}
1149 % \begin{macro}{\@irsbox}
1150 % \changes{v0.1a}{1993/12/03}
1151 %         {redefined to support \cs{height}}
1152 % \changes{v0.1b}{1993/12/08}
1153 %         {fix typo}
1154 % \changes{v0.1c}{1993/12/09}
1155 %         {fix another typo}
1156 % \changes{v0.1f}{1994/03/03}
1157 %         {Replaced a missing \cs{else}}
1158 % \changes{v1.0s}{1995/04/27}
1159 %         {Move \cs{leavevmode} for graphics/1512}
1160 % \changes{v1.0u}{1995/05/17}
1161 %         {Removed surplus braces}
1162 % Internal version of |\raisebox| (less than two optional args).
1163 %    \begin{macrocode}
1164 \long\def\@irsbox#1[#2]#3{%
1165   \@begin@tempboxa\hbox{#3}%
1166     \setlength\@tempdima{#1}%
1167     \ifx\\#2\\\else\setlength\@tempdimb{#2}\fi
1168     \setbox\@tempboxa\hbox{\raise\@tempdima\box\@tempboxa}%
1169     \ifx\\#2\\\else\ht\@tempboxa\@tempdimb\fi
1170     \box\@tempboxa
1171   \@end@tempboxa}
1172 %    \end{macrocode}
1173 % \end{macro}
1175 % \begin{macro}{\@iirsbox}
1176 % \changes{v0.1a}{1993/12/03}
1177 %         {redefined to support \cs{height}}
1178 % \changes{v1.0s}{1995/04/27}
1179 %         {Move \cs{leavevmode} for graphics/1512}
1180 % Internal version of |\raisebox| (two optional args).
1181 %    \begin{macrocode}
1182 \long\def\@iirsbox#1[#2][#3]#4{%
1183   \@begin@tempboxa\hbox{#4}%
1184     \setlength\@tempdima{#1}%
1185     \setlength\@tempdimb{#2}%
1186     \setlength\dimen@{#3}%
1187     \setbox\@tempboxa\hbox{\raise\@tempdima\box\@tempboxa}%
1188     \ht\@tempboxa\@tempdimb
1189     \dp\@tempboxa\dimen@
1190     \box\@tempboxa
1191   \@end@tempboxa}
1192 %    \end{macrocode}
1193 % \end{macro}
1195 %  \begin{macro}{\@finalstrut}
1196 % This macro adds a special strut the \emph{depth} of the box given as
1197 % |#1|, and height and width 0pt. It is used for ensuring that the
1198 % last line of a paragraph has the correct depth in `p' columns of
1199 % tables and in footnotes. In vertical mode nothing is done, as adding
1200 % the strut (as done in 2.09) would start a new paragraph. It would be
1201 % possible to inspect |\prevdepth| to check the depth of the
1202 % just-completed paragraph, but we do not do that here.
1203 % \changes{v1.0g}{1994/05/12}
1204 %         {macro added}
1205 % Actually we do even less now, skip the vmode test as it broke tabular
1206 % `p' columns.
1207 % \changes{v1.0p}{1994/11/09}
1208 %         {Revert \cs{finalstrut} to 2.09 equivalent (from ltpatch)}.
1209 % \changes{v1.0x}{1995/10/31}
1210 %         {Add \cs{nobreak} in horiz mode to allow hyphenation.
1211 %                   internal/1931}
1213 % The |\nobreak| was added (1995/10/31) to allow hyphenation of the
1214 % final word of the paragraph.
1215 %    \begin{macrocode}
1216 \def\@finalstrut#1{%
1217   \unskip\ifhmode\nobreak\fi\vrule\@width\z@\@height\z@\@depth\dp#1}
1218 %    \end{macrocode}
1219 %  \end{macro}
1222 % \subsection{Some low-level constructs}
1224 % The following commands are basically inherited from plain \TeX.
1226 %  \begin{macro}{\leftline}
1227 %  \begin{macro}{\rightline}
1228 %  \begin{macro}{\centerline}
1229 %  \begin{macro}{\@@line}
1230 %    These macros place text on a full line either centred or left or
1231 %    right adjusted.
1232 %    \begin{macrocode}
1233 \def\@@line{\hb@xt@\hsize}
1234 \def\leftline#1{\@@line{#1\hss}}
1235 \def\rightline#1{\@@line{\hss#1}}
1236 \def\centerline#1{\@@line{\hss#1\hss}}
1237 %    \end{macrocode}
1238 %  \end{macro}
1239 %  \end{macro}
1240 %  \end{macro}
1241 %  \end{macro}
1244 %  \begin{macro}{\rlap}
1245 %  \begin{macro}{\llap}
1246 %    These macros place text to the left or right of the current
1247 %    reference point without taking up space.
1248 %  \end{macro}
1249 %    \begin{macrocode}
1250 \def\rlap#1{\hb@xt@\z@{#1\hss}}
1251 \def\llap#1{\hb@xt@\z@{\hss#1}}
1252 %    \end{macrocode}
1253 %  \end{macro}
1255 %    \begin{macrocode}
1256 %</2ekernel>
1257 %    \end{macrocode}
1259 % \Finale
1260 \endinput
1262 % \Finale