Lists

Styles for itemizedlist, orderedlist and variablelist

Display graphics for lists

The stylesheet p10-lists.xsl has all features and instructions to set up styles for bullet lists (using the <itemizedlist> element), numbered lists (using the <orderedlist> element) and unnumbered lists (using the <variablelist> element). The features for lists that can be set in the stylesheet are:

XML markup to edit

Format of variable lists. There are options to mark up a glossary or list of acronyms in XML using either:
  • the <glossentry> element (and associated elements)
  • the <variablelist> element.
Note: For a visual procedure of how to use XML markup and stylesheet settings for glossaries, refer to the Glossary section.
If using the <variablelist> element, there are options to format the list in a PDF as:
  • a two-column table
  • a block paragraph.
You can set the format of all <variablelist> elements in a document, or individual <variablelist> elements:
  • To set the same format for all <variablelist> elements in a book (either two-column or block paragraph), set the stylesheet feature at p10-190. You then only need to set up term-width and list-width attributes for each list using a dbfo processing instruction inside <variablelist>. You do not need any additional XML markup.
  • To set different formats for individual <variablelist> elements, use the following attributes for the <variablelist> elements in XML files:

    For a two-column table: <variablelist condition="table">

    For a block paragraph: <variablelist condition="para">.

    Note: When you set these <variablelist> formats in XML, the stylesheet setting at p10-190 does not have any effect. The XML settings override this setting in the stylesheet.
When the format of a <variablelist> element is a two-column table, specify the term-width and list-width in a processing instruction that is immediately inside <variablelist>. An example processing instruction is:
<?dbfo term-width="40mm" list-width="140mm"?>

At the beginning of the processing instruction, the letters dbfo mean that the term-width will only apply to the PDF ebook format. The attribute term-width specifies the relative width (in any units of measurement) of the first column in the table, which contains the terms of a glossary or the acronyms for a list of acronyms. The attribute list-width specifies the relative width (in any units of measurement) of the second column in the table, which contains the definitions of a glossary or the description of acronyms for a list of acronyms.

Stylesheet settings to edit

The relevant Stylesheet Guide page to set up text formats for PDF is PDF-lists.svg.