# beamer overlay: carry text over from previous slide

This code

\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{overprint}
\onslide<1>
Text on slide 1 and 2
\onslide<2>
Text on slide 1 and 2\\
Text on slide 2
\end{overprint}
\end{frame}
\end{document}


creates the output

As the phrase

Text on slide 1 and 2

is used both on slides 1 and 2 I have to repeat it 1 time. Wouldn't it be so much better if I could carry it over from the previous slide and then just append

Text on slide 2

to it.

Is it possible?

• Sure, that's what \pause does. Text on slide 1 and 2 \pause Text on slide 1 and 2\\ Text on slide 2 – user121799 Jan 28 '18 at 21:56

Sure, that's what the \pause command does.

\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{overprint}
Text on slide 1 and 2\\
\pause
Text on slide 2
\end{overprint}
\end{frame}
\end{document}

• Thank you for converting your comment into an answer - even on such a busy day for you! – samcarter_is_at_topanswers.xyz Feb 2 '18 at 14:11
• @samcarter Casting a shadow is actually not so time consuming, especially with TikZ ;-) – user121799 Feb 2 '18 at 15:11