繁体   English   中英

为定理,推论和注释的新命令重复编号

[英]Repeated numbering for new commands for Theorem, Corollary and Remark

我在乳胶中有以下代码

\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。

我试图将[小节]放在\\ newtheorem行的末尾,但是它不能解决问题。

请问有人知道如何解决这个问题吗?

而不是使用表格

\newtheorem{Proposition}{Proposition}[section]

您必须使用其他形式

\newtheorem{Proposition}[Theorem]{Proposition}

前者告诉在一个节中给类似定理的环境编号,后者告诉重用已经在定理环境中定义的计数器。

因此,必须使用第一种形式来声明定理,然后使用第二种形式来重复使用定理编号。

\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}

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM