7

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!

1
10

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

4

You can use the block env.

\begin{frame}[fragile]\frametitle{}
\begin{block}{Any Title}
  Simmons Hall is composed of metal and concrete.
\end{block}
\end{frame}

Use of block function to create boxes

0

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.