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:
- From the main menu, choose File > Templates > Organize. The Template Management dialog opens.
- 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.
- Click the template that you want to edit.
- Click the Commands button and choose Edit from the drop-down menu.
- 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.
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.
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.
- Use File > New > Templates and Documents. Choose the template you want. If the template has unwanted text or graphics in it, delete them.
- 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.
- Update the table of contents, if there is one. Save the file.
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.
- Download the Template Changer extension from http://extensions.services.openoffice.org/ and install it as described here.
- Close and reopen OpenOffice.org. Now the File > Templates menu has two new choices: Assign Template (current document) and Assign Template (folder).
- Open the document whose template you want to change. Choose File > Templates > Assign Template (current document).
- In the Select Template window, find and select the required template and click Open.
- Save the document. If you now look in File > Properties, you will see the new template listed at the bottom of the General tab.
This book is licensed under the terms of the Creative Commons Attribution License, version 3.0.