Getting Started Guide

3

Chapter
Using Styles andTemplates
This PDF is designed to be read onscreen, two pages at atime. If you want to print a copy, your PDF viewer shouldhave an option for printing two pages on one sheet ofpaper, but you may need to start with page 2 to get it toprint facing pages correctly. (Print this cover page
separately.)CopyrightThis document is Copyright © 2005–2010 by its contributors as listed
in the section titled Authors. You may distribute it and/or modify it
under the terms of either the GNU General Public License, version 3 orlater, or the Creative Commons Attribution License, version 3.0 or
later.
All trademarks within this guide belong to their legitimate owners.

Authors
Jean Hollis Weber
Michele Zarri
Agnes Belzunce
Daniel Carrera
Peter Hillier-Brook
Peter Kupfer
Gary Schnabl
Janet Swisher

Feedback
Please direct any comments or suggestions about this document to:authors@user-faq.openoffice.org

Publication date and software version
Published 20 January 2010. Based on OpenOffice.org 3.2.

You can download
an editable version of this document fromhttp://oooauthors.org/english/userguide3/published/

Contents
Copyright............................................................................................... 2
What is a template?................................................................................ 5
What are styles?..................................................................................... 5
Applying styles....................................................................................... 7
Using the Styles and Formatting window...........................................7
Using Fill Format mode......................................................................8
Using the Apply Style list....................................................................8
Using keyboard shortcuts...................................................................9
Modifying styles..................................................................................... 9
Changing a style using the Style dialog............................................10
Updating a style from a selection.....................................................10
Using AutoUpdate............................................................................. 10
Updating styles from a document or template..................................11
Creating new (custom) styles...............................................................11
Creating a new style using the Style dialog......................................11
Creating a new style from a selection...............................................11
Dragging and dropping to create a style..........................................12
Copying and moving styles................................................................... 12
Using the Template Management dialog...........................................13
Loading styles from a template or document....................................14
Deleting styles...................................................................................... 15
Using a template to create a document...............................................15
Creating a template.............................................................................17
Creating a template from a document..............................................17
Creating a template using a wizard..................................................18
Editing a template................................................................................ 19
Updating a document from a changed template...............................19
Adding templates using the Extension Manager..................................21
Setting a default template.................................................................... 22
Setting a custom template as the default..........................................22
Resetting the default template..........................................................22
Using Styles and Templates

3

Associating a document with a different template...............................23
Organizing templates........................................................................... 24
Creating a template folder................................................................24
Deleting a template folder................................................................24
Moving a template............................................................................25
Deleting a template........................................................................... 25
Importing a template........................................................................25
Exporting a template........................................................................26
Examples of style use........................................................................... 26
Defining a different first page for a document..................................26
Dividing a document into chapters...................................................27
Changing page orientation within a document.................................27
Different headers on right and left pages.........................................27
Controlling page breaks automatically.............................................28
Compiling an automatic table of contents.........................................28
Defining a sequence of styles............................................................28

4

Using Styles and Templates

What is a template?
A template is a model that you use to create other documents. For
example, you can create a template for business reports that has yourcompany’s logo on the first page. New documents created from thistemplate will all have your company’s logo on the first page.
Templates can contain anything that regular documents can contain,such as text, graphics, a set of styles, and user-specific setup
information such as measurement units, language, the default printer,and toolbar and menu customization.
All documents in OpenOffice.org (OOo) are based on templates. You
can create a specific template for any document type (text,
spreadsheet, drawing, presentation). If you do not specify a template
when you start a new document, then the document is based on thedefault template for that type of document. If you have not specified adefault template, OOo uses the blank template for that type of
document that is installed with OOo. See “Setting a default template”
on page 22 for more information.

What are styles?
A style is a set of formats that you can apply to selected pages, text,
frames, and other elements in your document to quickly change theirappearance. When you apply a style, you apply a whole group offormats at the same time.
Many people manually format paragraphs, words, tables, page layouts,
and other parts of their documents without paying any attention tostyles. They are used to writing documents according to physicalattributes. For example, you might specify the font family, font size,
and any formatting such as bold or italic.
Styles are logical attributes. Using styles means that you stop saying“font size 14pt, Times New Roman, bold, centered”, and you startsaying “Title” because you have defined the “Title” style to have thosecharacteristics. In other words, styles means that you shift theemphasis from what the text (or page, or other element) looks like, towhat the text is.
Styles help improve consistency in a document. They also make major
formatting changes easy. For example, you may decide to change theindentation of all paragraphs, or change the font of all titles. For a long
document, this simple task can be prohibitive. Styles make the taskeasy.
What are styles?

5In addition, styles are used by OpenOffice.org for many processes,
even if you are not aware of them. For example, Writer relies onheading styles (or other styles you specify) when it compiles a table ofcontents. Some common examples of style use are given in “Examples
of style use” on page 26.
OpenOffice.org supports the following types of styles:• Page styles include margins, headers and footers, borders and

•

•
•
•
•

•

•

backgrounds. In Calc, page styles also include the sequence forprinting sheets.
Paragraph styles control all aspects of a paragraph’s appearance,such as text alignment, tab stops, line spacing, and borders, andcan include character formatting.
Character styles affect selected text within a paragraph, such as
the font and size of text, or bold and italic formats.
Frame styles are used to format graphic and text frames,
including wrapping type, borders, backgrounds, and columns.
Numbering styles apply similar alignment, numbering or bullet
characters, and fonts to numbered or bulleted lists.
Cell styles include fonts, alignment, borders, background, number
formats (for example, currency, date, number), and cell
protection.
Graphics styles in drawings and presentations include line, area,
shadowing, transparency, font, connectors, dimensioning, andother attributes.
Presentation styles include attributes for font, indents, spacing,alignment, and tabs.

Different styles are available in the various components of OOo, as
listed in Table 1.
OpenOffice.org comes with many predefined styles. You can use thestyles as provided, modify them, or create new styles, as described inthis chapter.

6

Using Styles and TemplatesTable 1. Styles available in OOo components
Style Type

Writer

Calc

Page

X

X

Paragraph

X

Character

X

Frame

X

NumberingX

Cell

Impress

X

X

X

X

X

Presentation
Graphics

Draw(included in
Frame styles)

Applying styles
OpenOffice.org provides several ways for you to select styles to apply.

Using the Styles and Formatting window
1) Click the Styles and Formatting icon
located at the left-handend of the object bar, or click Format > Styles and Formatting,or press F11. The Styles and Formatting window shows the typesof styles available for the OOo component you are using. Figure 1
shows the window for Writer, with Page Styles visible.
You can move this window to a convenient position on the screenor dock it to an edge (hold down the Ctrl key and drag it by thetitle bar to where you want it docked).
2) Click on one of the icons at the top left of the Styles andFormatting window to display a list of styles in a particular
category.
3) To apply an existing style (except for character styles), position
the insertion point in the paragraph, frame, or page, and thendouble-click on the name of the style in one of these lists. To apply
a character style, select the characters first.

Tip

Applying styles

At the bottom of the Styles and Formatting window is a
dropdown list. In Figure 1 the window shows Automatic,
meaning the list includes only styles applied automatically by
OOo. You can choose to show all styles or other groups ofstyles, for example only custom styles.
7Figure 1: The Styles and Formatting window for
Writer, showing paragraph styles.

Using Fill Format mode
Use Fill Format to apply a style to many different areas quickly without
having to go back to the Styles and Formatting window and doubleclick every time. This method is quite useful when you need to format
many scattered paragraphs, cells, or other items with the same style.
1) Open the Styles and Formatting window and select the style youwant to apply.
2) Click the Fill Format mode icon.
3) To apply a paragraph, page, or frame style, hover the mouse overthe paragraph, page, or frame and click. To apply a characterstyle, hold down the mouse button while selecting the characters,
Clicking on a word applies the character style for that word.
Repeat step 3 until you made all the changes for that style.
4) To quit Fill Format mode, click the Fill Format mode icon again
or press the Esc key.
CautionWhen this mode is active, a right-click anywhere in the
document undoes the last Fill Format action. Be careful not toaccidentally right-click and thus undo actions you want tokeep.

Using the Apply Style list
After you have used a style at least once in a document, the style nameappears on the Apply Style list at the left-hand end of the Formatting
toolbar, next to the Styles and Formatting icon.
8

Using Styles and Templates

You can open this list and click once on the style you want, or you can
use the up and down arrow keys to move through the list and thenpress Enter to apply the highlighted style.
Tip

Select More... at the bottom of the list to open the Styles andFormatting window.

Figure 2: The Apply Style liston the Formatting toolbar.

Using keyboard shortcuts
Some keyboard shortcuts for applying styles are predefined. For
example, in Writer Control+0 applies the Text body style, Control+1
applies the Heading 1 style, and Control+2 applies the Heading 2style. You can modify these shortcuts and create your own; see Chapter
14 (Customizing OpenOffice.org) for instructions.

Modifying styles
OpenOffice.org provides several ways to modify styles (both thepredefined styles and custom styles that you create):• Changing a style using the Style dialog• Updating a style from a selection• Use AutoUpdate (paragraph and frame styles only)• Load or copy styles from another document or template

Tip

Any changes you make to a style are effective only in thecurrent document. To change styles in more than one document,
you need to change the template or copy the styles into theother documents as described on page 12.

Modifying styles

9Changing a style using the Style dialog
To change an existing style using the Style dialog, right-click on therequired style in the Styles and Formatting window and select Modify
from the pop-up menu.
The Style dialog displayed depends on the type of style selected. Eachstyle dialog has several tabs. See the chapters on styles in the user
guides for details.

Updating a style from a selection
To update a style from a selection:1) Open the Styles and Formatting window.
2) In the document, select an item that has the format you want toadopt as a style.
CautionMake sure that there are unique properties in this paragraph.
For example, if there are two different font sizes or font styles,
that particular property will remain the same as before.

3) In the Styles and Formatting window, select the style you want to
update (single-click, not double-click), then long-click on thearrow next to the New Style from Selection icon and click on
Update Style.

Figure 3: Updating a style from a selection.

Using AutoUpdate
AutoUpdate applies to paragraph and frame styles only. If the
AutoUpdate option is selected on the Organizer page of the Paragraph
Style or Frame Style dialog, applying direct formatting to a paragraphor frame using this style in your document automatically updates thestyle itself.
10

Using Styles and Templates

Tip

If you are in the habit of manually overriding styles in yourdocument, be sure that AutoUpdate is not enabled.

Updating styles from a document or template
You can update styles by copying or loading them from a template oranother document. See “Copying and moving styles” on page 12.

Creating new (custom) styles
You may want to add some new styles. You can do this in two ways:• Creating a new style using the Style dialog• Creating a new style from a selection

Creating a new style using the Style dialog
To create a new style using the Style dialog, right-click in the Styles
and Formatting window and select New from the pop-up menu.
If you want your new style to be linked with an existing style, first
select that style and then right-click and select New.
If you link styles, then when you change the base style (for example, bychanging the font from Times to Helvetica), all the linked styles willchange as well. Sometimes this is exactly what you want; other times
you do not want the changes to apply to all the linked styles. It pays toplan ahead.
The dialogs and choices are the same for defining new styles and formodifying existing styles. See the chapters on styles in the user guides
for details.

Creating a new style from a selection
You can create a new style by copying an existing manual format. This
new style applies only to this document; it will not be saved in thetemplate.
1) Open the Styles and Formatting window and choose the type ofstyle you want to create.
2) In the document, select the item you want to save as a style.
3) In the Styles and Formatting window, click on the New Style
from Selection icon.

Creating new (custom) styles

114) In the Create Style dialog, type a name for the new style. The listshows the names of existing custom styles of the selected type.
Click OK to save the new style.

Figure 4: Naming a new style createdfrom a selection.

Dragging and dropping to create a style
You can drag and drop a text selection into the Styles and Formatting
window to create a new style.
Writer
Select some text and drag it to the Styles and Formatting window. If
Paragraph Styles are active, the paragraph style will be added to thelist. If Character Styles are active, the character style will be added
to the list.
Calc
Drag a cell selection to the Styles and Formatting window to create
cell styles.
Draw/Impress
Select and drag drawing objects to the Styles and Formatting
window to create graphics styles.

Copying and moving styles
You can copy or move styles from one template or document intoanother template or document, in two ways:• Using the Template Management dialog• Loading styles from a template or document

12

Using Styles and Templates

Using the Template Management dialog
To copy or move styles using the Template Management dialog:
1) Click File > Templates > Organize.
2) In the Template Management dialog (Figure 5), set the lists at thebottom to either Templates or Documents, as needed. The default
is Templates on the left and Documents on the right.
To copy styles from a file that is not open, click the File button.
When you return to this dialog, both lists show the selected file
as well as all the currently open documents.

Tip3) Open the folders and find the templates from and to which you
want to copy. Double-click on the name of the template or
document, and then double-click the Styles icon to show the list of
individual styles (Figure 6).
4) To copy a style, hold down the Ctrl key and drag the name of thestyle from one list to the other.
CautionIf you do not hold down the Control key when dragging, thestyle will be moved from one list to the other. The style will
be deleted from the list you are dragging it from.

5) Repeat for each style you want to copy. If the receiving templateor document hasmany styles, you may not see any change unless
you scroll down in the list. When you are finished, click Close.

Figure 5: Choosing to copy styles from a document,
not a template.
Copying and moving styles

13

Figure 6: Copying a style from one document to another.

Loading styles from a template or document
You can copy styles by loading them from a template or anotherdocument:
1) Open the document you want to copy styles into.
2) In the Styles and Formatting window, long-click on the arrow next
to the New Style from Selection icon, and then click on Load
Styles (see Figure 3).
3) On the Load Styles dialog (Figure 7), find and select the template
you want to copy styles from.

Figure 7. Copying styles from a template into theopen document
4) Select the categories of styles to be copied. Select Overwrite if
you want the styles being copied to replace any styles of the samenames in the document you’re copying them into.
5) Click OK to copy the styles. You will not see any change on
screen.
14

Using Styles and Templates

Note

CautionTo copy the styles from another document, click the From
File button to open a window from which you can select therequired document.
If your document has a table of contents, and if you have usedcustom styles for headings, the heading levels associated withoutline levels (in Tools > Outline Numbering) will revert tothe defaults of Heading 1, Heading 2, and so on when you loadstyles this . You will need to change these back to your custom
heading styles. This is a bug.

Deleting styles
You cannot remove (delete) any of OOo’s predefined styles from adocument or template, even if they are not in use.
You can remove any user-defined (custom) styles; but before you do,you should make sure the styles are not in use. If an unwanted style isin use, you will want to replace it with a substitute style.
To delete unwanted styles, right-click on them (one at a time) in the
Styles and Formatting window and click Delete on the pop-up menu.
If the style is in use, you receive a warning message.
CautionMake sure the style is not in use before deletion. Otherwise,
all objects with that style will return to the default style andretain their formatting as manual formatting. This can be a
problem in a long document.

If the style is not in use, you receive a confirmation message; click Yes.

Using a template to create a document
To use a template to create a document:
1) From the main menu, choose File > New > Templates andDocuments. The Templates and Documents dialog opens. (SeeFigure 8.)2) In the box on the left, click the Templates icon if it is not alreadyselected. A list of template folders appears in the center box.
3) Double-click the folder that contains the template that you want
to use. A list of all the templates contained in that folder appears
in the center box.
Using a template to create a document

154) Select the template that you want to use. You can preview theselected template or view the template’s properties:•
To preview the template, click the Preview icon. A preview of
the template appears in the box on the right.
•
To view the template’s properties, click the Document
Properties icon. The template’s properties appear in the box
on the right.
5) Click Open. The Templates and Documents dialog closes and a
new document based on the selected template opens in OOo. You
can then edit and save the new document just as you would anyother document.

Figure 8: Templates and Documents window.

16

Using Styles and Templates

Creating a template
You can create your own templates in two ways: from a document, andusing a wizard.

Creating a template from a document
To create a template from a document:
1) Open a new or existing document of the type you want to makeinto a template (text document, spreadsheet, drawing,presentation).
2) Add the content and styles that you want.
3) From the main menu, choose File > Templates > Save. The
Templates dialog opens (see Figure 9).
4) In the New template field, type a name for the new template.
5) In the Categories list, click the category to which you want toassign the template. The category you choose has no effect on thetemplate itself; it is simply the folder in which you save thetemplate. Choosing an appropriate category makes it easier tofind the template when you want to use it. For example, you mightsave Impress templates under the Presentations category.
To learn more about template folders, see “Organizing templates”
on page 24.
6) Click OK to save the new template.

Figure 9: Saving a new template.
Any settings that can be added to or modified in a document can besaved in a template. For example, below are some of the settings(although not a full list) that can be included in a Writer document andthen saved as a template for later use:

Creating a template17• Printer settings: which printer, single sided / double sided, andpaper size, and so on• Styles to be used, including character, page, frame, numberingand paragraph styles• Format and settings regarding indexes, tables, bibliographies,
table of contents
Templates can also contain predefined text, saving you from having totype it every time you create a new document. For example, a letter
template may contain your name, address and salutation.
You can also save menu and toolbar customizations in templates; see
Chapter 14 (Customizing OpenOffice.org) for more information.

Creating a template using a wizard
You can use wizards to create templates for letters, faxes, agendas,
presentations, and Web pages.
For example, the Fax Wizard guides you through the following choices:• Type of fax (business or personal)• Document elements like the date, subject line (business fax),

salutation, and complementary close• Options for sender and recipient information (business fax)
• Text to include in the footer (business fax)
To create a template using a wizard:
1) From the main menu, choose File > Wizards > [type of template
required].

Figure 10. Creating a template using a wizard

18

Using Styles and Templates

2) Follow the instructions on the pages of the wizard. This process isslightly different for each type of template, but the format is very
similar.
3) In the last section of the wizard, you can specify the name andlocation for saving the template. The default location is your user
templates directory, but you can choose a different location if you
prefer.
4) Finally, you have the option of creating a new document from yourtemplate immediately, or manually changing the template. For
future documents, you can re-use the template created by the
wizard, just as you would use any other template.

Editing a template
You can edit a template’s styles and content, and then, if you wish, you
can reapply the template’s styles to documents that were created fromthat template. (Note that you can only reapply styles. You cannot
reapply content.)
To edit a template:1) From the main menu, choose File > Templates > Organize. The
Template Management dialog opens (see Figure 5).
2) In the box on the left, double-click the folder that contains the
template that you want to edit. A list of all the templates
contained in that folder appears underneath the folder name.
3) Select the template that you want to edit.
4) Click the Commands button and choose Edit from the dropdown menu.
5) Edit the template just as you would any other document. To saveyour changes, choose File > Save from the main menu.

Updating a document from a changed template
The next time you open a document that was created from the changed
template, the following message appears.

Figure 11. Update styles message
Editing a template

19

Click Yes to apply the template’s changed styles to the document. Click
No if you do not want to apply the template’s changed styles to the
document (but see Caution notice below).

CautionNote

If you choose No in the message box shown in Figure 11, thatmessage will not appear again the next time you open the
document after changing the template it is based on. You will not
get another chance to update the styles from the template,although you can use the macro given in the Note below to reenable this feature.
If you are using Writer, you can also use the Template Changer
extension (see page 23) to reactivate the template.
To re-enable updating from a template:1) Use Tools > Macros > Organize Macros >OpenOffice.org Basic. Select the document from the list,
click the +, and select Standard. If Standard has a + besideit, click that and select a module.
2) Name the macro. For example, you could call it
FixDocument. If the Edit button is active, click it. If the Edit
button is not active, click New, type a module name in the
pop-up dialog, and click OK.
3) In the Basic window, enter the following:
Sub FixDocV3' set UpdateFromTemplate
oDocSettings = ThisComponent.createInstance( _"com.sun.star.document.Settings" )oDocSettings.UpdateFromTemplate = True
End Sub 'FixDocV3
4) Click the Run BASIC icon, then close the Basic window.
5) Save the document.
Next time when you open this document you will have theupdate from template feature back.

20

Using Styles and Templates

Adding templates using the Extension
Manager
The Extension Manager provides an easy way to install collections oftemplates, graphics, macros, or other add-ins that have been“packaged” into files with a .OXT extension. See Chapter 14(Customizing OpenOffice.org) for more about the Extension Manager.
This Web page lists many of the available extensions:
http://extensions.services.openoffice.org/.
To install an extension, follow these steps:
1) Download an extension package and save it anywhere on yourcomputer.
2) In OOo, select Tools > Extension Manager from the menu bar.
In the Extension Manager dialog, click Add.
3) A file browser window opens. Find and select the package oftemplates you want to install and click Open.The package begins
installing. You may be asked to accept a license agreement.
4) When the package installation is complete, the templates areavailable for use through File > New > Templates andDocuments and the extension is listed in the Extension Manager.

Figure 12: Newly-added package of templates.

Adding templates using the Extension Manager

21

Setting a default template
If you create a document by choosing File > New > Text Document(or Spreadsheet, Presentation, or Drawing) from the main menu,
OOo creates the document from the Default template for that type of
document. You can, however, set a custom template to be the default.
You can reset the default later if you choose.

Setting a custom template as the default
You can set any template to be the default, as long as it is in one of thefolders displayed in the Template Management dialog.
To set a custom template as the default:
1) From the main menu, choose File > Templates > Organize. The
Template Management dialog opens.
2) In the box on the left, select the folder containing the templatethat you want to set as the default, then select the template.
3) Click the Commands button and choose Set As Default
Template from the drop-down menu.
The next time that you create a document by choosing File > New, thedocument will be created from this template.
Although many important settings can be changed in the Options
dialog (see Chapter 2), for example default fonts and page size, moreadvanced settings (such as page margins) can only be changed byreplacing the default template with a new one.

Resetting the default template
To re-enable OOo’s Default template for a document type as thedefault:1) In the Template Management dialog, click any folder in the box on
the left.
2) Click the Commands button and choose Reset Default
Template from the drop-down menu.
The next time that you create a document by choosing File > New, thedocument will be created from OOo’s Default template for that
document type.

22

Using Styles and TemplatesAssociating a document with a different
template
At times you might want to associate a document with a different
template, or perhaps you’re working with a document that did not startfrom a template.
One of the major advantages of using templates is the ease of updatingstyles in more than one document, as described on page 19. If you
update styles by loading a new set of styles from a different template(as described on page 14), the document has no association with thetemplate from which the styles were loaded—so you cannot use thismethod. What you need to do is associate the document with thedifferent template.
You can do this in two ways. In both cases, for best results the namesof styles should be the same in the existing document and the newtemplate. If they are not, you will need to use Search and Replace toreplace old styles with new ones. See Chapter 4 (Getting Started with
Writer) for more about replacing styles using Search and Replace.
Method 1
This method includes any graphics and wording (such as legal notices)that exists in the new template, as well as including styles. If you don’t
want this material, you need to delete it.
1) Use File > New > Templates and Documents. Choose thetemplate you want. If the template has unwanted text or graphics
in it, delete them.
2) Open the document you want to change. (It opens in a new
window.) Press Control+A to select everything in the document.
Paste into the blank document created in step 1.
3) Update the table of contents, if there is one. Save the file.
Method 2 (Writer only)This method does not include any graphics or text from the newtemplate; it simply includes styles from the new template andestablishes an association between the template and the document.
1) Download the Template Changer extension fromhttp://extensions.services.openoffice.org/ and install it as
described on page 21.
2) Close and reopen OpenOffice.org. Now the File > Templatesmenu has two new choices in Writer: Assign Template (current

Associating a document with a different template23

document) and Assign Template (folder). In Calc, Impress, andDraw, only the Assign Template (folder) choice is available.
3) Open the document whose template you want to change. Choose
File > Templates > Assign Template (current document).
4) In the Select Template window, find and select the required
template and click Open.
5) Save the document. If you now look in File > Properties, you will
see the new template listed at the bottom of the General page.

Organizing templates
OOo can only use templates that are in OOo template folders. You cancreate new OOo template folders and use them to organize yourtemplates, and import templates into those folders. For example, you
might have one template folder for report templates and another forletter templates. You can also export templates.
To begin, choose File > Templates > Organize from the main menu.
The Template Management dialog opens.
Note

All the actions made by the Commands button in the Template
Management dialog can be made as well by right-clicking on
the templates or the folders.

Creating a template folder
To create a template folder:1) In the Template Management dialog, click any folder.
2) Click the Commands button and choose New from the dropdown menu. A new folder called Untitled appears.
3) Type a name for the new folder, and then press Enter. OOo saves
the folder with the name that you entered.

Deleting a template folder
You cannot delete template folders supplied with OOo or installedusing the Extension Manager; you can only delete template folders thatyou have created.
To delete a template folder:1) In the Template Management dialog, select the folder that you
want to delete.
24

Using Styles and Templates2) Click the Commands button and choose Delete from the dropdown menu. A message box appears and asks you to confirm thedeletion. Click Yes.

Moving a template
To move a template from one template folder to another template
folder:1) In the Template Management dialog, double-click the folder that
contains the template you want to move. A list of the templates
contained in that folder appears underneath the folder name.
2) Click the template that you want to move and drag it to thedesired folder. If you do not have the authority to delete templates
from the source folder, this action copies the template instead ofmoving it.

Deleting a template
You cannot delete templates supplied with OOo or installed using the
Extension Manager; you can only delete templates that you havecreated or imported.
To delete a template:1) In the Template Management dialog, double-click the folder that
contains the template you want to delete. A list of the templates
contained in that folder appears underneath the folder name.
2) Click the template that you want to delete.
3) Click the Commands button and choose Delete from the dropdown menu. A message box appears and asks you to confirm thedeletion. Click Yes.

Importing a template
If the template that you want to use is in a different location, you must
import it into an OOo template folder.
To import a template into a template folder:1) In the Template Management dialog, select the folder into which
you want to import the template.
2) Click the Commands button and choose Import Template fromthe drop-down menu. A standard file browser window opens.

Organizing templates253) Find and select the template that you want to import and click
Open. The file browser window closes and the template appears
in the selected folder.
4) If you want, type a new name for the template, and then press
Enter.

Exporting a template
To export a template from a template folder to another location:1) In the Template Management dialog, double-click the folder that
contains the template you want to export. A list of the templates
contained in that folder appears underneath the folder name.
2) Click the template that you want to export.
3) Click the Commands button and choose Export Template fromthe drop-down menu. The Save As window opens.
4) Find the folder into which you want to export the template andclick Save.

Examples of style use
The following examples of common use of page and paragraph styles
are taken from Writer. There are many other ways to use styles; see
the guides for the various components for details.

Defining a different first page for a document
Many documents, such as letters and reports, have a first page that isdifferent from the other pages in the document. For example, the firstpage of a letterhead typically has a different header, or the first pageof a report might have no header or footer, while the other pages do.
With OOo, you can define the page style for the first page and specify
the style for the following pages to be applied automatically.
As an example, we can use the First Page and Default page styles thatcome with OOo. Figure 13 shows what we want to happen: the firstpage is to be followed by the default page, and all the following pages
are to be in the Default page style. Details are in Chapter 4(Formatting Pages) in the Writer Guide.

26

Using Styles and TemplatesFigure 13: Flow of page styles

Dividing a document into chapters
In a similar way, you can divide a document into chapters. Eachchapter might start with the First Page style, with the following pages
using the Default page style, as above. At the end of the chapter, insert
a manual page break and specify the next page to have the First Page
style to start the next chapter, as shown in Figure 14.

Figure 14: Dividing a document into chapters using page styles

Changing page orientation within a document
A Writer document can contain pages in more than one orientation. A
common scenario is to have a landscape page in the middle of adocument, whereas the other pages are in a portrait orientation. Thiscan also be done with page breaks and page styles.

Different headers on right and left pages
Page styles can be set up to have the facing left and right pages
mirrored or only right (first pages of chapters are often defined to beright-page only) or only left. When you insert a header on a page style
set up for mirrored pages or right-and-left pages, you can have thecontents of the header be the same on all pages or be different on theright and left pages. For example, you can put the page number on theleft-hand edge of the left pages and on the right-hand edge of the rightpages, put the document title on the right-hand page only, or makeother changes.

Examples of style use

27

Controlling page breaks automatically
Writer automatically flows text from one page to the next. If you do not
like the default settings, you can change them. For example, you canrequire a paragraph to start on a new page or column and specify thestyle of the new page. A typical use is for chapter titles to always starton a new right-hand (odd-numbered) page.

Compiling an automatic table of contents
To compile an automatic table of contents, first apply styles to theheadings you want to appear in the contents list, then use Tools >Outline Numbering to tell Writer which styles go with which level inthe table of contents. See Chapter 4 for more information.

Defining a sequence of styles
You can set up one paragraph style so that when you press Enter at theend of that paragraph, the following paragraph automatically has thestyle you wish applied to it. For example, you could define a Heading 1
paragraph to be followed by a Text Body paragraph. A more complex
example would be: Title followed by Author followed by Abstract
followed by Heading 1 followed by Text Body. By setting up thesesequences, you can avoid manually applying styles in most cases.

28

Using Styles and Templates