Skip to main content

List Styling (PDF)

For PDF outputs, use a PDF Layout to style your lists and procedures. Each PDF Layout has a Lists category that contains subcategories. There are subcategories for General (applies to all lists), Unordered lists (bullet lists), Ordered lists (numbered lists), Simple lists, and Procedures.

Close-up of PDF Layout editor's Lists settings. There is a Lists category with General, Unordered lists, Ordered lists, Simple lists, and Procedures subcategories.

We recommend that you start by styling the General list settings. Then use the other subcategories to style the specific types of list, such as procedure and unordered list.

Tip

When styling lists, it is a good idea to create a test topic that contains each type of list. Then use the preview feature in the Layout Editor to see the effect of any changes. In the Layout editor, select Choose document and select your test topic. When you make a change to a list setting, select Save and then Update preview. The preview will show the effect of the change you made.

For details on the preview feature, see Preview a PDF Publication in Layout Editor).

PDF Layout Editor. There are callout boxes around the preview area, the Choose document button and the Update preview button.

Layout editor. The highlighted frames show where you can load a topic and preview any changes you make.

To learn how to style the different types of lists for PDFs, see:

PDF Layouts have General list settings that apply to many types of list. For example, if you set the spacing in the General list settings, the same spacing will apply to ordered lists, bullet lists, and procedures. The idea is that you set your General preferences for all lists and then use the other subcategories to define the settings for each type of list.

To set your preferences for all lists:

  1. Select the Lists category and then select the General subcategory.

You have now defined the default settings for lists. If you want different styling for each type of list, define that styling in the Unordered lists, Ordered lists, Simple lists, and Procedures subcategories. Any settings you define in those subcategories will take priority over the settings in the General subcategory.

When you use this Layout to publish to PDF, Paligo will apply your choices when it creates the PDF output file.

You can use the role attribute to adjust the list label width and alignment for individual lists. This way you override the default Layout Editor settings.

If you have sublists, these will inherit the width and alignment from the parent list (but can be overridden with the role attribute if needed).

Note

The qandaset also have labels that will inherit the label alignment if there is an ancestor list.

However, it will not inherit the width, since width of the list label for the qandaset has a complex logic to set the width depending on type, descending labels and more.

You cannot set the default alignment or width for qandaset in the Layout Editor, but you can use the role attribute to set the label alignment for an individual quandaset: role=”label-align:end;”

To set the list label for an individual numbered list:

  1. Position the cursor in the numbered list.

  2. Select the orderedlist in the Element Structure Menu and choose Go to element.

  3. Add the role attribute in the Element Attributes Panel.

    Adjust_List_Label_Width_Alignment_small.jpg
  4. Enter label-width:2em;label-align:end; as value.

  5. Change the number in label-width:2em; to adjust the space between the list label and list item text.

    The default width is 1.75em.

  6. Replace "end" in label-align:end; to adjust the list label positioning.

    The default alignment is start.

For PDF outputs, use your PDF Layout to style the ordered lists in your content.

Note

Ordered lists are affected by the styles in the General and Ordered Lists subcategories of the Lists settings.

To learn about the General settings, see Set the General Preferences for Lists (PDF).

  1. Select the Lists category and then select the Ordered lists subcategory.

When you use this Layout to publish to PDF, Paligo will apply your choices.

For PDF outputs, use your PDF Layout to style the unordered lists in your content. Unordered lists are also called bullet lists or itemized lists. They use the itemizedlist element in Paligo XML (see Create a List or Procedure).

Note

Bullet lists are affected by the styles in the General and Unordered lists subcategories of the Lists settings. The Unordered lists settings take priority over the General settings.

To learn about the General settings, see Set the General Preferences for Lists (PDF).

  1. Select the Lists category and then select the Unordered lists subcategory.

  2. Use Bullet types to set the style of the bullet labels. Enter the term for the style of bullet you want at each level and separate them with commas. For example:

    disk, circle, square

    This means that the top-level of a bullet list will use a disk, the second level will use a circle, and the third level will use a square.

    A three-level bullet list. The top level has a disk as the bullet. The second level has a circle (outline) as a bullet. The third level has a square as the bullet.

    You can use the following bullet types: none, disk (bullet), circle (white bullet), square (black small square), white small square, endash, emdash, +, -, and most of the characters in the Zapf Dingbats font family. You can copy the character from https://www.unicode.org/charts/PDF/U2700.pdf. Do not use the code, just copy the actual icon and paste it into the field on the Layout.

    Close-up of Bullets field. It contains the word circle followed by a comma, then then a scissors icon copied from the unicode standard. The scissors are followed by a comma and then there is a star icon, also copied from the unicode standard.

When you publish with this Layout, Paligo will apply your choices to the bullet lists in your PDF output.

Use the settings in your PDF Layout to style simple lists for PDF outputs. Simple lists are lists that you create by inserting the simplelist element, where each list item is a member (see Create a Simple List).

Note

The simple list settings only apply to simple lists that have the type attribute with a value of inline.

To style a simplelist for PDF outputs, use the settings on your PDF Layout.

  1. Select the Lists category and then select the Simple lists subcategory.

When you publish with this Layout, Paligo will apply your choices to the simple lists (that are set to type: inline) in the PDF output.

For PDF outputs, use your PDF Layout to style the procedures in your content.

Note

Procedures are affected by the styles in the General and Procedures subcategories of the Lists settings. The Procedures settings take priority over the General settings.

To learn about the General settings, see Set the General Preferences for Lists (PDF).

  1. Select the Lists category and then select the Procedures subcategory.

When you publish with this Layout, Paligo will apply your chosen settings.

For PDF outputs, you can swap out the regular bullet "disc" character for another character. For instructions, see Style an Unordered List (PDF).

For PDF outputs, use the PDF Layout to change the spacing in and around a list. This includes margins, space above and below the list as well as spacing above and below each list item or step. For details, see Set the General Preferences for Lists (PDF).

For PDF outputs, use the PDF Layout to change the styling of list titles and procedure titles. For details, see Set the General Preferences for Lists (PDF).

To control the numbering in ordered lists, use the following attributes:

  • To start an ordered list at a specific number, select the orderedlist element and give it the startingnumber attribute. Set the value to the starting number you want. For details, see Set Starting Number.

  • To get an ordered list to continue its numbering from the previous ordered list, select the orderedlist element and give it the continuation attribute. Set the value to continues. For details, see Set Starting Number.

  • To get a procedure to continue the numbering from a parent procedure, select the procedure element and give it the role attribute. Set the value to reuse-range. This is useful if you want to reuse a procedure inside another procedure. For example, if you have some common steps saved in an informal topic and you insert the informal topic into another procedure.

    For details, see Reuse a Sequence of List Items.