
Das MWE
\documentclass{beamer}
\usepackage[english]{babel}
\usepackage{tcolorbox}
\begin{document}
\begin{frame}
\begin{tcolorbox}
A\pause B
\end{tcolorbox}
\begin{tcolorbox}
A\pause B
\end{tcolorbox}
\end{frame}
\end{document}
erzeugt drei Folien: A-AB
, AB-A
, und AB-AB
, was nicht meinen Erwartungen entspricht ( A-
, AB-A
, und AB-AB
).
Hier\pause
jemand rät, überhaupt nicht innerhalb eines zu verwenden tcolorbox
, aber dieHandbucherwähnt ein beamer
Skin, also nehme ich an, dass es Unterstützung für haben muss beamer
. Gibt es eine bessere Möglichkeit, das oben genannte zu tun?
Antwort1
Die Verwendung von \only
stattdessen funktioniert, ist allerdings etwas mehr Arbeit.
\documentclass{beamer}
\usepackage[english]{babel}
\usepackage{tcolorbox}
\begin{document}
\begin{frame}
\begin{tcolorbox}
A\only<2->{B}
\end{tcolorbox}
\begin{tcolorbox}
\only<3->{A}\only<4>{B}
\end{tcolorbox}
\end{frame}
\end{document}