HomeText stylingItemizationsDescriptions
User Manual UDO > The UDO syntax > Text styling Index

Enumerations

The enumerate environment is useful for lists where the items have to be enumerated with numbers or letters. It is started with !begin_enumerate and finished with !end_enumerate. Each item has to be marked with !item.

You can use the itemize environment inside other environments or inside another itemize environment.

This short example shows how to write a simple itemize environment:

Before:
UDO offers you the following environments:
!begin_enumerate
!item itemize environment
!item enumerate environment (discussed in
      this section)
!item description environment
!item xlist environment
!end_enumerate

Afterwards:

UDO offers you the following environments:

  1. itemize environment
  2. enumerate environment (discussed in this section)
  3. description environment
  4. xlist environment

In the following example the enumerate environment is used twice and it will be compressed because of the usage of !compressed:

Before:
!begin_enumerate !compressed
!item This is the first item of the outer
      enumerate environment.
!item This is the second item of the outer
      enumerate environment.
      !begin_enumerate
      !item Item 1 of the inner environment.
      !item Item 2 of the inner environment.
      !end_enumerate
!item This is the third item of the outer
      enumerate environment.
!end_enumerate

Afterwards:
  1. This is the first item of the outer enumerate environment.
  2. This is the second item of the outer enumerate environment.
    1. Item 1 of the inner environment.
    2. Item 2 of the inner environment.
  3. This is the third item of the outer enumerate environment.

Hints:

  1. UDO doesn't enumerate the items for all destination formats. E.g. HTML and LaTeX enumerate the items themselves so you have to be cautious with using text like see item 1 or see point b).
  2. The third layer of enumerate environments will be indented deeper than the other layers because Roman numbers need a little bit more space.
  3. Because the second layer is enumerated with letters you shouldn't use more than 26 items.
  4. A description of the !compressed command is part of the chapter Itemizations.

Copyright © www.udo-open-source.org (Contact)
Last updated on May 19, 2014

HomeText stylingItemizationsDescriptions