Did you know that the OpenOffice.org Wiki has a WYSIWYG editor? See Help:FCKeditor

Formatting text

From OpenOffice.org Wiki

Jump to: navigation, search


Contents

Using styles

Styles are central to using Writer. Styles enable you to easily format your document consistently, and to change the format with minimal effort. Often, when you format your document in Writer, you are using styles whether you realize it or not. A style is a named set of formatting options. Writer defines several types of styles, for different types of elements: characters, paragraphs, pages, frames, and lists. See Chapter 3 (Using Templates and Styles).

Formatting paragraphs

You can apply many formats to paragraphs using the buttons on the Formatting toolbar. The figure below shows the Formatting toolbar as a floating toolbar, customized to show only the buttons for paragraph formatting. The appearance of the icons may vary with your operating system and the selection of icon size and style in Tools > Options > OpenOffice.org > View.

Image:Tip.png It is highly recommended that you use paragraph styles rather than manually formatting paragraphs, especially for long or standardized documents. For information on the advantages of styles, and how to use them, see Chapter 13 (Working with Styles) in this book and Chapters 6 and 7 in the Writer Guide.


Formatting toolbar, showing icons for paragraph formatting.
1 Styles and Formatting window    8 Line Spacing: 1.5
2 Apply Style9 Line Spacing: 2
3 Align Left10 Numbering On/Off
4 Centered11 Bullets On/Off
5 Align Right12 Decrease Indent
6 Justified13 Increase Indent
7 Line Spacing: 114 Paragraph Format dialog

The figure below shows examples of the different alignment options.

Different text alignment options.

Formatting characters

You can apply many formats to characters using the buttons on the Formatting toolbar. The figure below shows the Formatting toolbar as a floating toolbar, customized to show only the buttons for character formatting. The appearance of the icons may vary with your operating system and the selection of icon size and style in Tools > Options > OpenOffice.org > View.

Image:Tip.png It is highly recommended that you use character styles rather than manually formatting characters. For information on the advantages of styles, and how to use them, see Chapter 6 (Introduction to Styles) in the Writer Guide.


Formatting toolbar, showing icons for character formatting.
1 Styles and Formatting window    9 Subscript
2 Apply Style10 Increase Font
3 Font Name11 Reduce Font
4 Font Size12 Font Color
5 Bold13 Highlighting
6 Italic14 Background Color
7 Underline15 Character Format dialog
8 Superscript
Image:Tip.png To remove manual formatting, select the text and click Format > Default Formatting, or right-click and select Default Formatting.


Autoformatting

You can set Writer to automatically format parts of a document according to the choices made on the Options page of the AutoCorrect dialog (Tools > AutoCorrect > Options).

Image:Tip.png If you notice unexpected formatting changes occurring in your document, this is the first place to look for the cause.


Some common unwanted or unexpected formatting changes include:

  • Horizontal lines. If you type three or more hyphens (---), underscores (___) or equal signs (===) on a line and then press Enter, the paragraph is replaced by a horizontal line as wide as the page. The line is actually the lower border of the preceding paragraph.
  • Bulleted and numbered lists. A bulleted list is created when you type a hyphen (-), star (*), or plus sign (+), followed by a space or tab at the beginning of a paragraph. A numbered list is created when you type a number followed by a period (.), followed by a space or tab at the beginning of a paragraph. Automatic numbering is only applied to paragraphs formatted with the Default, Text body or Text body indent paragraph styles.

To turn autoformatting on or off, go to Format > AutoFormat and select or delete the items on the sub menu.

Creating numbered or bulleted lists

There are several ways to create numbered or bulleted lists:

  • Use autoformatting, as described above.
  • Use list (numbering) styles, as described in Chapters 6 (Introduction to Styles) and Chapter 7 (Working with Styles) in the Writer Guide.
  • Use the Numbering and Bullets icons on the paragraph formatting toolbar. This method is described here.

To produce a numbered or bulleted list, select the paragraphs in the list, and then click the appropriate icon on the toolbar.

Image:documentation_note.png It is a matter of personal preference whether you type your information first, then apply Numbering/Bullets, or apply them as you type.


Using the Bullets and Numbering toolbar

You can create nested lists (where one or more list items has a sublist under it, as in an outline) by using the buttons on the Bullets and Numbering toolbar. You can move items up or down the list, or create subpoints, and even change the style of bullets. Use View > Toolbars > Bullets and Numbering to see the toolbar.

Bullets and Numbering toolbar.
1 Bullets On/Off8 Insert Unnumbered Entry
2 Numbering On/Off9 Move Up
3 Numbering Off10 Move Down
4 Up One Level11 Move Up with Subpoints
5 Down One Level12 Move Down with Subpoints
6 Move Up (One Level) with Subpoints13 Restart Numbering
7 Move Down (One Level) with Subpoints    14 Bullets and Numbering

The appearance of the icons may vary with your operating system and the selection of icon size and style in Tools > Options > OpenOffice.org > View.

Hyphenating words

To turn automatic hyphenation of words on or off:

  1. Press F11 to open the Styles and Formatting window.
  2. On the Paragraph Styles page of the Styles and Formatting window, right-click on Default in the list and select Modify.
  3. Modifying a style.
  4. On the Paragraph Style dialog, go to the Text Flow page.
  5. Under Hyphenation, select or deselect the Automatically option. Click OK to save.
Image:documentation_note.png Turning on hyphenation for the Default paragraph style affects all other paragraph styles that are based on Default. You can individually change other styles so that hyphenation is not active; for example, you might not want headings to be hyphenated. Any styles that are not based on Default are not affected. For more on paragraph styles, see Chapter 6 (Introduction to Styles) and Chapter 7 (Working with Styles) in the Writer Guide.


Turning on automatic hyphenation.

You can also set hyphenation choices through Tools > Options > Language Settings > Writing Aids. In Options, near the bottom of the dialog, scroll down to the find the hyphenation settings.

Setting hyphenation options.
Image:documentation_note.png Hyphenation options set on the Writing Aids dialog are effective only if hyphenation is turned on through paragraph styles.

Choices on the Writing Aids dialog for “characters before line break” and “characters after line break” override settings in paragraphs styles for “characters at line end” and “characters at line begin”.


To enter a conditional hyphen inside a word, press Control+minus sign. The word is hyphenated at this position when it is at the end of the line, even if automatic hyphenation for this paragraph is switched off.

To insert non-breaking hyphen, press Control+Shift+minus sign.


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