thmtools icon indicating copy to clipboard operation
thmtools copied to clipboard

restate key incompatible with beamer

Open mbertucci47 opened this issue 1 year ago • 0 comments

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}

mbertucci47 avatar Dec 15 '23 22:12 mbertucci47