Automatic numbered lists

Automatic numbered lists in OpenOffice.org are supported by ITP.

You have to pay attention to the following; a list item in OpenOffice.org is always tagged as being the first element in a list or a next number in the sequence. If a list item is tagged as being the first item in the list, it will always start a new list, also when called within a loop. The following examples demonstrate this.

Example 1

#
BEGIN
NUMBER counter
FOR counter FROM 1 UPTO 3 DO
#
1. This is an example
#
OD
END
#

Will result in:

1.	This is an example
1. This is an example
1. This is an example

Example 2

#
BEGIN
NUMBER counter
BOOL first_item := TRUE
FOR counter FROM 1 UPTO 3 DO
IF first_item
THEN
ASSIGN first_item := FALSE
#
1. This is an example
#
ELSE
#
2. This is an example
#
FI
OD
END
#

Will result in:

1.	This is an example
2. This is an example
3. This is an example