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).
Example: Creating a simple list style
In this example, we will create a numbered list that is used to number the songs on a
CD. The numbers are right aligned, and some space is left between the number and
the title of the track.
As we want to reuse the same numbered list for other CDs, we will define a new list
style and then apply it to the tracks list.
Creating the CDTracks numbered list
As for the previous example, start by clicking the List Styles icon (fifth from the left)
in the Styles and Formatting window. Then right-click anywhere in the list box and
choose New.
The Numbering style dialog box is displayed. For the CDTracks style, we need to
customize fields in the Organizer, the Options, and the Position pages.
Style fields Description
Name
Enter CDTrack
Category
Custom styles will be OK for us.
Modify the options of the Options page as follows:
1) In the Level box, choose 1.
2) In the Numbering list, choose 1, 2, 3, ....
3) Leave the Before and After boxes empty.
4) Leave the Character Style field as None.
5) Show sublevels should be grayed out.
6) Make sure Start at is set to 1.
7) Do not select Consecutive numbering.
As discussed above, the numbering list will adopt settings of the underlying
paragraph style. If you want to use a special font, size or color for the numbering, you
can create a character style and apply it in the Options page.
If you want the word Track to appear before the number, just add it to the Before
field in the Options dialog box. Do not forget to add a space character to separate the
word from the number.
Set up the final parameters of the CDTracks list style in the Position page.
1) In the Level box, choose 1.
2) For Numbering followed by, choose tab stop and set it at 4.0cm.
3) For Numbering alignment, choose Right.
234 OpenOffice.org 3.3 Writer Guide
Comentarios a estos manuales