Difference between revisions of "Documentation/OOoAuthors User Manual/Writer Guide/Working with list (numbering) styles"

From Apache OpenOffice Wiki
Jump to: navigation, search
 
(Working with list (numbering) styles)
Line 4: Line 4:
  
 
= Working with list (numbering) styles =
 
= Working with list (numbering) styles =
You can define the appearance of lists by using list (numbering) styles, which include styles for bullet lists as well as numbered lists.
+
Use a numbering (list) style to define the appearance of a list, whether a simple list or an ''outline'' or ''nested list'' (sometimes called ''multi-level numbering''). An example of setting up a simple list is given in Chapter 6. This section describes how to define a nested list.
  
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".
+
{{Documentation/Note|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".}}
  
After setting up a list style, you can associate it with one or more paragraph styles. To create a hierarchy of numbered paragraphs, use a series of list styles and define other (unnumbered) paragraphs to fit the indentation or spacing patterns of the numbered paragraphs.
+
== 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.
  
== Example of list style usage ==
+
As an example, we will use outline-numbering to produce the following effect:
This example shows how to have Arabic numbers (1, 2, 3) with no following punctuation, lined up as shown in the illustration below:
+
 
 +
:  I.  Level-1 list item
 +
 
 +
::      A. Level-2 list item
 +
 
 +
:::          i. Level-3 list item
 +
 
 +
::::              a) Level-4 list item
 +
 
 +
You can modify a predefined style, or define a new style. This example uses one of the supplied styles, ''Numbering 1''.
  
: [[Image:ListEx.png|List example]]
 
 
<ol>
 
<ol>
<li>In the Styles and Formatting window, select '''List Styles''' (top), and either '''All''' or '''Hierarchical''' in the box at the bottom. If you want to create a new style, right-click on the window and select '''New'''; then define the style. However, the following example uses one of the OOo-supplied style names: ''List 1''.</li>
+
<li>In the Styles and Formatting window, choose ''Numbering Styles'' and select a style such as ''Numbering 1''. Right-click on the style and select '''Modify'''.</li>
<li>Select ''List 1'', right-click and select '''Modify'''. On the Numbering Style dialog box, either choose a predefined style on the ''Numbering Style'' tab or design a new style on the ''Options'' tab. We will use the ''Options'' tab.</li>
+
<li>On the Numbering Style dialog box, go to the ''Outline'' page, where you will find that one style matches our requirements. Click once on that style.</li>
<li>Choose '''1, 2, 3''' in the ''Numbering'' box and delete anything in the ''Before'' and ''After'' boxes. In the ''Level'' box, leave '''1-10''' (the default) highlighted.</li>
+
[[Image:WG7-31.png|Predefined style]]<br>Choosing a predefined outline-numbering style.  
[[Image:WG7-28.png|List-numbering style]]<br>Designing a list-numbering style.
+
  
<li>On the ''Position'' page, increase ''Spacing to text'' from the default to, say, 0.65cm and change ''Numbering alignment'' to '''Right'''. Increase the ''Minimum space numbering <-> text'' value, if necessary. The values depend on the typeface, type size, and personal preference. Try a few combinations to see what looks best.</li>
+
<li>To modify the layout of the list, use the ''Options'' tab. Notice that the preview on the right shows the outline selected. In the ''Level'' box on the left, select '''1''', then '''2''', '''3''', and '''4''' and see how the information in the ''Numbering'' and ''After'' boxes changes. Use the ''Options'' page to set different punctuation; for example, a period (full stop) after “a" on level 4 instead of a parenthesis.</li>
<li>Click '''OK''' to set the changes. Now the modified style can be used. If the style has already been used in the document, those paragraphs in this style will now reflect the changes.</li>
+
 
[[Image:WG7-29.png|Positioning a list]]<br>Setting spacing and alignment in a list-numbering style.
+
[[Image:WG7-32.png|Level-1 list items]]<br>Checking the outline numbering for level-1 list items.
 +
 
 +
[[Image:WG7-33.png|Level-2 list items]]<br>Numbering style for level-2 list items.
 +
 
 +
<li>To make the indentation at each level greater or less than the default, change it on the ''Position'' page. Select the heading level, then make any changes in the indentation, spacing, or numbering alignment.</li>
 +
<li>Repeat for each heading level as required, then click '''OK''' to save the style.</li>
 
</ol>
 
</ol>
  
You can apply this numbering style directly to any paragraph or assign it to a paragraph style.
+
{{Documentation/Tip|With outline numbering you can define different bullet styles for the different levels of a bullet list. Use the ''Bullets'' tab of the Numbering Style dialog box (not shown) to select the basic style. Return to the ''Options'' tab to customize the bullet for each indent level. Here you can set bullets to any character. See the ''Graphics'' tab for more bullets.}}
 +
 
 +
== Applying the different levels of a list-numbered paragraph style ==
 +
To apply the different levels of a list-numbered paragraph style:
 +
 
 +
# Type the first paragraph and apply the ''List 1'' style. Notice that the level-1 list number is added automatically.
 +
# Select '''View > Toolbars > Bullets and Numbering''' to display the Bullets and Numbering toolbar.
 +
# Press ''Enter'' to start the next paragraph. To make it a level-2 list item, click the '''Demote one level''' icon on the object bar. The number applied to this paragraph has changed to a level-2 number.
 +
# Continue typing list items, moving each paragraph up or down levels as needed.
  
To assign a numbering style to a paragraph style, open the Paragraph Style dialog box (see page 5), go to the ''Numbering'' page and choose the numbering style defined. (The name of the paragraph style does not have to match the name of the numbering style.)
+
[[Image:Bullets_number_toolbar2.png|Bullets and Numbering toolbar]]
 +
{|
 +
||1  Bullets On/Off||8  Insert Unnumbered Entry||
 +
|-
 +
||2  Numbering On/Off||9  Move Up||
 +
|-
 +
||3  Numbering Off||10  Move Down||
 +
|-
 +
||4  Up One Level||11  Move Up with Subpoints||
 +
|-
 +
||5 Down One Level||12  Move Down with Subpoints||
 +
|-
 +
||6  Move Up (One Level) with Subpoints||13  Restart Numbering||
 +
|-
 +
||7  Move Down (One Level) with Subpoints&nbsp;&nbsp;||14  Bullets and Numbering||
 +
|-
 +
|}
 +
''Bullets and Numbering toolbar''
  
[[Image:WG7-30.png|Apply numbering style]]<br>Choosing a numbering style for a paragraph style
+
{{Documentation/Tip|One option is to enter all the list paragraphs first and apply the levels afterwards.<br/>You can use keyboard shortcuts to move paragraphs up or down the outline levels. Place the cursor at the beginning of the numbered paragraph and press:
 +
:''Tab''&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Down a level
 +
:''Shift+Tab''&nbsp;&nbsp;Up a level
 +
To insert a tab stop at the beginning of a numbered paragraph (that is, after the number but before the text), press ''Control+Tab''.}}
  
 
{{Manual}}
 
{{Manual}}

Revision as of 23:45, 20 November 2007



Working with list (numbering) styles

Use a numbering (list) style to define the appearance of a list, whether a simple list or an outline or nested list (sometimes called multi-level numbering). An example of setting up a simple list is given in Chapter 6. This section describes how to define a nested list.

Template:Documentation/Note

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.

As an example, we will use outline-numbering to produce the following effect:

I. Level-1 list item
A. Level-2 list item
i. Level-3 list item
a) Level-4 list item

You can modify a predefined style, or define a new style. This example uses one of the supplied styles, Numbering 1.

  1. In the Styles and Formatting window, choose Numbering Styles and select a style such as Numbering 1. Right-click on the style and select Modify.
  2. On the Numbering Style dialog box, go to the Outline page, where you will find that one style matches our requirements. Click once on that style.
  3. Predefined style
    Choosing a predefined outline-numbering style.

  4. To modify the layout of the list, use the Options tab. Notice that the preview on the right shows the outline selected. In the Level box on the left, select 1, then 2, 3, and 4 and see how the information in the Numbering and After boxes changes. Use the Options page to set different punctuation; for example, a period (full stop) after “a" on level 4 instead of a parenthesis.
  5. Level-1 list items
    Checking the outline numbering for level-1 list items.

    Level-2 list items
    Numbering style for level-2 list items.

  6. To make the indentation at each level greater or less than the default, change it on the Position page. Select the heading level, then make any changes in the indentation, spacing, or numbering alignment.
  7. Repeat for each heading level as required, then click OK to save the style.

Template:Documentation/Tip

Applying the different levels of a list-numbered paragraph style

To apply the different levels of a list-numbered paragraph style:

  1. Type the first paragraph and apply the List 1 style. Notice that the level-1 list number is added automatically.
  2. Select View > Toolbars > Bullets and Numbering to display the Bullets and Numbering toolbar.
  3. Press Enter to start the next paragraph. To make it a level-2 list item, click the Demote one level icon on the object bar. The number applied to this paragraph has changed to a level-2 number.
  4. Continue typing list items, moving each paragraph up or down levels as needed.

Bullets and Numbering toolbar

1 Bullets On/Off 8 Insert Unnumbered Entry
2 Numbering On/Off 9 Move Up
3 Numbering Off 10 Move Down
4 Up One Level 11 Move Up with Subpoints
5 Down One Level 12 Move Down with Subpoints
6 Move Up (One Level) with Subpoints 13 Restart Numbering
7 Move Down (One Level) with Subpoints   14 Bullets and Numbering

Bullets and Numbering toolbar

Template:Documentation/Tip

Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).
Personal tools