3.9 Skribilo User Manual — Enumeration
↑ Standard Markups

These functions implements three various style of enumerations.

prototype
(itemize :symbol [:class "itemize"] [:ident] item...)
(enumerate :symbol [:class "enumerate"] [:ident] item...)
(description :symbol [:class "description"] [:ident] item...)
optionenginesdescription
:identhtml lout latex context info xml The node identifier.
:classhtml lout latex context info xml The node class.
:symbolhtml lout latex context info The symbol that prefixes the items.
argumentdescription
item...The items of the enumeration.

Items are introduce by the means of the item markup:

prototype
(item :key [:class] [:ident])
optionenginesdescription
:identhtml lout latex context info xml The node identifier.
:classhtml lout latex context info xml The node class.
:keyhtml lout latex context info The item key.
(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. 12: The enumeration markups

... produces:

  • A first item.
  • A second one:
    • One.
    • Two.
    • Three.
  • 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:
    1. One.
    2. Two.
    3. Three.
  • One.
  • Two.
  • Three.
  • Four.
(made with skribilo)