Editing templates

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 from that 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.
  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. Click the template that you want to edit.
  4. Click the Commands button and choose Edit from the drop-down menu.
  5. Edit the template just as you would any other document. To save your changes, choose File > Save from the main menu.

Updating a document when its template is changed

The next time you open a document that was created from the changed template, a message appears asking if you want to update the document’s styles from the template.

Click Yes to apply the template’s changed styles to the document, or click No if you do not want to apply the template’s changed styles to the document. Whichever option you choose, the message box closes and the document opens in Writer.

Caution
If you choose No in the message box, that message will not appear again the next time you open the document. You will not get another chance to update the styles from the template, although you can use a macro (described in the Writer Guide) to re-enable this feature.

Using predefined templates

Several collections of templates are available as extensions. See Customizing Writer for information about using the Extension Manager to install templates. After installation, the templates are available like any others in the Templates and Documents window. They are usually in separate folders.

This Web page lists many of the available extensions.

Changing to a different template

At times you might want to change the template associates with a document, or perhaps you’re working with a document that did not start from a template.

One of the major advantages of using templates is the ease of updating styles in more than one document. If you update styles by copying a new set of styles from a different template (a method not covered in this book), the document has no association with the template from which the styles were loaded. What you need to do is associate the document with the different template.

You can do this in two ways. In both cases, for best results the names of styles should be the same in the existing document and the new template. If they are not, you will need to use Search and Replace to replace old styles with new ones. See Finding and replacing text and formatting 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 the template 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

This method does not include any graphics or text from the new template; it simply includes styles from the new template and establishes an association between the template and the document.

  1. Download the Template Changer extension from http://extensions.services.openoffice.org/ and install it as described here.
  2. Close and reopen OpenOffice.org. Now the File > Templates menu has two new choices: Assign Template (current document) and Assign Template (folder).
  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 tab.

<< Previous section | Next section >>


This book is licensed under the terms of the Creative Commons Attribution License, version 3.0.

Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkedin

Categories

Archives