These functions implements three various style of enumerations.
prototype |
(itemize :symbol [:ident] [:class "itemize" ] item... ) |
(enumerate :symbol [:ident] [:class "enumerate" ] item... ) |
(description :symbol [:ident] [:class "description" ] item... ) |
ident | html latex xml | The node identifier. |
class | html latex xml | The node class. |
symbol | html latex | The symbol that prefixes the items. |
item... | The items of the enumeration. |
Items are introduce by the means of the item
markup:
Example:
(itemize (item [A first item.])
(item [A ,(bold "second") one:
,(itemize (item "One.")
(item "Two.")
(item "Three."))])
(item [Lists can be nested. For instance that item contains a
,(tt "description"):
,(description (item :key (bold "foo")
[is a usual Lisp dummy identifier.])
(item :key (bold "bar")
[is another one.])
(item :key (list (bold "foo") (bold "bar"))
[A description entry may contain more than
one keyword.]))])
(item [The last ,(tt "itemize") entry contains an ,(tt "enumerate"):
,(enumerate (item "One.") (item "Two.") (item "Three."))]))
(itemize :symbol "-"
(item "One.")
(item "Two.")
(item "Three.")
(item "Four."))
|
|
Ex. 10: The enumeration markups
Produces:
- A first item.
- A second one:
- Lists can be nested. For instance that item contains a
description:
- foo
- is a usual Lisp dummy identifier.
- bar
- is another one.
- foo
- bar
- A description entry may contain more than
one keyword.
- The last itemize entry contains an enumerate:
- One.
- Two.
- Three.
|
|