gpt4 book ai didi

latex - 如何在 latex 中连续对定理,定义等进行编号,而无需为每条线都单独添加一行?

转载 作者:行者123 更新时间:2023-12-04 15:09:32 41 4
gpt4 key购买 nike

因为我不是母语人士,所以我敢肯定,到目前为止,还没有人能理解它,所以我将尝试用简单的语言来解释它。
我正在为学士学位写论文,所以大约只有30页...现在,我为一些命令定义了这样的命令:

\newtheorem{theo}{Theorem}[chapter]

\newtheorem{lema}{Lemma}[chapter]

\theoremstyle{definition}
\newtheorem{defin}{Definition}[chapter]

\theoremstyle{plain}
\newtheorem{cor}{Corollar}[chapter]

这很好用;但是例如如果我在第2章中,并使用如下命令:
\cor
\cor
\defin
\lema

它是这样的:
Corollar 2.1 
Corollar 2.2
Definition 2.1
Lemma 2.1

但是,对花冠,定义,引理等进行自己的编号是没有意义的。因为论文很短,因此,比帮助更容易混淆。
所以我希望它像这样:
Corollar 2.1 
Corollar 2.2
Definition 2.3
Lemma 2.4

任何想法如何做到这一点?

最佳答案

there所述,您可以尝试以下操作:

\usepackage{amsthm}
\theoremstyle{plain}
\newtheorem{theo}{Theorem}[chapter] % reset theorem numbering per chapter

\theoremstyle{definition}
\newtheorem{defin}[theo]{Definition} % definition numbers are dependent on theorem numbers
\newtheorem{lema}[theo]{Lemma} % same for Lemmas
\newtheorem{cor}[theo]{Corollar}% same for Corollars

关于latex - 如何在 latex 中连续对定理,定义等进行编号,而无需为每条线都单独添加一行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34274267/

41 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com