TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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 usually write theorem as follows:

\begin{theorem}[abc]
...
\end{theorem}

Then the title will be Theorem (abc). I would like to name it differently, for instance, "Theorem of abc", "ABC theorem"... Could anyone tell me how to do it?

Thank you very much!

share|improve this question
    
possible duplicate of Customizing theorem name – Peter Grill Aug 30 '11 at 0:44
up vote 7 down vote accepted

You can redefine the theorem begin, and theorem end templates. In the following example, I suppressed the numbering and the parentheses, and added "of" between the theorem name and the theorem additional note:

\documentclass{beamer}

\makeatletter
\setbeamertemplate{theorem begin}
{%
\begin{\inserttheoremblockenv}
{%
\inserttheoremheadfont
\inserttheoremname
\ifx\inserttheoremaddition\@empty\else\ of\ \inserttheoremaddition\fi%
\inserttheorempunctuation
}%
}
\setbeamertemplate{theorem end}{\end{\inserttheoremblockenv}}
\makeatother

\begin{document}

\begin{frame}
\begin{theorem}[Fermat]
Test theorem.
\end{theorem}
\end{frame}

\end{document}

enter image description here

share|improve this answer

Your Answer

 
discard

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

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