2

I want to number my theorems and typeset them in the upright font. I know there are the options "numbered" and "normal font" for the theorem template, but I can't use both at the same time.

Is there some way I can use the "ams style" option and change the ams style for theorem to upright font? I haven't managed to get this working either.

\documentclass{beamer}

\setbeamertemplate{theorems}[numbered]
\setbeamertemplate{theorems}[normal font]

\begin{document}

\begin{theorem}[This should be numbered]

This should be upright.

\end{theorem}

\end{document}
0

1 Answer 1

3

There does not seem to be an existing style for this. But since the code difference between numnbered and normal font is not that big. This seems to work

\documentclass{beamer}
\setbeamertemplate{theorems}[numbered]
\addtobeamertemplate{theorem begin}{\normalfont}{}

\begin{document}

\begin{theorem}[This should be numbered]

This should be upright.

\end{theorem}

\end{document}
2
  • Thanks, works perfectly!
    – Jan
    Commented Jul 31, 2019 at 12:14
  • @Jan remember to click the check mark on an answer if it is what you ended up using
    – daleif
    Commented Jul 31, 2019 at 12:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .