How can I place a text on top of another text in beamer? I want something like this but over text while the original text becomes transparent.
Asked
Active
Viewed 1,371 times
0
-
Welcome to TeX.SX! - Do you mean https://tex.stackexchange.com/a/52667/124842 ? – Bobyandbob Oct 09 '18 at 19:14
-
1See https://tex.stackexchange.com/questions/164948/scary-font-echo-effect – Steven B. Segletes Oct 09 '18 at 19:31
-
@StevenB.Segletes The title of your link is too scary to follow :) – samcarter_is_at_topanswers.xyz Oct 09 '18 at 19:34
1 Answers
4
Quick hack: use a negative space to move overlays in different states of uncovering on top of each other
\documentclass{beamer}
\setbeamercovered{%
still covered={\opaqueness<1>{20}},
again covered={\opaqueness<1->{20}}
}
\begin{document}
\begin{frame}
\Huge
\uncover<1>{old text}
\visible<2>{\vspace*{-\baselineskip} new text}
\end{frame}
\end{document}
samcarter_is_at_topanswers.xyz
- 158,329
-
Yes! But the new text is not placed on the first line if I have multiple lines. How to fix this? – Lod Oct 09 '18 at 19:25
-
@Lod If you have multiple lines, you could some use multiple of
\vspace*{-\baselineskip}e.g.\vspace*{-3\baselineskip}. Or use tikz (in particular the tikzmarks library) if you need more flexibility. – samcarter_is_at_topanswers.xyz Oct 09 '18 at 19:28
