I'm trying to create a theorem style using Beamer with Madrid theme, but I can't figure out how to not have it in boxes. Everything I try just simply ends up automatically inside boxes. Also, I don't want a line break between the title and the text. Any ideas? Thanks a lot.

  • 2
    It might be helpful to explain what you do want the theorem style to look like. – Dai Bowen Sep 16 '16 at 1:30
  • 1
    It would also be helpful to show us what you have tried. Posting a minimal working example that indicates what you are trying to do makes it easier for people to understand what you want, easier for people to help you since they have some code to start from and much more likely that they will actually try to help you. – user30471 Sep 16 '16 at 6:51
  • Type it directly inside the frame environment ? – percusse Sep 16 '16 at 7:47

You can modify the definition of theorems in beamer:


\setbeamertemplate{theorem begin}{%
%  \begin{\inserttheoremblockenv}% removed
    \ifx\inserttheoremaddition\@empty\else\ (\inserttheoremaddition)\fi%
    \space% new

\setbeamertemplate{theorem end}{}

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

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.