Consider the following code:
\documentclass{beamer}
\usepackage{tcolorbox}
\begin{document}
\begin{frame}
some text before
\pause
\begin{tcolorbox}
\begin{tabular}{cc}
cell1 & cell2\\\pause
cell3 & cell4
\end{tabular}
\end{tcolorbox}
\pause
some text after
\end{frame}
\end{document}
The expected result would be that "some text after" only appears on the fourth slide, but "some text after" is already visible on the second slide, then disappears on the third and then reappears in the fourth.
Any hint on what's going on?
Notes:
- the same result occurs if the
tabularx
tcolorbox key is used instead of tabular - my actual workaround for this is to use
\only
or\uncover
, but I'm more interested in the reason why this doesn't work.
edit: it seems that the tcolorbox environment interferes with the pause counter. If after the tcolorbox envirnoment you put
\setcounter{beamerpauses}{#}
where #
is equal to the number of \pause
issued before the tcolorbox environment everything works fine.
Uhm, actually that works only in a very specific scenario
tcolorbox
withmdframed
. So it is probably something inside thetcolorbox
package. (+1) for the question, now I'm curious too.lmodern
.\usepackage{lmodern}