![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Otared Kavian wrote:
Hi all,
I need help for the following situation: in a maths paper I would like to have Definitions, Lemmas, Theorems, etc, numbered in a sequential way in each section if any, the numbers being set before the header, and also to be able to refer to them through cross references. For instance, when there is indeed at least a section, in section 1, I would like to have something like
1.1 Definition. Here is the text of the definition in slanted style. … some text… 1.2 Lemma. Here is the text of the lemma in slanted style. …some text… 1.3 Theorem. Here is the text of the theorem in slanted style. …some text… 1.4 Corollary. Here is the text of the corollary in slanted style.
And if there is no section at all:
1. Definition. Here is the text of the definition in slanted style. … some text… 2. Lemma. Here is the text of the lemma in slanted style. …some text… 3. Theorem. Here is the text of the theorem in slanted style. …some text… 4. Corollary. Here is the text of the corollary in slanted style.
One way would be to define 4 descriptions or enumerations with \definedescription or \defineenumeration but then I don't know how to have numbers incremented in a sequential way in all these descriptions. Another issue with this approach would be that then if one wants to have for example a Conjecture or a Guess, one has to define a new description or enumeration.
Has anyone run into such a situation?
is quite trivial but there is an inheritance bug in mkiv so more later ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------