Next: , Previous: , Up: Boxes   [Contents][Index]


20.6 lrbox

Synopsis:

\begin{lrbox}{box-cmd} 
  text
\end{lrbox}

This is the environment form of the \sbox and \savebox commands, and is equivalent to them. for the full description, See \sbox & \savebox.

The text inside the environment is saved in the box register referred to by variable box-cmd. The variable name box-cmd must begin with a backslash, \. You must allocate this box register in advance with \newsavebox (see \newsavebox). In this example the environment is convenient for entering the tabular.

\newsavebox{\jhreg}
\begin{lrbox}{\jhreg}
  \begin{tabular}{c}
    \includegraphics[height=1in]{jh.png} \\
    Jim Hef{}feron
  \end{tabular}
\end{lrbox}    
  ...
\usebox{\jhreg}

Unofficial LaTeX2e reference manual