Chapter 11
Boxes

   11.1 Centerline, Leftline, Rightline

ltboxes.dtx

Boxes are occasionally before placing them within pictures. In such cases, configurations of the form ‘\Configure{lrbox}{\noexpand\PictureOff}’ might be useful. We don’t want such configurations for a default, because of possible nested pictures such as in ‘\newsavebox{\bx} \begin{lrbox}{\bx}% \( x = \frac{1}{2} \) \end{lrbox}

<..latex ltboxes..>
 \def\lrbox#1{%
   \edef\reserved@a{%
     \endgroup
     \setbox#1\hbox{%
       \a:lrbox
       \begingroup   \aftergroup}%
         \def\noexpand\@currenvir{\@currenvir}%
         \def\noexpand\@currenvline{\on@line}}%
   \reserved@a
     \@endpefalse
     \color@setgroup
       \ignorespaces}
 \NewConfigure{lrbox}{1}
 -_-_-

We place the third parameter of \makebox in a group for avoiding problematic font of the form ‘</CODE><CODE >uparrow’ from ‘\makebox[90pt][l]{\tt uparrow}’ instead of ‘<CODE >uparrow</CODE>’.

<..latex ltboxes..>+
 \long\def\:tempc[#1][#2]#3{\o:@imakebox:[#1][#2]{{#3}}}
 \HLet\@imakebox=\:tempc
 -_-_-

Similarly for the following.

<..latex ltboxes..>+
 \let\:sbox=\sbox
 \long\def\sbox#1#2{\:sbox#1{{#2}}}
 -_-_-