Consider the following example (I edited the example to include LaTeX lrbox environment):
\documentclass{beamer}
\newsavebox\mybox
\newsavebox\myboxb
\begin{document}
\frame{
\sbox\mybox{Hello World!}\usebox\mybox %works
\begin{lrbox}\myboxb Bonjour!\end{lrbox}\usebox\myboxb %works
}
\frame{
\usebox\mybox %is empty
\usebox\myboxb %is empty
}
\end{document}
Why is it that the second frame is blank? Is there possibly a workaround?
\sbox\mybox{Hello World!}into the preamble? Would also have global effect. – Thorsten Donig Feb 01 '12 at 10:58