[Tex/LaTex] Theorem boxes in beamer

beamertheorems

Usually I use beamer with the Warsaw theme which puts theorems (and other things) in boxes. Now I switched my theme to Marburg but i still want to keep the boxes. How can one do that?

Best Answer

In fact even using the Marburg theme, your theorems are still in boxes, but you do not see them, because their colours are undefined. Warsaw uses colours from the orchid colour theme, so you can just add it to your presentation as well.

\documentclass{beamer}

\usetheme{Marburg}
\usecolortheme{orchid}

\begin{document}
    \begin{frame}{A theorem in a box}
        \begin{theorem}
         Let $r, s$ be integers such that gcd$(r, s)=1$. 
        Given integers $a,b$, there exists unique 
        $x <rs$ such that 
        \end{theorem} 
    \end{frame} 
\end{document}

enter image description here

enter image description here