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:
- Open the document you created, if it’s not already open in Writer.
- From the main menu, choose File > Templates > Save. The Templates dialog opens.
- In the New template field, type a name for the new template.
- 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.)
- Click OK to save the 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:
- Open the document that contains settings you want to use as the defaults.
- From the main menu, choose File > Templates > Organize. The Template Management window opens.
- In the box on the left, double-click the folder that contains the template that you want to set as the default.
- Click the template that you want to set as the default.
- Click the Commands button.
- 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.
Creating a document from a template
- From the main menu, choose File > New > Templates and Documents. The Templates and Documents dialog opens.
- 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.
- 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.
- 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.
This book is licensed under the terms of the Creative Commons Attribution License, version 3.0.