如何在定理中引用全部内容并避免代码重复?

如何在定理中引用全部内容并避免代码重复?

我有一堆定理

\section{maybe 2}
\begin{Theorem}an interesting theorem\end{Theorem} # Theorem 1
\begin{Theorem}a boring theorem\end{Theorem}
% n lines ommited
\section{maybe 10}
\begin{Theorem}the last interesting theorem\end{Theorem} # Theorem 233

我想引用第一部分的全部内容

\section{Highlights}
\begin{Theorem}an interesting theorem\end{Theorem} # numbering 1
# m (<< n) lines ommited
\begin{Theorem}the last interesting theorem\end{Theorem} # numbering 233

是否有任何优雅的方式来引用某些定理的整个上下文,而无需直接复制和粘贴代码,手动设置计数器?

相关内容