# Remove shadow from beamer displaybox

I don't like shadows of the displaybox environment of beamer.

I've found this file /usr/share/texmf/tex/latex/beamer/themes/inner/beamerinnerthemeumbcboxes.sty which contains its declarations

\newenvironment{displaybox}[1]
{
\centerline\bgroup\hfill
}
{
\end{beamerboxesrounded}\hfill\egroup
}


I tried to change to shadow=false and then execute a \$texhash but I keep getting shadows, can anyone tell me how to override this setting? Thanks

It's never a good idea to change directly a system file; simply use a definition in your document:

\documentclass{beamer}

\newenvironment{displaybox}[1]
{
\centerline\bgroup\hfill
}
{
\end{beamerboxesrounded}\hfill\egroup
}

\begin{document}

\begin{frame}
\begin{displaybox}{3cm}
test
\end{displaybox}
\end{frame}

\end{document}



• that's exactly what I've just done! I didn't know how to define a new environment but then I guessed it from the syntax and it was easy. Thanks anyway! – unziberla Apr 17 '13 at 17:29