我有一个框架,框架中有一个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}