2

I am creating slides and want to uncover text from a list in steps. To avoid having to number each \item (a pain when adding a line afterwords), I add \pause after lines that are unveiled in steps. Adding \uncover<+-> as advised instead of \onslide with pause, does not solve the problem.

I would like to uncover the whole slide transparent at the beginning as a hint of things to come. If I do this with an initial line is only shown once the first part is visible. Any solutions?

MWE:

\documentclass{beamer}
\setbeamercovered{transparent}
\begin{document}
\begin{frame}{This is what I get with pause}
    \begin{itemize}[<+->]
      \item line 0
      \item line 1a \uncover<+->{line 1b}
      \item line 2 (this line should be transparent from the start of the slide)
    \end{itemize}
\end{frame}
\end{document} 

1 Answer 1

0

The best way to solve any problems involving \pause is to not use this crude command.

You can use \uncover<+->{line 1b} instead, which will create a new overlay and uncover line 1b there. The [<+->] option of your itemisation will take care of uncovering line 2 on the appropriate slide.

\documentclass{beamer}
\setbeamercovered{transparent}

\begin{document}

\begin{frame}
  \frametitle{This is what I get with pause}
    \begin{itemize}[<+->]
      \item line 1a \uncover<+->{line 1b}
      \item line 2
    \end{itemize}
\end{frame}
\end{document}

enter image description here


For the case in the edited question:

\documentclass{beamer}
\setbeamercovered{transparent}

\begin{document}
\begin{frame}
\frametitle{This is what I get with pause}
    \begin{itemize}[<+->]
      \item line 0
      \item line 1a \uncover<1-+(-2),+->{line 1b}
      \item line 2 (this line should be transparent from the start of the slide)
    \end{itemize}
\end{frame}
\end{document} 

enter image description here

2
  • I changed the MWE above, as your solution only seems to work if the line is the first. If I put a line above (line 0), then line 1b only shows as transparent once line 1a shows fully.
    – EconGuy
    Commented Jun 1, 2023 at 9:28
  • That worked perfectly. Just for reference, if there are two or more items to uncover, the scond one gets \uncover<1-+(-3),+->{}, the third \uncover<1-+(-4),+->{}, and so on
    – EconGuy
    Commented Jun 1, 2023 at 14:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .