Beamer 叠印环境改变项目的垂直间距

Beamer 叠印环境改变项目的垂直间距

我有一个框架,框架中有一个itemize环境,每个环境都\item包含一个方程。但是,有些方程会发生变化,因此我将它们包装在一个overprint环境中,这样就会出现一个方程,然后被另一个方程替换。这很好用,但是项目的垂直间距并不理想,如下所示。 在此处输入图片描述 比较方程和下一个项目之间的间距\phi_a以及\phi_f方程和下一个项目之间的间距。如何纠正这个问题?还是需要手动完成\vspace或类似操作?

这是MWE:

\documentclass[utf8]{beamer}
\begin{document}
\begin{frame}
\begin{itemize}
\item A NBR 6118 define $\phi$ como composto por três parcelas:
\begin{equation*}
\phi = \phi_a + \phi_f + \phi_d
\end{equation*}
\item $\phi_a$ representa a deformação rápida;
\begin{equation*}
\phi_a = 0,8\left(1-\beta_1\left(t_0\right)\right)
\end{equation*}
\item $\phi_f$ representa a deformação lenta irreversível;
\begin{overprint}
\onslide<1>
\begin{equation*}
\phi_f = \phi_{f\infty}\left(\beta_f\left(t\right)-\beta_f\left(t_0\right)\right)
\end{equation*}
\onslide<2>
\begin{equation*}
\phi_f = \phi_{f\infty}\left(\beta_f\left(t_i\right)-\beta_f\left(t_{i-1}\right)\right)
\end{equation*}
\end{overprint}
\item $\phi_d$ representa a deformação lenta reversível.
\begin{overprint}
\onslide<1>
\begin{equation*}
\phi_d = 0,4\frac{t-t_0+20}{t-t_0+70}
\end{equation*}
\onslide<2>
\begin{equation*}
\phi_d = 0,4\left(\frac{t_i-t_0+20}{t_i-t_0+70}-\frac{t_{i-1}-t_0+20}{t_{i-1}-t_0+70}\right)
\end{equation*}
\end{overprint}
\end{itemize}
\end{frame}
\end{document}

答案1

overprint只能很好地处理相当简单的情况。我怀疑这里的用法不够简单,至少在没有某种调整的情况下。

overlayarea对于整个环境来说使用起来更简单itemize

\documentclass[utf8]{beamer}
\begin{document}
  \begin{frame}
    \begin{overlayarea}{\linewidth}{.75\textheight}
      \begin{itemize}
        \item A NBR 6118 define $\phi$ como composto por três parcelas:
        \begin{equation*}
          \phi = \phi_a + \phi_f + \phi_d
        \end{equation*}
        \item $\phi_a$ representa a deformação rápida;
        \begin{equation*}
          \phi_a = 0,8\left(1-\beta_1\left(t_0\right)\right)
        \end{equation*}
        \item $\phi_f$ representa a deformação lenta irreversível;
          \only<1>{%
          \begin{equation*}
            \phi_f = \phi_{f\infty}\left(\beta_f\left(t\right)-\beta_f\left(t_0\right)\right)
          \end{equation*}}
        \only<2>{%
          \begin{equation*}
            \phi_f = \phi_{f\infty}\left(\beta_f\left(t_i\right)-\beta_f\left(t_{i-1}\right)\right)
          \end{equation*}}
        \item $\phi_d$ representa a deformação lenta reversível.
        \only<1>{%
          \begin{equation*}
            \phi_d = 0,4\frac{t-t_0+20}{t-t_0+70}
          \end{equation*}}
        \only<2>{%
          \begin{equation*}
            \phi_d = 0,4\left(\frac{t_i-t_0+20}{t_i-t_0+70}-\frac{t_{i-1}-t_0+20}{t_{i-1}-t_0+70}\right)
          \end{equation*}}
      \end{itemize}
    \end{overlayarea}
  \end{frame}
\end{document}

在 <code>itemize</code> 环境中使用 <code>overlayarea</code> 进行幻灯片

相关内容