AUTONUMLGL

Syntax:

AUTONUMLGL [ switches ]

Description: For legal and technical publications, use the nine built-in heading styles to format headings in the document, and then insert an AUTONUMLGL field at the beginning of each heading paragraph. The numbers reflect the heading levels that correspond to the heading styles. If an AUTONUMLGL field is inserted in paragraphs of body text paragraphs not formatted with built-in heading styles, the number of the preceding heading is included in the paragraph number.
Note: : This field is supported for legacy reasons, It is recommended that LISTNUM
2.16.5.40) be used instead. ]

This field only makes sense in terms of multi-level headings. Given the following headings:

Heading 1Heading 2Heading 2Heading 1

this field allows

1. Heading 11.1. Heading 21.2. Heading 22. Heading 1

At each level, the numbering sequence does two things—it increments specific to that level, and it includes the value from the previous level.

The XML generated for a complex field implementation shall not have the optional field value stored.

Field Value: A new paragraph number in ascending sequential order.

Switches: Zero or one of the general-formatting-switches, or zero or more of the following field-specific-switches.

\e

Removes the trailing separator (period).

\s field-argument

text in this switch's field-argument specifies the separator character to be used. If \s is omitted, a period (.) is used.

example:
AUTONUMLGL
AUTONUMLGL \* Arabic \s :
AUTONUMLGL \* alphabetic \s " "xxx
AUTONUMLGL \* 
 \e xxx

The results are:

1.
2:
c xxx
IV.
5xxx