thmtools
thmtools copied to clipboard
restate key incompatible with beamer
The restate
key fails if used with beamer. The restatable
environment works fine. Something to do with the way beamer grabs the contents of a frame, I assume.
\documentclass{beamer}
\setbeamertemplate{theorems}[numbered]
\usepackage{thmtools}
\declaretheorem{MyTheorem}
\begin{document}
\begin{frame}%[fragile] % "fragile" does not fix it
\begin{MyTheorem}[restate=foo]
text
\end{MyTheorem}
%% This works fine.
%\begin{restatable}{MyTheorem}{foo}
%text
%\end{restatable}
\foo*
\end{frame}
\end{document}