Document Templates in Writer

    From The Document Foundation Wiki
    Other languages:

    This page is in work!

    My new Letter

    Foreword

    This video shows how to create and use ″Document Templates″ in Writer under LibreOffice and links to this page here, which provides further information and details.

    It is based on the "Writer Manual - Chapter 10 - Using Document Templates"
    ( English documentation | ( Onlinehelp: Manage Templates ).

    Link to the Video

    Link to the Video (in German [DE]):

    Dokumentvorlagen in Writer - LibrOffice

    What is a Document Template?

    A Document Template is a sample file that is used to create new documents with.

    The great advantage of Document Templates is that once they are saved as OTT files, they cannot be easily overwritten.

    When a Document Template (OTT) is opened in Writer via File ▸ New ▸ Templates…, a copy of it automatically becomes the document (ODT).

    In the simplest case, when you open Writer, the Default Template (usually as a white sheet) is always automatically added to the document and displayed as "Untitled 1".

    Thus the Default Template cannot be overwritten when saving, but the new document is saved as an ODT file by default when saving.

    Use a Document Template to create a document

    Templates dialog

    To use Document Templates, it must be stored as such in a LibreOffice Categorie (a Template folder).

    To use a Document Template to create a document, do the following:

    Open Writer.

    Choose File ▸ New ▸ Templates… from the menu ( Ctrl + ⇧ Shift + N ).

    In the "Templates" dialog that opens, you will see a selection for "Filter" at the top.

    Here you can select:

    • All Applications
    • Text Documents
    • Spreadsheets
    • Presentations
    • Drawings

    Select the "Text Documents" Filter.

    In addition to the selection for Filters, you can still narrow down by Category.

    The Templates available in each case are displayed.

    At the bottom left of the dialog you can choose between "Thumbnail view" or "List view".

    Select the "My Templates" Category.

    The included Document Templates will be displayed.

    Click the Template and then the Open button.

    The "Templates" dialog closes and a new document based on the selected Document Template opens.

    You can now edit the new document and save it with a desired name, just as you are used to doing with any other document.

    The Document Template remains unchanged.

    Note pin.svg

    Note:
    If there are no Document Templates in the Category "My Templates", you can create a Document Template and save it there. See below.

    Create a Document Template from a document

    Custom Document Templates can be created from an existing document.

    Open an existing document 7503DE DM Dateidarstellung.png that you want to set up as a Document Template.

    Add content and formatting as needed.

    Choose File ▸ Templates ▸ Save as Template… from the Menu.

    The "Save as Template" dialog opens.

    Enter a Template name, in the case of "Enter Template name:" "Vorlage_Betriebsferien".

    And choose the Category where you want to save the new Document Template.

    Click the Save button.

    Writer saves the new Document Template and the dialog closes.

    Creating a Document Template with the wizard

    Document templates can also be created using wizards.

    A wizard creates a document template that you can use to create multiple documents with the same layout and settings.

    You can use LibreOffice wizards to create different types of document templates in Writer
    - letter, fax or agenda.

    For the exercise, select the File ▸ Wizards ▸ Agenda… menu.

    Follow the instructions of the wizard in the dialog.

    Set the "Page Design".

    Select the "General Information".

    Select the "Headings to Include".

    Specify the desired "Names".

    Set the agenda items "Agenda Items".

    Select the file path and enter a template name "Name and Location".

    Klick on the Finish button.

    The "Save as" dialog appears.

    Select the path where you want to save your new Document Template.

    Click on the Save button.

    The new Template is opened and can be edited as desired.

    If necessary, save it under a different name.

    Afterwards you have the possibility to immediately create a new document based on the Document Template you have just saved or to derive as many documents as you like from it.

    The document that is now open can also be edited as desired and then saved.

    Edit a Document Template

    Select File ▸ Templates ▸ Manage Templates from the Menu.

    The "Templates" dialog is displayed.

    As an example, set the filter "Text Documents" and the category "My Templates".

    However, you can set any filter and the desired Category and select a Document Template.

    Select the Category "My Templates" and then click on "Brief Max Mustermann", for example.

    The selected Template is opened as a document in Writer.

    You can now edit the document as you wish and then save it again as a Template.

    Set a Default Document Template

    As soon as you open Writer normally, the Default Template is opened as a document, this is usually a blank white page.

    Alternatively, use the menu File ▸ New ▸ Text Document.

    However, one can set another Document Template as default as long as it is saved in the "Document Templates" dialog.

    If necessary, you can also switch back to the old Default Template.

    If you want to use a Document Template that is not yet included in the "Templates" dialog, it must first be saved there.

    It often happens that someone does not like the font of the previous Default Template, for example.

    To create a new Default Template, open Writer with the existing empty document.

    This sounds a bit strange, but select the empty document with menu Edit ▸ Select All.

    Double-click on the Paragraph Style "Text Body" to assign it to the document (double-click on the Paragraph Style "Text Body").

    Right-click on the "Text Body" Paragraph Style and choose Modify….

    For the new Document Template, change the font to "Noto Sans", for example, and click OK.

    You will now set this document as the default.

    Choose File ▸ Templates ▸ Save as Template… from the menu.

    In the "Save as Template" dialog, enter a name, e.g. "Default Noto Sans" and select a "Category".

    Check □ Set as default template and then click the Save button.

    The next time you open Writer or choose File ▸ New ▸ Text Document from the menu, a document will be created based on the Document Template you just set as the default.

    Manage Document Templates

    Note pin.svg

    Note:
    Writer can manage only Document Templates that are stored in Categories (so Template folders).

    Create a new category

    Categories are folders in the file system.

    Choose File ▸ Templates ▸ Manage Templates from the menu.

    The "Document Templates" dialog will open.

    In the dialog click on the Manage button.

    Select New Category.

    The "New Category" dialog will open, there you can enter the category name in the "Enter of new category name:", e.g. "Letter Templates".

    Click on OK.

    This will save the Category.

    Click Close.

    Default Document Template Path

    Normally this directory is provided for the user-defined Document Templates when LibreOffice is delivered:

    C:\Users\USERNAME\AppData\Roaming\LibreOffice\4\user\template (Window)

    The directory is by default a hidden directory and must first be made visible.

    To do this, enter the following in the path bar of your file explorer: %APPDATA%.

    In LibreOffice you can also define the file path for your Document Templates yourself.

    Choose Tools ▸ Options from the menu and click on LibreOffice ▸ Paths and then on "Templates" in the "Options - LibreOffice - Paths" dialog and then on the Edit button.

    Specify the desired File path where you want to manage your Document Templates.

    Delete a Category

    Choose File ▸ Templates ▸ Manage Templates from the menu.

    The "Templates" dialog will open.

    In the dialog, select the Category to delete.

    Note pin.svg

    Note:
    You can delete only categories that were created custom.

    Click on the Manage button and select Delete Category.

    In the "Do you want to delete the selected category?" dialog you can confirm with Yes to delete or No to cancel.

    Click Yes.

    The previously selected Category will be deleted.

    Click Close.

    Move a Document Template

    Template context menu
    Select Category (Move) dialog

    Choose File ▸ Templates ▸ Manage Templates from the menu.

    The "Templates" dialog will open.

    In the "Templates" dialog, select the Category that contains the Document Template to be moved.

    The Document Templates available there will be displayed.

    Right-click the Document Template you want to move.

    Click Move from the context menu.

    In the "Select Category" dialog that opens, you can select any Categories to move to.

    Alternatively, you can or Create a New Category by entering a name in this field.

    The moved Document Template is now in the Category you selected or created.

    Import a Document template

    Choose File ▸ Templates ▸ Manage Templates... from the menu ( Ctrl + ⇧ Shift + N ).

    The "Templates" dialog opens.

    Select a category to import to.

    Click the Manage button.

    Choose Import.

    The "Open" dialog will open.

    Select the desired Document template from your directory.

    Click on the Open button.

    Click the Close button.

    Further Informations

    Letter Max Mustermann

    All Files in German [DE]:

    Letter Max Mustermann - Border visible using tables.
    Letter Max Mustermann - Border not visible using tables.

    According to DIN 5008

    Recommended for use

    Sample letter according to DIN 5008; second side different.

    Work files

    Lieferschein.odt
    Betriebsferien - unformatiert.odt
    Betriebsferien - formatiert.odt

    Related topics

    Professional text composition with Writer

    Styles in Writer

    Inheritance in paragraph styles in Writer

    Character Styles in Writer

    Business letter according to DIN 5008

    Document template Letter in Writer 52

    Documentation / Manuals

    Here you will find the Documentation / Manuals:

    Documentation / Manuals

    Any questions?

    For questions on this topic go to:

    Ask.LibreOffice

    Get Involved

    Join us today and help us to make it even better!

    Get Involved

    LibreOffice is Free Software and is made available free of charge.

    Your donation, which is purely optional, supports our worldwide community.

    If you like the software, please consider a Donation.