如何将这些列固定在其位置上?
\begin{frame}
\only<1->{
\begin{columns}
\column{4,7cm}
\hspace{0.6cm}
\includegraphics[width=2.3cm,height=1.7cm]{images/temps_prob}
\column{\dimexpr\textwidth-4.7cm\relax}
\hspace*{-20pt}\parbox{\dimexpr\linewidth+20pt\relax}{%
\begin{itemize}
\item E :
\begin{itemize}
\item D.
\item C.
\end{itemize}
\end{itemize}
}
\end{columns}
}
\vspace{0.1cm}
\only<2->{
\begin{columns}
\column{4,7cm}
\hspace{0.6cm}
\includegraphics[width=2.3cm,height=1.7cm]{images/productivite_prob}
\column{\dimexpr\textwidth-4.7cm\relax}
\hspace*{-20pt}\parbox{\dimexpr\linewidth+20pt\relax}{%
\begin{itemize}
\item B.
\end{itemize}
}
\end{columns}
}
\vspace{0.2cm}
\only<3->{
\begin{columns}
\column{4,7cm}
\hspace{0.6cm}
\includegraphics[width=2.3cm,height=3cm]{images/controle_prob}
\column{\dimexpr\textwidth-4.7cm\relax}
\hspace*{-20pt}\parbox{\dimexpr\linewidth+20pt\relax}{%
\begin{itemize}
\item A.
\end{itemize}
}
\end{columns}
}
\end{frame}
因为,当我点击向下按钮时,最后一行显示的内容被翻译到顶部,而新行出现在底部。是否可以从一开始就将这些行锁定在其定义的位置?如果可以,请问如何操作?
多谢!
答案1
一种选择是使用\onslide
或\visible
代替\only
:
\PassOptionsToPackage{demo}{graphicx}
\documentclass{beamer}
\begin{document}
\begin{frame}
\onslide<1->{
\begin{columns}
\column{4.7cm}
\hspace{0.6cm}
\includegraphics[width=2.3cm,height=1.7cm]{images/temps_prob}
\column{\dimexpr\textwidth-4.7cm\relax}
\hspace*{-20pt}\parbox{\dimexpr\linewidth+20pt\relax}{%
\begin{itemize}
\item E :
\begin{itemize}
\item D.
\item C.
\end{itemize}
\end{itemize}
}
\end{columns}
}
\vspace{0.1cm}
\onslide<2->{
\begin{columns}
\column{4.7cm}
\hspace{0.6cm}
\includegraphics[width=2.3cm,height=1.7cm]{images/productivite_prob}
\column{\dimexpr\textwidth-4.7cm\relax}
\hspace*{-20pt}\parbox{\dimexpr\linewidth+20pt\relax}{%
\begin{itemize}
\item B.
\end{itemize}
}
\end{columns}
}
\vspace{0.2cm}
\onslide<3->{
\begin{columns}
\column{4.7cm}
\hspace{0.6cm}
\includegraphics[width=2.3cm,height=3cm]{images/controle_prob}
\column{\dimexpr\textwidth-4.7cm\relax}
\hspace*{-20pt}\parbox{\dimexpr\linewidth+20pt\relax}{%
\begin{itemize}
\item A.
\end{itemize}
}
\end{columns}
}
\end{frame}
\end{document}
线路
\PassOptionsToPackage{demo}{graphicx}
只是为了使示例代码可编译;做不是在您的实际文档中使用它。