Discussion:
[beamer-class] Mixture of \only and \onslide behaviour?
Lukas Barth
2016-04-19 12:58:15 UTC
Permalink
Hi everyone,

I'm having two chunks of \items inside an itemize, and I want to replace
the first chunk with the second chunk on click. What I currently do is to
wrap both chunks in appropriate \only<>s, like this:

\begin{itemize}
\only<1> {
\item Foo
\item Bar
}
\only<2> {
\item I replace Foo
\item I replace Bar
\item I am new!
}
\end{itemize}

Now, since they are of different sizes, this makes the itemize jump around
on the slide. What I would need is some grouping of the \only<>s, that
reserves spaces for the contents of the largest \only<> inside the group..

Can something like that be achieved?

Thanks a lot,

Lukas
--
You received this message because you are subscribed to the Google Groups "LaTeX Beamer class" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beamer-class+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mark Yagnatinsky
2016-04-20 07:03:30 UTC
Permalink
When I first saw this email, I though to myself, "I know exactly where in
the beamer manual to find the answer to this question". I was about to
send an answer along the lines of "see section 9.5", when I decided to
double check that things are really as simple as I thought. Over an hour
later, I finally present the following rather simple solution :)

\begin{overprint}

\onslide<1>

\begin{itemize}

\item Foo

\item Bar

\end{itemize}

\onslide<2>

\begin{itemize}

\item I replace Foo

\item I replace Bar

\item I am new!

\end{itemize}

\end{overprint}


Hope this helps.
Post by Lukas Barth
Hi everyone,
I'm having two chunks of \items inside an itemize, and I want to replace
the first chunk with the second chunk on click. What I currently do is to
\begin{itemize}
\only<1> {
\item Foo
\item Bar
}
\only<2> {
\item I replace Foo
\item I replace Bar
\item I am new!
}
\end{itemize}
Now, since they are of different sizes, this makes the itemize jump around
on the slide. What I would need is some grouping of the \only<>s, that
reserves spaces for the contents of the largest \only<> inside the group..
Can something like that be achieved?
Thanks a lot,
Lukas
--
You received this message because you are subscribed to the Google Groups
"LaTeX Beamer class" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "LaTeX Beamer class" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beamer-class+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...