我想在 Beamer 中制作一张幻灯片,每次单击时 itemize 都会显示新行,而幻灯片底部有一些方程式。这是我的尝试
\begin{frame}
\begin{overprint}{\textwidth}
\leavevmode
\begin{itemize}[<+->]
\item <1-> Poisson Boltzman equation (PB)
\item <2-> Debye-H\"uckle equation (DH)
\item <3-> The naive approach - applying (DH) equation to PE
\end{itemize}
\end{overprint}
\begin{tikzpicture}
\node at (0,0) {};
\node<1,2> [text width = 20cm]at (10.5,-1) {$ \nabla^2 \phi =\sum_i \frac{n_i q_i\text{e}^{-q_i \phi/kT}}{4 \pi \epsilon}$};
\node <2> [text width = 20cm]at (10.5,-2) {$q_i \phi/kT \ll 1 \Rightarrow \nabla^2 \phi \simeq \kappa^2 \phi$};
\node <2> [text width = 20cm, font=\footnotesize]at (10.5,-2.5) {$\kappa^2 = \lambda^{-1/2} = \sum_i \frac{n_i q_i}{4 \pi \epsilon}$};
\node <3> [text width = 20cm] at(10.5,-1) {$\frac{F_{el}}{VkT} = - \left ( \frac{ 4 \pi e^2}{\epsilon kT}
\sum_{i=1} n_i z_i^2 \right )^{3/2} \left ( 12 \pi \right )^{-1}$};
\end{tikzpicture}
\end{frame}
但是,分项行在幻灯片之间上下跳动。我尝试过使用itemize
没有任何环境的 。我也尝试过使用overlayarea
而不是overprint
。我怎样才能保持线条位置不变?我上传了一个 gif 动画来显示它。在我的计算机上它运行得非常快,我无法解决这个问题。希望问题得到理解。
当我运行这个时,我得到
答案1
一种可能性是overlayarea
:
\documentclass{beamer}
\usepackage{tikz}
\begin{document}
\begin{frame}
\begin{overlayarea}{\textwidth}{.6\textheight}
\begin{itemize}[<+->]
\item <1-> Poisson Boltzman equation (PB)
\item <2-> Debye-H\"uckle equation (DH)
\item <3-> The naive approach - applying (DH) equation to PE
\end{itemize}
\begin{tikzpicture}
\node at (0,0) {};
\node<1,2> [text width = 20cm]at (10.5,-1) {$ \nabla^2 \phi =\sum_i \frac{n_i q_i\text{e}^{-q_i \phi/kT}}{4 \pi \epsilon}$};
\node <2> [text width = 20cm]at (10.5,-2) {$q_i \phi/kT \ll 1 \Rightarrow \nabla^2 \phi \simeq \kappa^2 \phi$};
\node <2> [text width = 20cm, font=\footnotesize]at (10.5,-2.5) {$\kappa^2 = \lambda^{-1/2} = \sum_i \frac{n_i q_i}{4 \pi \epsilon}$};
\node <3> [text width = 20cm] at(10.5,-1) {$\frac{F_{el}}{VkT} = - \left ( \frac{ 4 \pi e^2}{\epsilon kT}
\sum_{i=1} n_i z_i^2 \right )^{3/2} \left ( 12 \pi \right )^{-1}$};
\end{tikzpicture}
\end{overlayarea}
\end{frame}
\end{document}
顺便说一句,你的语法overprint
是错误的;宽度应该声明为可选参数:
\begin{overprint}[<width>]
...
\end{overprint}