# Beamer : Overlay-aware environments using \newtcbtheorem

I recently tried \newtcbtheorem to define new environments, however, these are not overlay-aware. Any idea why this is happening ?

Here is a MWE :

\documentclass{beamer}

\usepackage[theorems]{tcolorbox}

\newtcbtheorem[number within=section]{theo_beamer}{Theorem}{colframe=blue}{thm}
\newtcbtheorem[number within=section,use counter from=theo_beamer]{prop_beamer}{Proposition}{colframe=red}{prop}

\resetcounteronoverlays{tcb@cnt@theo_beamer}

\begin{document}
\begin{frame}

\begin{theo_beamer}{Title}{label1}
main result
\end{theo_beamer}

\onslide<2->{
\begin{prop_beamer}{Title}{label2}
Let's call Theorem \ref{label1}
\end{prop_beamer}
}
\end{frame}
\end{document}

• With \ref{label1} replaced by \ref{thm:label1}, compiling your example, I get a two-page pdf. First page shows theo_beamer environment only, and second page shows two environments. Hence I cannot reproduce your problem. Jul 7, 2020 at 23:42