如何对文本指定部分内的定理进行编号?

如何对文本指定部分内的定理进行编号?

我想将文本中指定的连续段落块内的定理编号为 1.i (2.i),但该文本块未定义为节或类似内容。如何创建此类定理编号?

答案1

\newcounter{theoremblock}
\renewcommand{\thetheoremblock}{\roman{theoremblock}}
\newtheorem{btheorem}{Theorem}[theoremblock]
\renewcommand{\thebtheorem}{\arabic{btheorem}.\thetheoremblock}
\newenvironment{theoremblock}{\par\refstepcounter{theoremblock}}{}

\begin{theoremblock}
The following theorem will be our main premise.
\begin{btheorem}
All men are mortal.
\end{btheorem}
The next theorem is the secondary premise.
\begin{btheorem}
Socrates is a man.
\end{btheorem}
From these we can draw our conclusion.
\begin{btheorem}
Socrates is mortal.
\end{btheorem}
\end{theoremblock}

相关内容