Working with list styles
List styles (also called numbering styles) work with paragraph styles. They define indentation, alignment, and the numbering or bullet characters used for numbered or bulleted lists. You can define many list styles to use for different purposes, from simple bulleted lists to complex multi-level lists.
As with other styles, the main reasons for using list styles are consistency and speeding up your work. Although you can create simple lists quickly by clicking the Numbering On/Off or Bullets On/Off icons on the Formatting toolbar, and use the icons on the Bullets and Numbering toolbar to create quite complex nested lists, the appearance of the resulting lists may not be what you want—and you might want to have more than one style of list. You can use the Bullets and Numbering choice on the Format menu to manually format the appearance of some or all of the lists, but what if you later need to change their appearance?
|OOo uses the terms “numbering style” and “list style” inconsistently, but they are the same thing. For example, the tooltip in the Styles and Formatting window says “List Styles”, but its style dialog box says “Numbering Style”.
Defining the appearance of a nested list
A nested list is a numbered or bulleted list with subordinate (usually indented) numbered or bulleted lists. Rather than just a list of numbered items (1,2,3...), a nested list may have item 1, then indented items numbered a,b,c or i,ii,iii or some other numbering method before the main number 2. With numbering styles, you can achieve any combination of numbering formats you want. A nested list may even combine numbered items with bulleted items.
There is no difference between defining a nested list style or a simple list, although nested lists require more work. An example of a nested list is given in Chapter 3 (Working with Text). In that case, the list was built using one of the predefined outline schemes as a starting point, while in this section we follow a more general approach so that the list can fully suit your needs.
Creating a new list style
The dialog box to create a new list style consists of six pages, in addition to the usual Organizer page discussed in The Organizer page.
Bullets, Numbering Styles, and Graphics pages
The Bullets, Numbering Style, and Graphics pages contain predefined formatting for either the bullets (Bullets and Graphics pages) or for numbering. To use one of them for your style, it is sufficient to click on the image. A thick border indicates the selection. If you choose a graphics bullet, you can select the Link Graphics option to create a link to the graphic object rather than embedding it in the document. If you decide to link the graphic, keep in mind that the bullet will not be displayed when the document is opened on a different computer (unless the same graphic file is located in the same location on both computers) or if the graphic file used is moved to a different location on the computer.
Use the Outline page to select among predefined nested structures. You can also select one and use it as a starting point for your style, customizing such a list using the Position page and the Options page, as described below.
Use the Position page to fine tune the indentation and spacing of the bullet point and its text. This page is particularly effective when used in combination with the Options page.
You can adjust the following settings for each individual level or all at once (to make them all the same). It is generally easier to adjust the settings in the order given below, instead of the order on the dialog box. That is, start from the overall indentation for the list elements, then fix the position of the symbols, and finally adjust the alignment of the symbols.
- Numbering followed by: use this field to determine the character to follow the numbering symbol. Choose between a tab stop, a space, or nothing. If you select the tab stop, you can specify the position of the tab.
- Indent at: this value determines how much space is reserved for the numbering symbol, measured from the left page margin. Note that the alignment of the first line of the list is also affected by any tab you may have set to follow the numbering.
- Aligned at: this value determines the position of the numbering symbol, measured from the left margin of the page.
- Numbering alignment: select in the drop-down menu how the numbering (including any text before or after as set in the Options page) should be aligned. The symbol alignment is performed around the Aligned at value.
|In normal circumstances, setting the Numbering followed by distance to be equal to the Indent at distance works well. See this example for a graphic representation of the effects of the above parameters.
If your document was created with an earlier version of OOo, or if the document was saved for compatibility reasons using the ODF file format version 1.1 or earlier, the position dialog will appear as shown below.
In this case you can adjust the following settings:
- Indent: use this field to determine the indentation of the number or bullet area. The indentation is measured from the left margin of the paragraph linked to the numbering style (in other words, if the paragraph style already has an indentation, when the list style is applied the indentations are added together). For any level other than Level 1, selecting the Relative option causes the indentation to be measured from the start of the previous level rather than from the page margin.
- Width of numbering: this value determines how much space is used by the numbering symbol. Writer reserves this space, even if only part of it is used.
- Minimum spacing numbering <-> text: this is the spacing between the right edge of the numbering symbol and the text. If the spacing to text is not sufficient, Writer will honor this setting by expanding the numbering area. Setting the minimum spacing between numbering and text is very useful when right-aligning the numbering or when there is much text before or after the numbering.
- Numbering alignment: select in the drop-down menu how the numbering (including any text before or after) should be aligned.
|To fully appreciate how the Numbering alignment works, try to create a numbered list with more than ten elements and make sure that enough room has been made for numbers with two or more digits. You may also wish to right-align numbers 10 or greater, as in this example.
Use the Options page to alter the style of all the outline levels. The options available on this page depend on the type of marker selected for the list. Select first the level you want to modify on the left hand side of the box. To modify all ten levels at once, select 1 – 10 as the level. If you started from a predefined outline, some of the levels will already have settings.
Depending on the numbering style selected in the Numbering box (bullet, graphic, numbering), some of the following options become available on the page:
- Before: enter any text to appear before the number (for example, Step).
- After: enter any text to appear after the number (for example, a punctuation mark).
- Color: pick the color for the list marker (number or bullet character).
- Relative size: specify the size of the number relative to the size of the characters in the paragraph of the list.
- Start at: enter the first value of the list (for example, you might want the list to start at 4 instead of 1).
- Character Style: choose a character style to be used for the number or bullet.
- Character button: click this button to select the character for the bullet.
- Graphics selection button: opens a list of available graphics (Gallery) or allows the selection of a file on the hard disk to be used as marker.
- Width and Height: specify the dimensions of the graphic marker.
- Alignment: specify th alignment of the graphic object.
- Keep ratio option: If selected, the ratio between the width and the height of the graphic marker is fixed.
The right-hand side of the dialog box shows a preview of the modifications made.
To revert to the default values, click the Reset button in the bottom right corner. Finally, if you wish to use consecutive numbers regardless of the outline level, check the Consecutive numbering box at the bottom of the page.
Combining list and paragraph styles
When applying a list style, the underlying paragraph style remains unchanged. If your list must also have a certain font size, indentations, and so on, you might expect to first apply a paragraph style and then a list style (or vice versa). However, you can embed a list style in a paragraph style using the Numbering page of the Paragraph Style dialog box, and then apply only the paragraph style to the list.
This section gives an example of combining list and paragraph styles.
- Create a list style you want to use for the paragraph. For example: MyNumberedList.
- Create a new paragraph style.
- On the Organizer page of the Paragraph Style dialog box:
- Give the new paragraph style a name, say NumberedParagraph.
- For the Next Style drop-down menu, choose NumberedParagraph (this will make the following paragraph also be in this style, until you choose a different style).
- In Linked with, choose None.
- Leave Custom Styles, in the Category field.
- Set up this paragraph style to your liking. Because the indentation is controlled by the List style, to avoid undesired
interactions do not change the indent settings on the Indents & Spacing page. (You might want to change the spacing above and below the paragraph.)
- On the Outline & Numbering page, choose the MyNumberedList style from the list created in step 1.
- Click OK to save this style.
To have full control, it is common practice to define three base paragraph styles for lists: List start for the first element of the list, List Continue for the subsequent elements of the list, and List End for the last element of the list. You should also define a paragraph style to be used for unnumbered list items (one for each nested level you intend to use) as well as an introductory style for the paragraph preceding the start of the list (to allow for keeping the introductory paragraph with the first list item, or for specifying spacing before the first list item that is different from the spacing between other paragraphs).
|Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).