HomeText stylingText stylingEnumerations
User Manual UDO > The UDO syntax > Text styling Index

Itemizations

ou can use the itemize environment for itemizations where every single item is marked with a bullet, star, dash or point. The itemize environment is started with !begin_itemize and finished with !end_itemize. Each item has to be marked with the !item command.

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:
!begin_itemize
!item This is the first item.
!item This is the second item with a little bit
      more text to demonstrate how UDO formats
      an itemization.

      This is the second paragraph of the
      second item of the itemize environment.
!item This is the last item.
!end_itemize

Afterwards:

And this example, where an itemize environment is used inside another one ...

Before:
!begin_itemize
!item This is the first item of the outer
      itemize environment.
!item This is the second item of the outer
      itemize environment.
      !begin_itemize
      !item This is the 1st item of the inner one.
      !item This is the 2nd item of the inner one.
      !end_itemize
!item This is the third item of the outer
      itemize environment.
!end_itemize

Afterwards:

UDO separates the text of each item by an empty line. In some cases it is not a good idea to separate the items e.g. if an item contains only some text. In this case it would be better to suppress the empty lines to get a compressed environment.

For printing compressed environment UDO offers you the command named !compressed you can add to the !begin_itemize command. If you add !compressed UDO won't separate the items by inserting empty lines. Furthermore in all environments you use inside this itemize environment no empty lines will be printed.

The following two examples show how to use the !compressed command and which effects this command has. The first example doesn't, the second one uses !compressed:

Without !compressed:

Before:
!begin_itemize
!item Item 1
!item Item 2
!item Item 3
!end_itemize

Afterwards:

With !compressed:

Before:
!begin_itemize !compressed
!item Item 1
!item Item 2
!item Item 3
!end_itemize

Afterwards:

If you cannot see any difference the destination format doesn't allow it to suppress the item separation.


Hints:

  1. The items of the first itemize environment will be marked with a bullet that is defined on different positions inside the character set of each operating system.
  2. If you use the switch !no_umlaute inside the preamble of the source file the items of the first itemize environment will be marked with an o instead of a bullet.

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

HomeText stylingText stylingEnumerations