Writer Guide 7.1

Chapter 9
Working with Styles

Copyright

This document is Copyright © 2021 by the LibreOffice Documentation Team. Contributors are listed below. You may distribute it and/or modify it under the terms of either the GNU General Public License (https://www.gnu.org/licenses/gpl.html), version 3 or later, or the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), version 4.0 or later.

All trademarks within this guide belong to their legitimate owners.

Contributors

To this edition

Jean Hollis Weber

Kees Kriek

Rafael Lima

To previous editions

Jean Hollis Weber

Toni Blackwelder

Kees Kriek

Shravani Bellapukonda

Randolph Gamo

Jenna Sargent

Dante Legaspi

Felipe Viggiano

Pulkit Krishna

Colleen Hayes

John A Smith

Peter Schofield

Bruce Byfield

Gillian Polack

Cathy Crumbley

Hazel Russman

Leo Moons

David Blymire

Jeremy Cartwright

John M. Długosz

Barbara Duprey

Jamie Eby

Ron Faile Jr.

Gary Schnabl

Klaus-Jürgen Weghorn

Rafael Atias

 

Feedback

Please direct any comments or suggestions about this document to the Documentation Team’s mailing list: documentation@global.libreoffice.org

Note

Everything you send to a mailing list, including your email address and any other personal information that is written in the message, is publicly archived and cannot be deleted.

Publication date and software version

Published April 2021. Based on LibreOffice 7.1 Community.
Other versions of LibreOffice may differ in appearance and functionality.

Introduction

Chapter 8, Introduction to Styles, describes the basics of how to use, apply, and manage styles. This chapter gives a more detailed description of how to create or modify some styles, using the many options available on the various tabs of the Style dialog. It explains how these options affect the appearance of the style and how to use them efficiently.

The Style dialogs share many of the same tabs as the manual formatting dialogs, so this chapter can also help you apply manual formatting (though you do not need that if you use styles).

Creating custom (new) styles

In addition to using the predefined styles provided by LibreOffice, you can add new custom (user-defined) styles. In Chapter 8, three methods are given for creating a new style: drag-and-drop, the New Style from Selection icon on the Styles deck, and the Style dialog.

The first two of these methods are convenient because you can check the visual effects that the style produces before creating it. However, for full control over the style (and its relationship to other styles), you need to use the Style dialog, as described in this chapter.

Note

Table styles are created in a different way; see Chapter 13, Tables of Data.

Style dialog

Open the Styles deck on the Sidebar. Select the category of style you want to create by clicking on the appropriate icon on the top part of the Styles deck.

Right-click in the window and select New in the context menu. The dialog that is displayed depends on the type of style you selected.

Tip

The dialogs used to create a new style and to modify an existing style are mostly the same, but with one exception: conditional styles have a different dialog. See “Using conditional paragraph stylesbelow.

Organizer tab

The Organizer tab, shown in Figure 1, is common to all style categories (except Table styles), with only small differences between them. Therefore, it is described only once.

Depending on the style you are creating, you will find the following fields on this tab:

Caution

If you are in the habit of manually overriding styles in your document, be sure that AutoUpdate is not enabled, or you may suddenly find whole sections of your document reformatted unexpectedly.

Figure 1: The Organizer tab displayed when a new Paragraph style is created

Image2

Style inheritance

When creating a new paragraph style or a new character style, you can use an existing style as a starting point for its settings. In this sense, LibreOffice links the styles together.

When style settings are inherited, a change in the parent style affects every style inherited from it. To see the connections between styles, switch to the Hierarchical view on the Styles deck filter. For example, every Heading style (such as Heading 1, Heading 2) is inherited from a style called Heading. This relationship is illustrated in Figure 2.

graphics5

Figure 2: Hierarchical view of inheritance in styles

Inheritance is a method to create “families” of styles in which you can change their properties simultaneously. For example, if you decide that all the headings should be green (such as in this guide), you only need to change the font color of the parent style to achieve the desired result. However, changes made to a parameter of the parent style do not override changes previously made to the same parameter in the child styles. For example, if you change the Heading 2 font color to green, a change of the font color of the Heading style (the parent style) to red will not affect the Heading 2 font color.

You can easily check which properties are specific to a style by looking at the Contains section of the Organizer tab. If you want to reset the properties of a child style to that of the parent style, click the Standard button located at the bottom of each Paragraph and Character style dialog.

Example: Changing a property of a parent style

Suppose that you want to change the font of not only Heading 1 or Heading 2, but all headings.

Open the Styles deck, select the Paragraph Styles category, right-click Heading, then select Modify to open the Paragraph Style dialog for the Heading style.

Select the Font tab, then select a font and click OK. Now the fonts of all the heading styles (Heading 1 through Heading 10) are changed in a single operation.

Figure 3: Select the Heading font

Image3

Working with paragraph styles

Although this section describes most of the parameters scattered over the tabbed pages shown in Figure 3, you do not need to configure them all. In most cases, you need to modify only a few attributes, particularly if you link styles or base the new style on a similar one.

Indents & Spacing tab

On the Indents & Spacing tab (Figure 4), you can set up the indentation of the paragraph and the spacing between lines and between one paragraph and the paragraphs above and below.

Figure 4: Settings on the Indents and Spacing tab of a paragraph style dialog

Image5

Use the Indent section of the tab to set up the indentation, using these parameters:

Use the Spacing section of the page to determine the amount of vertical space above and below the paragraph. It is customary to include some “space above” in heading styles so that they are separated from the text body of the previous section without the need to insert empty paragraphs. Spacing between paragraphs is also normal in certain types of documents. The body text style of this guide is configured to leave some space between consecutive paragraphs. You can select the option to remove space between paragraphs of the same style.

Note

An option in Tools > Options > LibreOffice Writer > Compatibility controls whether space above and space below are added together (the default) or if the larger space is the only one that applies. See Chapter 20, Customizing Writer, for more information.

The spacing between paragraphs does not affect the spacing between lines within a paragraph, which is controlled in the Line spacing section. You can select one of the following values:

Tip

When using different font sizes in the same paragraph, the line spacing may be uneven. To obtain evenly spaced lines, select Fixed or At least in the drop-down list and a value that is large enough to create a spacing between the lines sufficient to account for the largest font size used.

The last parameter on this tab is Activate page line-spacing. When Use page line-spacing is activated for a page style (see “General settings for the page stylebelow), selecting this parameter enables page line-spacing for this paragraph style. To exempt the paragraph style from this feature, deselect this box.

When you enable a paragraph, paragraph style, or page style for page line-spacing, the base lines of the affected characters are aligned to an invisible vertical page grid, regardless of font size or of the presence of graphics. This aligns the baseline of each line of text to a vertical document grid, so that each line is the same height.

Alignment tab

Use the Alignment tab to modify the horizontal alignment of the text, choosing between Left, Right, Center, and Justified. The results of the selection are shown in a preview window on the right-hand side of the page.

When selecting Justified alignment, you can also decide how Writer should treat the last line of the paragraph. By default, Writer aligns the last line to the left (Start), but you can choose to align it to the center or to justify it (meaning that the words on the last line will be spaced in order to occupy it fully). If you have selected to justify the last line and select the Expand single word option, then when the last line of a justified paragraph consists of a single word, this word is stretched by inserting spaces between characters so that it occupies the full length of the line.

The alignment page is also used to control the Text to Text vertical alignment, useful when you have mixed font sizes on the same row. Choose the element of the fonts on the line that will be aligned between Automatic, Base line, Top, Middle, Bottom. Refer to Figure 5 for a visual representation of these reference points.

Figure 5: Text to text vertical alignment: Base line, Top, Middle, Bottom

graphics6

Text flow options for paragraph styles

The Text Flow tab (Figure 6) has three parts: Hyphenation, Breaks, and Options.

With Automatically selected under Hyphenation, three parameters are available:

Figure 6: The options on the Text Flow tab of the Paragraph Style dialog

Image15

In the Breaks section, you can require a paragraph to start on a new page or column and specify the position of the break, the style of the new page, and the page number. A typical use for this option is to start the first page of a new chapter on a new (usually right-hand) page.

To always start a new page with a particular style, choose the following settings:

Note

If you want the first page of a new chapter to always start on a right-hand page, make sure that the page style for the first chapter page is set for the right page only by making this selection in the Layout settings field on the Page tab of the Page Style dialog (see Figure 17).

The Options section of the Text Flow tab provides settings to control what happens when a paragraph does not fit on the bottom of a page:

Font options for the paragraph style

Three tabs of the Paragraph Style dialog are dedicated to settings controlling the appearance of the typeface: the Font, Font Effects, and Position pages. The first two tabs are straightforward. Many of the options are the same as those used when creating a character style, as discussed below. Options that can be used when creating a paragraph style are described here.

Specifying a relative font size

You can specify a fixed font size (in points or other measurement units). In addition, if you are creating a style based on another style (linked style), you can specify a font size relative to that other style either as a percentage or as a plus or minus point value (–2pt or +5pt). Relative font sizes are commonly used for Web pages.

For example, the Heading 1 paragraph style is based on the Heading style. If the font size of the Heading style is 14pt, and the font size of the Heading 1 style is specified as 130%, the resultant font size of text in a paragraph formatted with the Heading 1 style is 14pt times 130% = 18.2pt.

To specify a percentage font size: in the Paragraph Style dialog, select the Font tab. In the Size box, enter the percentage amount followed by the symbol % (Figure 7). Similarly, you can enter a plus or minus sign followed by the number of points to be added to or subtracted from the base font size.

To change from a relative font size back to an absolute font size, enter the desired font size in a specific measurement, such as points (denoted by the letters pt).

Figure 7: Selecting a type size based on a percentage

Image4

Selecting a language for a paragraph style

The language selected for a document (on Tools > Options > Language Settings > Languages) determines the dictionary used for spelling, thesaurus, hyphenation, the decimal and thousands delimiter used, and the default currency format. You can only use a language whose dictionary is installed.

Within the document, you can apply a separate language to any paragraph style. This setting has priority over the language of the whole document.

On the Font page of the Paragraph Style dialog, languages with installed dictionaries are marked in the Language list by a small icon (Figure 8). When checking spelling, Writer will use the correct dictionary for paragraphs with this style.

If you write documents in multiple languages, you can use the linked styles to create two paragraph styles that differ only in the language option. If you then want to change some of the other properties of the paragraph style, all you need do is to change the parent style.

To insert occasional words in a different language and avoid their being picked by mistake with the spelling checker, it is more convenient to use a character style, as discussed in “Creating a new character stylebelow.

Tip

The selection [None] after Language is useful when a paragraph includes text you don’t want checked, like URLs and programming code.

Figure 8: Selecting a language for a paragraph style

Image7

Options for positioning text

The Position tab of the Paragraph Style dialog collects all the options that affect the position of the text on the screen or printed page.

Figure 9: The Position tab of the Paragraph Style dialog

Image8

Use the Position section to control the appearance of superscripts and subscripts (characters above or below the normal line of type, as in H2O or M2). However, you will normally apply superscript and subscripts to groups of characters rather than to entire paragraphs. Therefore, it is strongly recommended to change these parameters only when defining a character style and, instead, leave the default settings for the paragraph styles.

The second section of the Position tab controls the rotation of the paragraph area. Two common uses for rotated paragraphs are to put portrait headers and footers on a landscape page and to fit headings above narrow table columns (as shown in Figure 10).

Tip

Rotated table headings are usually more readable if they are angled, not vertical. To produce angled text, you need to create a text object from the Drawing toolbar and rotate it to any angle you wish. See Chapter 11, Images and Graphics.

Figure 10: A table with rotated headings

graphics181

The Scale width box controls the percentage of the font width by which to compress or stretch the rotated text horizontally; that is, from the first character to the last.

Chapter 6, Formatting Pages: Advanced, describes how to create portrait headers and footers on landscape pages by rotating characters. You can achieve the same effect by defining a separate header or footer paragraph style specifically for landscape pages.

Example: Rotating the text in a paragraph style

As an example, we will apply rotated table headings to a pre-existing table.

1)  Create a new paragraph style. Name it Table Heading Rotated.

2)  On the Position tab of the Paragraph Style dialog, in the Rotation / scaling section, select 90 degrees. Click OK to save the new style.

3)  Select the heading row of the table and apply the new style. Any text in the cells of the heading row is now rotated.

4)  If the headings are aligned to the top of the cells, you may want to change the alignment to the bottom of the cells, as shown in Figure 10. To do this, click the Bottom icon on the Table toolbar or select Format > Alignment > Bottom from the Menu bar.

Spacing options

Use the Spacing section of the Position tab to control the spacing between individual characters in the paragraph. When selecting an option other than default in the drop-down menu, use the edit box to enter the value in points by which you want to expand or condense the text.

The Pair kerning option (selected by default) increases or decreases the amount of space between certain pairs of letters to improve the overall appearance of the text (Figure 11). Kerning automatically adjusts the character spacing for specific letter combinations. Kerning is only available for certain font types and, for printed documents, only works if your printer supports it.

Figure 11: Kerning disabled (left) and enabled (right)

graphics23

Controlling tab stops

Although borderless tables are generally considered a much better solution to space out material across a page, in some situations tabs are sufficient to do what you need, with the added advantages of being simpler to manage and quicker to apply.

Caution

If you need to use tabs, and you will be sending a document to other people, do not use the default tab stops. If the recipients of the document have defined default tab stops that are not the same as the ones you are using, the paragraph may look very different on their machines. Instead, define the tab stops explicitly in the paragraph or the paragraph style; then you can be sure that everyone will see the same layout.

To define tab stops in your paragraph style, use the Tabs page, shown in Figure 12. Here you can choose the type of tab: Left, Right, Centered, or Decimal; the character to be used as a decimal point; and the Fill Character—the characters that appear between the end of the text before the tab and the beginning of the text after the tab. You can also create a custom fill character by entering it in the corresponding box. Common use of a fill character is adding dots between a heading and a page number in a table of contents or underscore character when creating a form to fill in.

Figure 12: Specifying tab stops for a paragraph style

Image9

To create a new tab stop, specify its position relative to the left margin, the type of tab, and the fill character and click the New button. The new tab stop is then listed in the Position box on the left. To modify the position of a tab stop, create a new one in the desired position and delete the old one using the buttons on the right-hand side of the page.

It is not possible to define tabs that exceed the page margin. In the rare cases where that may be needed, use a borderless table instead.

Outline & Numbering tab

Use the Outline & Numbering tab to assign an outline level to any paragraph style, as described in “Assigning outline levels to other styles” in Chapter 8, Introduction to Styles. This feature enables you to create a table of contents that includes those paragraphs along with the headings using styles listed in Tools > Chapter Numbering.

You can also use this tab to associate a paragraph style with a list style. Refer to Chapter 12, Lists: Tips and Tricks, for additional information and an example.

Setting up a drop cap

Drop caps (one or more characters in a larger font at the beginning of a paragraph) are generally suitable only for a first paragraph style. You can predefine the properties in the Drop Caps tab of the Paragraph Style dialog. Select the Display drop caps option to enable the other choices: the number of lines occupied, the number of characters to enlarge (if you want the whole first word, check the corresponding box), and the space between the drop caps and the text.

Figure 13: Options for adding a drop cap to the paragraph style

Image10

Drop caps use the same font and have the same properties as the rest of the paragraph; however, you can easily modify their appearance by creating a specific character style and using it. For example, you may want the drop caps to be of a different color or apply an outline effect. Select the character style you want to use in the corresponding drop-down menu.

Background (area), highlighting, and transparency

Adding a background color, gradient, pattern, hatching, or bitmap to a paragraph is an alternative to using a frame. You can customize the background using the Area tab of the Paragraph Style dialog. The choices are described in “Defining borders and backgrounds” in Chapter 6, Formatting Pages: Advanced.

Figure 14: Types of fill for paragraph backgrounds

Image14

You may want to pay attention to the following points when working with the Area tab:

Figure 15: Different Area and Highlighting colors

Image12

On the Transparency tab, you can choose the transparency options for the selected background. Values range from 0% (fully opaque) to +100% (fully transparent).

Borders

Borders are often used to set off paragraphs from the text without using a frame, or to separate header and footer areas from the main text area (such as in this guide), and to provide decorative elements in some heading styles. Consider the following points:

See Chapter 4, Formatting Text, for more about the Borders tab.

Using conditional paragraph styles

Making a paragraph style conditional means it changes its formatting depending on where it is used. For example, you may want the style MyTextBody to be black by default but turn white when inside a frame with a blue background.

Probably the most common use for conditional formatting is with single-style outlining. Single-style outlining is a type of outline numbering designed with a Numbering List Style. Instead of using different styles for the various outline levels, it changes the number formatting when you press the Tab key to create a subordinate heading.

The only trouble with single-style outlining is that all levels look the same. This is where a conditional paragraph style comes in handy. Assign the paragraph style to an outline numbering style in the Outline & Numbering tab and then open the Condition tab. There, you can assign the levels of the outline numbering style to other paragraph styles. Then, when you press the Tab key while using the paragraph style, each level of the outline takes on different formatting, making single-style outlining even more convenient than it is on its own.

When you create a conditional style, you are saying “in this condition make this style look like that other style”. For example, “When typing into a footer, make this style look like the my_footer paragraph style; when typing into a table, make this style look like the table_text paragraph style”.

In addition to setting the normal (unconditional) properties of the style, you need to define which other style it will look like in different situations. You do this on the Condition tab.

Note

Predefined styles (other than Text body) such as Default, Heading 1, and Heading 2 cannot be set to be conditional.

Caution

If you want to create a new style and make it conditional, you have to do it while the Paragraph Style dialog is still open for the first time. After the dialog closes, the Condition tab no longer appears in the dialog when it is reopened.

Figure 16: Condition tab for paragraph styles

Image11

To set up a conditional paragraph style:

1)  Define a new paragraph style.

2)  Select all the paragraph properties for the style. Do not click OK!

3)  Click the Condition tab.

4)  Select the Conditional Style option.

5)  Select the first condition in the Context list (left side of the dialog) and select the style you want for this condition in the Paragraph Styles list on the right-hand side.

6)  Click Apply. The name of the paragraph style appears in the middle list.

7)  Repeat steps 5 and 6 for each condition you want to have linked to a different style.

8)  Click OK.

When the style is selected, you will see that the formatting of your text depends on the context.

Working with character styles

Character styles over-ride the formatting in a paragraph style. They are applied to groups of characters, such as words or phrases, rather than whole paragraphs. They are mainly used when you want to change the appearance or attributes of parts of a paragraph without affecting other parts. Examples of effects that can be obtained by means of character styles are bold or italic typeface or colored words.

Other ways of using character styles are described elsewhere in this book. These uses include making chapter numbers, page numbers, or list numbers larger than the surrounding text and formatting hyperlinks. When you do not want some words (for example, names, or words in a different language) to be detected as spelling mistakes, you can define the language (if any) to be applied in the character style’s properties.

Creating a new character style

The tabs of the Character Styles dialog are similar to those for paragraph styles:

Note

When rotating a group of characters, you also need to specify whether the rotated text should fit in the line or if, instead, it is allowed to expand above and below the line. This property is active only for character styles.

Working with frame styles

Frames are often used as containers for text or graphics. To provide consistency in the appearance of frames used for similar purposes, it is a good idea to define styles for frames. For example, you might want photographs to be enclosed in a frame with a drop-shadowed border, line drawings in a frame with a plain border, marginal notes in a frame without a border but with a shaded background, and so on.

Writer provides several predefined frame styles (see Table 1), which you can modify as needed, and you can define new frame styles. The technique for defining and applying frame styles is similar to that for other styles.

Tip

There is considerable overlap between the uses of frames and sections for some page layout purposes. You may find Chapter 6, Formatting Pages: Advanced, useful for information about the use of frames and sections.

Table 1: Various frame styles and their uses

Style

Comments and Use

Formula

The frame style used for formulas. The default includes AutoSize, which adjusts the size of the frame to the formula.

Frame

The default frame style.

Graphics

The default frame style for graphics. The defaults include AutoSize to fit the graphic, no text wrap, and a thin border around the frame.

Labels

The default frame style for use with File > New > Labels. It seems to be used by LibreOffice automatically and is not intended for users.

Marginalia

A frame style for placing a frame beside the left margin. This style is intended for comments added in the margin of text. The style also is useful for creating sideheads—headings against the left margin, which often are used in technical documentation. An example is given in Chapter 8, Introduction to Styles.

OLE

The default frame style for OLE objects and floating frames. The default places the frame at the top and center of a body of text.

Watermark

The default frame style for a watermark, a graphic placed as the background to a body of text. The default is a Through wrap, with text passing over the frame and anything in it. The graphic should be faint enough that text still is readable over top of it.

How frame styles work

When an object is added to Writer, it is automatically enclosed in a frame of a predetermined type. The frame sets how the object is placed on the page, as well as how it interacts with other elements in the document. You can edit the frame by modifying the frame style it uses or by using a manual override when a frame is added to the document.

Because frames and objects are used together, it is sometimes easy to forget they are separate elements. In some cases, such as charts, you can edit the frame and object separately.

Unlike other elements that use styles, frames can be defined only partly by their style because their use can vary so much. Several elements of frames, such as the anchor and protected elements, need to be defined manually for individual frames.

To format a frame manually, select Insert > Frame on the Menu bar. The dialog that opens contains all the settings available when frame styles are set up, as well as some that are only available when the frame is inserted.

Planning the styles

If you are using a mix of graphics, you may want to define two related styles, one with a border line for graphics with white backgrounds and one without a border for all other backgrounds. You also may want to design one or more frames for text only.

Otherwise, the default frame styles (listed in Table 1) cover most users’ needs. The only significant addition that you might need is one or more styles for text frames.

Creating new frame styles

You can access frame settings by selecting New or Modify in the Styles deck for a frame style.

Working with page styles

Page styles control page properties (margins, page size, header and footer, among others). However, unlike paragraphs, characters, and frames, pages can not have directly applied properties. If you change the properties of a page, you are actually changing the underlying page style, so those changes are applied to all pages that use that page style. To change the properties of individual pages, you need to create a new page style.

Creating a new page style

To create a new page style, open the Styles deck and click the Page Styles icon. Right-click anywhere in the window and select New. The Page Style dialog contains nine tabs.

Organizer tab

The Organizer tab is described above.

General settings for the page style

The Page tab of the Page Style dialog is where you can control the general settings of the page. The tab consists of three sections, plus a preview area in the top right.

In the Paper Format section, you can specify the size of the paper, choosing from one of the many predefined formats, or select User to define your own paper size using the Width and Height fields. Select the orientation of the paper: Portrait or Landscape. If your printer has more than one tray, you can specify the tray from which to print pages in the new page style.

Figure 17: The Page tab for the Page Style dialog

Image16

In the Margins section, specify the size of the margins in your preferred unit of measurement. If you select Mirrored for Page layout in the Layout settings section, then the names of the margins change from Left and Right to Inner and Outer.

In the Layout Settings section, choose the desired Page layout in the drop-down list. Decide whether the page style being defined applies to both left and right pages (default), mirrored pages, or right or left pages only. Some considerations:

Use the Page numbers drop-down list to specify the page numbering style to apply to this page style.

If you mark the Use page line-spacing box, Writer will align the base lines of text printed on adjacent columns, opposite pages, and both sides of a sheet of paper to an invisible vertical grid on the page with a spacing between grid points that depends on the selected Reference Style.

Area and Border tabs

The Area and Border tabs are described in detail in Chapter 6, Formatting Pages: Advanced. Use the Area tab to apply a background (covers the entire page, including the margins) or the Border tab to draw a border around the text area of the page (inside the margins). You can also add a shadow to the text area.

Header and Footer tabs

You can associate a different header or footer with each page style. This property makes it easy to have different headers on left and right pages, to avoid headers on pages at the start of a new chapter, and so on. You can also have a different header or footer on the same page style where it is used for the first page of a document.

If you choose a Mirrored or Right and Left page layout on the Page tab, you can specify a different header for left or right pages even if you use a single style for both. This option is not available on the predefined Left Page and Right Page page styles or on any other page style defined to be a left or right page only.

The Header and Footer tabs are described in detail in Chapter 5, Formatting Pages: Basics.

Figure 18: Different content on left and right pages

graphics27

Columns tab

Use the Columns tab to create the column layout for the page style. It has three sections: Settings, Width and Spacing, and Separator Line. Choose the desired number of columns. If you select more than one column, the Width and Spacing section and the Separator LIne section become active. You can use the predefined settings (equally spaced columns) or deselect the AutoWidth option and enter the parameters manually. When you work with multiple columns per page, you can also fine tune the position and size of a separator line between the columns.

Footnote tab

Use the Footnote tab to adjust the appearance of the footnotes. See Chapter 5, Formatting Pages: Basics, for details.

Working with list styles

List styles (also called numbering styles) work together with paragraph styles. They define indentation, alignment, and the numbering or bullet characters used for list items. You can define many list styles, from simple bulleted lists to complex multi-level (nested) 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 Toggle Numbered List or Toggle Bulleted List icons on the Formatting toolbar, and create quite complex nested lists using the icons on the Bullets and Numbering toolbar, 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 if you later need to change their appearance, you will have a lot of manual work to do.

See Chapter 12, Lists: Tips and Tricks, for details on how list styles and paragraph styles work together.

Note

LibreOffice uses the terms “numbering style” and “list style” inconsistently, but they are the same thing. For example, the tooltip in the Sidebar’s Styles deck says List Styles, but its style dialog says Numbering Style.

Creating a new list style

The dialog to create a new list style includes six tabs in addition to the usual Organizer tab discussed above.

Bullets, Numbering Styles, and Image tabs

The Bullets, Numbering Style, and Image tabs contain predefined formatting for list item symbols (bullets or numbers). To use one of them for your style, click the image. A thick border indicates the selection. The bullets on the Bullets tab are font characters; those on the Image tab are graphics.

Outline tab

Use the Outline tab to select from eight predefined nested lists. You can also select one and use it as a starting point for your own style, customizing the list using the Position tab and the Customize tab, as described below.

Position tab

Use the Position tab (Figure 19) to fine tune the indentation and spacing of the list item symbol and the text of the list item. This tab is particularly effective when used in combination with the Customize tab.

You can adjust the following settings for each individual level or all levels at once (to make them all the same).

Tip

To fully appreciate how the Numbering alignment and other parameters work, 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.

Figure 19: Position settings for a List style

Image13

Customize tab

Use the Customize tab (Figure 20) to define the style of the outline levels. The options available on this tab depend on the type of marker selected for the list. First, on the left side, select the level you want to modify. 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.

Figure 20: The Customize tab for a list style

Image6

Depending on the numbering style selected in the Number box (bullet, graphic, numbering), some of the following options become available on the tab (not all are shown in the illustration):

The right-hand side of the dialog shows a preview of the modifications made.

If you choose the Linked graphics option in the Number list, the graphic object is linked rather than embedded in the document. 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.

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, select the Consecutive numbering box at the bottom of the tab.

Using the Style Inspector

The Style Inspector (Figure 21) is located on the Sidebar. It displays all the attributes of the styles (paragraph and character) and any direct formatting present in the paragraph or word where the cursor is located.

Figure 21: Style Inspector example

Image17

Contents