1

Is there a way in this MWE to keep the first item in place when displaying the subitems? The idea is that I have several items on the slide that I want to uncover one-by-one, each time elaborating on the item with additional subitems that are supposed to disappear again. I find it distracting when the items change positions.

\documentclass{beamer}
\begin{document}
\begin{frame}{Frame Title}
    \begin{itemize}
        \item<1-> xxxx
        \begin{itemize}
            \item<only@2> xyz
            \item<only@2> xyz
            \item<only@2> xyz
            \item<only@2> xyz
        \end{itemize}
        \item<3-> xxx
    \end{itemize}
\end{frame}
\end{document}
2
  • Are you looking for \item<visible@2> xyz so that the space of the subitems is kept? Or maybe a top aligned frame \begin{frame}[t] so that the content won't jump? Nov 23, 2022 at 14:57
  • I basically want the effect of the top-aligned frame that the content won't jump without the content actually being top-aligned. I do want the space of hidden items to disappear. Nov 23, 2022 at 17:52

1 Answer 1

1

You could use an overlayarea of suitable height (change .5\textheight to whatever height your items require):

\documentclass{beamer}
\begin{document}
\begin{frame}{Frame Title}
    \begin{overlayarea}{\textwidth}{.5\textheight}
    \begin{itemize}
        \item<1-> xxxx
        \begin{itemize}
            \item<only@2> xyz
            \item<only@2> xyz
            \item<only@2> xyz
            \item<only@2> xyz
        \end{itemize}
        \item<3-> xxx
    \end{itemize}
    \end{overlayarea}
\end{frame}
\end{document}

enter image description here

3
  • Suppose I wanted to automate this. Is there a way for me to dynamically adjust the size of the overlayarea to the size of the content within it? Nov 23, 2022 at 18:01
  • The automatic solution is called top aligned frame :) Nov 23, 2022 at 22:41
  • I see. So there is no solution to have the content centered on the slide and still have it behave like it's top-aligned or placed within an overlayarea. Nov 24, 2022 at 11:34

You must log in to answer this question.

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