如何使嵌套列表叠加不抖动

如何使嵌套列表叠加不抖动

我正在尝试使用叠加层来显示环境中的连续要点itemize。每个要点都item包含自己的二级环境,这些环境也将一次itemize显示一个。item

我希望在超越item任何第二级的最后一级之后itemize,该第二级itemize变得不可见并且不占用任何空间,且不会引起任何摆动。

以下是我现在所拥有的:

\begin{frame}[t]
  \frametitle{Solutions to the Liar.}
  \begin{itemize}
    \item<2-> \textit{secundum quid et simpliciter}. \uncover<4->{\textbf{Solution.} Unclear.}
      \only<3>{\begin{itemize}
        \item Mentioned by Aristotle (\textit{Sophistici Elenchi}, 180b2-3).
      \end{itemize}}
    \item<5-> \textit{transcasus}. \uncover<9->{\textbf{Solution.} The Liar sentence is false.}
      \only<6-8>{\begin{itemize}
        \item<6-8> Derives from the Stoic \textit{metaptosis}: differing truth-values over time.
        \item<7-8> When I say ``I am speaking a falsehood'' I am referring to what I said immediately preceding to that sentence. 
        \item<8> If I didn't say anything before that, then the sentence is just false.
      \end{itemize}}
  \end{itemize}
\end{frame}

如果您翻阅该框架,您会看到,一旦 itemize显示每个第二级,其父级item就会向上移动一点,然后当第二级itemize隐藏时,它会向下移动。

我怎样才能摆脱这种摇摆?

答案1

问题是第二级 itemize 环境的高度小于第一级 itemize 环境中第二个项目的高度。我可以通过以下方式解决这个问题:

\begin{frame}[t]
  \frametitle{Solutions to the Liar 2}
  \begin{itemize}
    \item<2-> \textit{secundum quid et simpliciter}. \uncover<4->{\textbf{Solution.} Unclear.}
      \begin{itemize}
        \item<only@3> Mentioned by Aristotle (\textit{Sophistici Elenchi}, 180b2-3).
      \end{itemize}
    \item<5-> \textit{transcasus}. \uncover<9->{\textbf{Solution.} The Liar sentence is false.}
      \begin{itemize}
        \item<6-8> Derives from the Stoic \textit{metaptosis}: differing truth-values over time.
        \item<7-8> When I say ``I am speaking a falsehood'' I am referring to what I said immediately preceding to that sentence. 
        \item<8> If I didn't say anything before that, then the sentence is just false.
      \end{itemize}
  \end{itemize}
\end{frame}

相关内容