<\body> In , all automatic numbering of theorems, sections, is done using ``counters''. Such counters may be individual counters (like ) or belong to a group of similar counters (like in the case of ). allows for the customization of counters on an individual or groupwise basis. Typically, you may redefine the rendering of a counter (and let it appear as roman numerals, for instance), or undertake special action when increasing the counter (such as resetting a subcounter). New individual counters are defined using the following meta-macro: <\explain|> Defines a new counter with name . The counter is stored in the numerical environment variable and in addition, the following macros are defined: <\explain|>> Retrieve the counter such as it should be displayed on the screen. <\explain|>> Reset the counter to . <\explain|>> Increase the counter. This macro may also be customized by the user so as to reset other counters (even though this is not the way things are done in the standard style files). <\explain|>> Increase the counter, display the counter and set the current label. For the purpose of customization, the macro also defines the following macros: <\explain||nr>> This is the macro which is used for transforming the numerical value of the counter into the value which is displayed on the screen. <\explain||x>> This internal macro is used in order to retrieve the name of the environment variable which contains the counter. By default, this macro returns ``nr-x'', but it may be redefined if the counter belongs to a group. As noticed in the introduction, uses in order to make it possible to treat similar counters in a uniform way. For instance the counter group regroups the counters , , , New counter groups are defined using: <\explain|> Create a new counter group with name . This results in the creation of the following macros: <\explain> |x|nr> |x> <|explain> These macros are similar to the macros > and > from above, but relative to the counter group. The name of the counter in consideration is passed as an argument. New counters can be added to the group using: <\explain|> Defines a new counter and add it to the counter group . For counters in groups, the macros > and > are replaced with the corresponding macros > and in-> for their groups. Nevertheless, two new macros > and > are defined which may take over the roles of > and > in the case when the group consists of individual counters. At any moment, you may decide whether the counters of a group share a common group counter, or whether they all use their individual counters. This feature is used for instance in order to switch between American style numbering and European style numbering: <\explain|> Use a common counter for the group (which is stored in the environment variable ). <\explain|> Use an individual counter for each member of the group (this is the default). We notice that group counters may recursively belong to super-groups. For instance, the following declarations are from : <\tm-fragment> <\inactive*> > > > >