我的演讲分为三部分,涉及三篇不同的论文。我想对每部分(论文)中的定理和命题进行编号。
答案1
您可以使用etoolbox
包,使\part
命令重置计数器:
\documentclass{beamer}
\usepackage{etoolbox}
\setbeamertemplate{theorems}[numbered]
\pretocmd{\part}{\setcounter{theorem}{0}}{}{}
\newtheorem{proposition}[theorem]{Proposition}
\begin{document}
\part{Test Part One}
\begin{frame}
\begin{theorem}
Test theorem in part one.
\end{theorem}
\begin{proposition}
Test proposition in part one.
\end{proposition}
\end{frame}
\part{Test Part Two}
\begin{frame}
\begin{theorem}
Test theorem in part two.
\end{theorem}
\begin{proposition}
Test proposition in part two.
\end{proposition}
\end{frame}
\end{document}