Le mar 11/06/2002 � 16:41, Jean-Marc Lasgouttes a �crit :
 
> This is solved in ams layouts by defining some of the stuff in the
> main preamble:
> 
> Preamble
>   \theoremstyle{plain}    
>   \newtheorem{thm}{Theorem}[section]
>   \numberwithin{equation}{section} %% Comment out for sequentially-numbered
>   \numberwithin{figure}{section} %% Comment out for sequentially-numbered
> EndPreamble
> 
> THis is of course not optimal, but it _works_.
> 
The simplest example of such problem I have is of course with theorem
environments. I want to have the possibility to choose differents
counters for theorems and propositions, and, in that case I want that
the corollaries are numbred with only one number (and the same thing
with the lemmas which can be lemmas of propositions but also lemmas of
corollaries). Then for the case of proposition, corollaries and lemmas,
I wrote three layouts which contains respectively the following
preambles:

For propositions:
  Preamble
    \theoremstyle{plain}    
    \newtheorem{spprop}{Proposition}[section]
  EndPreamble
For corollaries of such propositions:
 Preamble
    \theoremstyle{plain}
    \newcounter{ConSP}[spprop]   
    \newtheorem{ccorsp}[ConSP]{Corollaire}
  EndPreamble
For lemmas of such corollaries:
 Preamble
    \theoremstyle{plain}
    \newcounter{LonConSP}[ConSP]
    \newtheorem{spllemc}[LonConSP]{Lemme}
  EndPreamble

I think it is the simplest way, but if the second Preamble is write in
the latex preamble before the first one I get an error (of course the
second layout cannot be used before the first one!)
If I understand well the situation, the only solution for me now is to
define, � priori, the counters SP and ConSP in the basic layout (even if
they are not used!).
-- 
_________

Philippe Charpentier

[EMAIL PROTECTED]
[EMAIL PROTECTED]

Reply via email to