平均能量损失
\documentclass{beamer}
\begin{document}
\begin{frame}
Some question ...
(a) Part a of question
\begin{itemize}[<+(1)->]
\item Step 1 of solution
\item Step 2 of solution
\end{itemize}
(b) Part b of question
\begin{itemize}[<+(1)->]
\item Step 1 of solution
\item Step 2 of solution
\end{itemize}
\end{frame}
\end{document}
问题
在 Beamer 中,是否有办法[<+(1)->]
为环境(并且仅限于此环境)设置默认选项itemize
?我宁愿不使用该enumitem
软件包,因为它与 Beamer 存在兼容性问题。
答案1
您可以\renewcommand{\itemize}
设置默认覆盖规范(之后\begin{document}
):
\documentclass{beamer}
\usepackage{letltxmacro}
\LetLtxMacro\olditemize\itemize
\begin{document}
% Update itemize to have a default overlay
\renewcommand{\itemize}[1][<+(1)->]{\olditemize[#1]}
\begin{frame}
Some question ...
(a) Part a of question
\begin{itemize}
\item Step 1 of solution
\item Step 2 of solution
\end{itemize}
(b) Part b of question
\begin{itemize}
\item Step 1 of solution
\item Step 2 of solution
\end{itemize}
\end{frame}
\end{document}