因为我不是母语人士而且我肯定到目前为止没有人理解它我会用简单的语言解释它...我正在为我的单身汉写一篇论文所以它只有大约30页......现在我为这样的命令定义了一个:
\newtheorem{theo}{Theorem}[chapter]
\newtheorem{lema}{Lemma}[chapter]
\theoremstyle{definition}
\newtheorem{defin}{Definition}[chapter]
\theoremstyle{plain}
\newtheorem{cor}{Corollar}[chapter]
Run Code Online (Sandbox Code Playgroud)
这很好用; 但是,例如,如果我在第2章并使用这样的命令:
\cor
\cor
\defin
\lema
Run Code Online (Sandbox Code Playgroud)
它像这样:
Corollar 2.1
Corollar 2.2
Definition 2.1
Lemma 2.1
Run Code Online (Sandbox Code Playgroud)
然而,开始自己的编号,定义,引理等编号是没有意义的,因为论文很短,因此它比帮助更令人困惑; 所以我希望它是这样的:
Corollar 2.1
Corollar 2.2
Definition 2.3
Lemma 2.4
Run Code Online (Sandbox Code Playgroud)
知道怎么做吗?
如此处所述,您可以尝试以下操作:
\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
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2042 次 |
| 最近记录: |