1

This question already has an answer here:

I'm trying to prettyprint a beamer slide with \pause in it using the tcblisting environment. It shows the listing first and then the compiled result. The problem is that the page footer is gone for the first frame (displayed before the \pause).

The MWE is the following:

\documentclass{beamer}
\usetheme{CambridgeUS}
\usepackage[listings]{tcolorbox}
\begin{document}
\begin{frame}[fragile]
\frametitle{Pause in a listing}
\begin{tcblisting}{colback=red!5!white,colframe=red!75!black}
\begin{itemize}
  \item The first item
  \pause \item The second item
\end{itemize}
\end{tcblisting}
\end{frame}
\end{document

Is there a way of getting the footer back? Or may be I'm doing something wrong here? The working \pause is a desirable outcome.

Here are the first and the second PDF pages that come from this example:

Frame 1

Frame 2

marked as duplicate by user36296 beamer Jun 11 '17 at 19:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    Perhaps \item<2-> The second item is a better way here – user31729 Jun 11 '17 at 18:31
  • 1
    Or if you want this automatically for all items: \begin{itemize}[<+->] – user36296 Jun 11 '17 at 18:33
  • Right, \item<2-> certainly works, and it'll be at the next slide. But is there a way to make \pause work as well? – Sergei Golovan Jun 11 '17 at 18:34
  • 1
    @SergeiGolovan In my opinion: \pause is a very crude command. In the long run, you will gain more possibilities and fine control if you use alternatives. – user36296 Jun 11 '17 at 18:36
  • 1
    @SergeiGolovan tcolorbox and \pause don't seem to be friends, another example: tex.stackexchange.com/q/326585/36296 – user36296 Jun 11 '17 at 18:42

Browse other questions tagged or ask your own question.