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. See \sbox & \savebox, for the full description.

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}

© 2007–2018 Karl Berry
Public Domain Software
http://latexref.xyz/lrbox.html