以下是 MWE:
%\documentclass{beamer}
\documentclass{article}
\usepackage{beamerarticle}
\begin{document}
\section{First section}
\begin{frame}
\begin{definition}[Gnats]
Gnats are small
\end{definition}
\begin{theorem}[Gnus]
Gnus are large
\end{theorem}
\begin{corollary}
Animals come in different sizes
\end{corollary}
\end{frame}
\section{Second section}
\begin{frame}
\begin{fact}[Bees]
Bees do it
\end{fact}
\begin{lemma}[Birds]
Birds also do it
\end{lemma}
\begin{theorem}[us]
Let's do it!
\end{theorem}
\end{frame}
\end{document}
输出只是将所有内容编号在一起。
答案1
有以下选项:
\usepackage[envcountsect]{beamerarticle}
\documentclass{article}
\usepackage[envcountsect]{beamerarticle}
\begin{document}
\section{First section}
\begin{frame}
\begin{definition}[Gnats]
Gnats are small
\end{definition}
\begin{theorem}[Gnus]
Gnus are large
\end{theorem}
\begin{corollary}
Animals come in different sizes
\end{corollary}
\end{frame}
\section{Second section}
\begin{frame}
\begin{fact}[Bees]
Bees do it
\end{fact}
\begin{lemma}[Birds]
Birds also do it
\end{lemma}
\begin{theorem}[us]
Let's do it!
\end{theorem}
\end{frame}
\end{document}