2015-12-14 49 views
2

因为我不是母语的人,我确信迄今为止没有人理解它,我会试着用简单的语言来解释它...... 我正在为我的单身汉写一篇论文,所以它只有大约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,definiton,引理等等,因为论文很短,因此比帮助更困惑; 所以,我希望它是这样的:

Corollar 2.1 
Corollar 2.2 
Definition 2.3 
Lemma 2.4 

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

+1

Incindental你的问题,但你应该写'\ {开始}心病... \结束{}心病'。只是把'\ cor'大致等同于'\ begin {cor}',但是会留下一个未关闭的组。 –

回答

1

正如所解释的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 
+0

不客气!顺便问一下,你能接受答案吗? –