visible
在环境中使用 Beamer 命令时itemize
,我注意到有时该命令也会使项目符号消失。在下面提供的示例中,第四行的项目符号与旁边的文本一起被隐藏。我没想到这一点 - 我该如何改变这种情况?
\documentclass{beamer}
\mode<presentation>{%
\setbeamercovered{transparent}
}
\begin{document}
\begin{frame}
\begin{itemize}
\item first
\pause
\item second
\pause
\item \only<3->{third} word jumping around -- not nice
\pause
\item \visible<4->{fourth} entry makes the bullet disappear -- why?
\pause
\item Does not happen unless the \visible<5->{appearing} word is at the beginning of the line.
\end{itemize}
\end{frame}
\end{document}
答案1
这可能是一个错误。作为解决方法,请使用\item \leavevmode \visible<4->{...}
,如下所示:
\documentclass{beamer}
\mode<presentation>{%
\setbeamercovered{transparent}
}
\begin{document}
\begin{frame}
\begin{itemize}
\item first
\pause
\item second
\pause
\item \only<3->{third} word jumping around -- not nice
\pause
\item \leavevmode \visible<4->{fourth} entry makes the bullet disappear -- why?
\pause
\item Does not happen unless the \visible<5->{appearing} word is at the beginning of the line.
\end{itemize}
\end{frame}
\end{document}
它是如何工作的?嗯,\visible
不再位于行首,而是位于\leavevmode
行首 :-)