XMetaL Tips and Tricks

XMetaL Community Forum XMetaL Tips and Tricks Modifying bullet symbols for nested unordered lists in PDF output

  • Chris

    Modifying bullet symbols for nested unordered lists in PDF output

    Participants 0
    Replies 1
    Last Activity 13 years ago

    Let's say you want this:

    • foo
    • bar
      • foo
      • bar
        • foo
        • bar
        • baz
      • baz
    • baz

    To look like this:

    • foo
    • bar
      + foo
      + bar
        * foo
        * bar
        * baz
      + baz
    • baz

    To modify the bullets for nested unordered lists in PDF output, you 'll need to add a list template and a few variables.

    The list template will match on nested unordered lists (not mixed ordered / unordered lists). The variables are used by the the DITA Open toolkit to specify the bullet for a given list.

    Add this template to your customization:
    [DITA_OT]/demo/xmfo/Customization/fo/xsl/custom.xsl




       


       

        Unordered List bullet


        Unordered List bullet L2


        Unordered List bullet L3

       



       

       
       

       


       

       
       

       

       

       

    Add these variables to [DITA_OT]/demo/xmfo/cfg/common/vars/en_US.xml:


       

    +
       

    *

    Notes:
    1. Make sure the bullet characters you add can be displayed by the font you use.
    A good resource:
    http://www.fileformat.info/info/unicode/char/2022/fontsupport.htm

    2. You will need to add the extra bullet variables to each language variable file used; e.g. fr_FR.xml, es_ES.xml, etc.

    3. XMetaL 5.5 and up may place the DITA OT in you user directory; see DITA Open Toolkit “Deployment” in XMetaL Author Enterprise 5.5:

    http://forums.xmetal.com/index.php/topic,237.0.html

    HTH,

    – Chris

    Reply

    bzebian

    Reply to: Modifying bullet symbols for nested unordered lists in PDF output

    I found this works fine for lists in concepts or , but lists within tables or tags revert to normal bullets.

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support