为 Theorem、Corollary 和 Remark 的新命令重复编号

Repeated numbering for new commands for Theorem, Corollary and Remark

我在 latex 中有以下代码

\documentclass[letterpaper,12pt,oneside]{book}

\newtheorem{Theorem}{Theorem}[section]
\newtheorem{Proposition}{Proposition}[section]
\newtheorem{Lemma}{Lemma}[section]
\newtheorem{Definition}{Definition}[section]
\newtheorem{Corollary}{Corollary}[section]
\newtheorem{Remark}{Remark}[section]

我希望编号随着我使用的每个定义的新定理而增加。

例如第2章有引理2.1.1、备注2.1.1和定理2.1.1,它们的出现顺序是这样的。相反,我希望它被编号为引理 2.1.1、备注 2.1.2 和定理 2.1.3。

我尝试将 [subsection] 放在 \newtheorem 行的末尾,但它没有解决问题。

请问有人知道怎么解决吗?

而不是使用表格

\newtheorem{Proposition}{Proposition}[section]

您必须使用替代形式

\newtheorem{Proposition}[Theorem]{Proposition}

虽然前者告诉在一个部分中对类似定理的环境进行编号,但后者告诉我们重用已在 Theorem 环境中定义的计数器。

因此您必须使用第一种形式声明定理,使用第二种形式声明其他形式以重用定理编号。

\documentclass[letterpaper,12pt,oneside]{book}

\newtheorem{Theorem}{Theorem}[section]
\newtheorem{Proposition}[Theorem]{Proposition}
\newtheorem{Lemma}[Theorem]{Lemma}
\newtheorem{Definition}[Theorem]{Definition}
\newtheorem{Corollary}[Theorem]{Corollary}
\newtheorem{Remark}[Theorem]{Remark}

\begin{document}
\chapter{Testing newtheorem numbering}
\section{This is a section}
\begin{Theorem}
  This is a Theorem
\end{Theorem}
\begin{Proposition}
  This is a Proposition
\end{Proposition}
\begin{Lemma}
  This is a Lemma
\end{Lemma}
\begin{Definition}
  This is a Definition
\end{Definition}
\begin{Remark}
  One can remark the correct numbering.
\end{Remark}
\end{document}