TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm making a poster using beamer and when I use \begin{theorem} and \begin{proof} it makes the theorems and proofs in a box just like a block title would be.

I understand this is the default setting when using beamer but I want my theorems and proofs to look like the default when just writing an article in LaTeX. Is there a way I can change the theorem style or theorem environment so that theorem and proof are no longer in boxes?

share|improve this question

migrated from stackoverflow.com Dec 30 '11 at 16:19

This question came from our site for professional and enthusiast programmers.

Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question. – Werner Dec 30 '11 at 16:41

Here is a naive approach at defining your own mytheorem and myproof environments.

enter image description here

\documentclass{beamer}% http://ctan.org/pkg/beamer

  {\alert{\upshape\textbf{Theorem}} #1\hspace*{\fill} \\
  \alert{\textbf{\insertproofname}} \hspace*{\fill} \\}

  \frametitle{This is a frame title}
    This is a theorem statement.

    This is a theorem proof.

  \frametitle{This is a frame title}
    This is a theorem statement.

    This is a theorem proof.


In the above example, mytheorem typesets Theorem using in boldface, upright and "alerted" font (\alert{\upshape\textbf{...}}) just to show that there is freedom in the formatting. The same goes for myproof.

It would be possible to completely duplicate the theorem environment that would allow (1) a bracketed optional argument and (2) even a theorem number, if needed. However, since this still forms part of a presentation where numbering doesn't make much sense, it's been left out. At the moment, specifying an optional parenthesized theorem addition is obtain using \begin{mytheorem}[(...)].

Defining your own, new environment for theorems and proofs allows you to switch between or back to the regular theorem and proof environments, if needed.

share|improve this answer

The style is defined by

  • \setbeamertemplate{theorem begin} and
  • \setbeamertemplate{theorem end}

Check page 122 of beameruserguide.pdf. In the following I have just deleted the \inserttheoremblockenv commands from the definition in the manual.

\setbeamertemplate{theorem begin}{{
\ifx\inserttheoremaddition\@empty\else\ (\inserttheoremaddition)\fi%
\setbeamertemplate{theorem end}{}
Hello World!
share|improve this answer
For what it's worth, in order to avoid getting Theorem 1 (), I need to use \empty and not \@empty. – hoyland Jul 20 '12 at 17:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.