Creates a numbered list of items.
Description
enumerate is a text format that contains
items. Each item is is preceded with a number, beginning with 1. The contents of each
item is displayed after the number.
enumerate can be nested. The indentation of the items depends on the nesting level.
enumerate and
item are special paragraph formats. Therefore, you can set character and paragraph options on them. Keep in mind that character options are nonlocal, and paragraph options are local.
- If you set a character option on enumerate, all its items will be affected in the same way.
- If you set a paragraph option on enumerate, it is not relevant. You should set it on each individual item instead.
...: One or more
items, each holding content. There are no commas separating them.
Returns
A
ParagraphVisual that represents a numbered list of items.
This object can be added to anything that accepts a
Visual.
Example
Example |
 |
A day in the life of a geek. (Optional tasks are in {italic italic}.)
{enumerate
{item Wake up.}
{item {italic Get ready for work.}}
{item {italic Commute.}}
{item Work.
{enumerate
font-size=8pt,
{item paragraph-before-spacing=4pt, Think.}
{item Hack.}
{item Think and hack.}
{item Read other people's code.}
{item paragraph-after-spacing=4pt, Attend meetings.}
}
}
{item Go home.}
{item Log on to work some more.}
{item Play computer games.}
{item {italic Go to sleep.}}
}
| |
See Also
Notes
This object can be styled by writing style rules for "enumerate".