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


Reply via email to