Using templates

What are templates?

A template is a model that you use to create other documents. For example, you can create a template for business reports that has your company’s logo on the first page. New documents created from this template 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 Writer documents are based on templates. If you do not specify a template when you start a new document, the document is based on the default template for text documents. If you have not specified a default template, Writer uses the blank template for text documents that is installed with OpenOffice.org.

Creating a template

Previous chapters of this book described how to set up styles, headings, and a sequence of pages in a document. You could simply use this document for your book, but it’s probably worth spending a few minutes to save the document as a template (not just an ordinary file), in case you want to use it as the basis for another book.

To create a template from the document:

  1. Open the document you created, if it’s not already open in Writer.
  2. From the main menu, choose File > Templates > Save. The Templates dialog opens.
  3. In the New template field, type a name for the new template.
  4. In the Categories list box, click the category to which you want to assign the template. (The category is simply the template folder in which you want to save the template. For example, to save the template in the “My Templates” folder, click the My Templates category.)
  5. Click OK to save the new template.
Saving a new template

Saving a new template

Setting a default template

You probably won’t want to have your book template be the default template, but you may want to set up a default template that is different from the one supplied with Writer (for example, with different fonts or page margins). Here’s how:

  1. Open the document that contains settings you want to use as the defaults.
  2. From the main menu, choose File > Templates > Organize. The Template Management window opens.
  3. In the box on the left, double-click the folder that contains the template that you want to set as the default.
  4. Click the template that you want to set as the default.

  5. Click the Commands button.
  6. From the drop-down menu, choose Set as Default Template. The next time that you create a document by choosing File > New > Text Document, the document will be created from this template.
Template management dialog

Template management dialog

Creating a document from a template

  1. From the main menu, choose File > New > Templates and Documents. The Templates and Documents dialog opens.
  2. In the box on the left, click the Templates icon if it is not already selected. 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.
  4. Click the template that you want to use. You can preview the selected template or view the template’s properties:
    • To preview the template, click the Preview icon. (For the location of the Preview icon, see Figure 1.) 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 Writer. You can then edit and save the new document just as you would any other document.
Templates and Documents window

Templates and Documents window

<< 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