docbook-apps

  • 1.  Nested Itemized Lists

    Posted 06-25-2010 11:50
    I want a nested, itemized list but haven't found a suitable
    explanation on the lists or in either docbook book.

    I want a a nested, itemized list to look something like this:

    + item 1
    - item 1.1
    + item 2

    I have tried q ways:

    Method 1:

    <itemizedlist>
    <listitem><para>item 1</para></listitem>
    <listitem>
    <itemizedlist>
    <listitem><para>item 1.1</para></listitem>
    </itemizedlist>
    </listitem>
    <listitem><para>item 2</para></listitem>
    </itemizedlist>

    Yields:

    + item 1
    + - item 1.1
    + item 2

    Order is correct, but item 1.1 has two bullets.

    Method 2:

    <itemizedlist>
    <listitem><para>item 1</para></listitem>
    <itemizedlist>
    <listitem><para>item 1.1</para></listitem>
    </itemizedlist>
    <listitem><para>item 2</para></listitem>
    </itemizedlist>

    Yields:

    - item 1.1
    + item 1
    + item 2

    Bullets are correct, but items out of order.

    The lists basically look the same in html and pdf except both levels
    of bullets are the same in pdf but different in html.

    What should I do to correct method 1's two bullets? Or is there a
    better way altogether?

    Thanks.

    -Tom

    Thomas M. Browder, Jr.
    Niceville, Florida
    USA