Pierrick Mellerin wrote:
Thanks for your answer...
Following your instructions, I do this:
[theorems-ams.inc]
Style Corollary
...
LabelCounter coroll
...
Preamble
\theoremstyle{plain}
\newtheorem{cor}{Corollaire}
EndPreamble
End
[theorems-ams.module]
Counter coroll
End
Try putting that right before the Corollary definition in theorems-ams.inc.
Did you also change the LabelString in Corollary?
If that doesn't work, post your style files and I'll have a look.
rh
Now, in the LyX display, the counter for Corollary is different from
"Theorem" but it is not incremented when I add another corollary:
Theorem 1.1
Corollary 1.1
Theorem 2.1
Corollary 1.1
Etc
Thanks in advance...
Pierrick
-----Original Message-----
From: rgheck [mailto:[email protected]]
Sent: lundi 27 avril 2009 14:16
To: Pierrick Mellerin
Cc: [email protected]
Subject: Re: is the theorem (AMS) numbering inside LyX (on the screen)
customizable ?
Pierrick Mellerin wrote:
I would like to know if there is a solution to customize the theorem AMS
numbering inside LyX (by default, LyX displays (on the screen): Theorem 1,
Lemma 2, Corolary 3 etc) for having the same numbering than in the LaTeX
output?
I'm not sure I understand. The LyX numbering does match the output in my
case. Both are as you described. Is the question how to get both as you
next put it?
By example, something like that: Theorem 1, Lemma 1, Corolary 1, Theorem 2
etc and, with the "theorems (by section)" enabled: Theorem 1.1, Lemma 1.1,
Corolary 1.1, Theorem 2.1, Lemma 2.1 etc.
To get this sort of thing, you need to copy the existing theorem layout
material and replace things like:
\newtheorem{cor}[thm]{Corollary}
with things like:
\newtheorem{cor}{Corollary}
The LyX counter can then be defined roughly as follows:
Counter corollary
EndCounter
And then change to use this counter in the Corollary section.
rh