DE/Doku/Allgemein/03 StylesTemplates/Old

Chapter 3 Using Styles and Templates

Grundlagen, Vorlagenkonzept
Das Vorlagenkonzept von LibreOffice unterscheidet Dokumentvorlagen und Formatvorlagen.

Was ist eine Dokumentvorlage?
Eine Dokumentvorlage ist eine Art Muster oder Modell, aus dem neue Dokumente erzeugt werden können, die dieser Vorlage entsprechen. Sie können zum Beispiel eine Vorlage für Geschäftsberichte anlegen, auf der das Logo Ihrer Firma auf der ersten Seite prangt. Wenn Sie aus dieser Vorlage neue Dokumente erzeugen, dann werden diese Dokumente entsprechend das Logo auf der ersten Seite haben.

Dokumentvorlagen können alle Elemente enthalten, die ein normales Dokument auch enthält, wie Texte, Grafiken, Formatvorlagen (siehe unten). Es können sogar spezifische Einstellungen hinterlegt werden wie Masseinheiten, Sprache, der bevorzugte Drucker, oder benutzerspezifische Werkzeugleisten- oder Menüeinstellungen.

Alle Dokumente in LibreOffice basieren auf Dokumentvorlagen. Vorlagen können für alle Dokumenttypen angelegt werden, also für Texte, Kalkulationstabellen, Zeichnungen oder Präsentationen. Wenn ein Dokument nicht bewußt aus einer Vorlage erzeugt wurde, verwendet LibreOffice eine Standard-Dokumentvorlage (s.u) für den jeweiligen Dokumenttyp. Falls sie nicht selbst eine Standard-Dokumentvorlage definiert haben, verwendet LibreOffice eine vorinstallierte "leere" Dokumentvorlage. Näheres siehe Kapitel "Eine Standard-Dokumentvorlage festlegen.

Was sind Formatvorlagen?
Eine Formatvorlage enthält eine Reihe von Formatierungsanweisungen für bestimmte Strukturelemente eines Dokuments wie Zeichen, Absätze, Seiten, Rahmen usw. Ändert man diese Formatierungsmerkmale in der Formatvorlage, ändern sich dadurch die Formatierungen aller Elemente, denen diese Formatvorlage zugeordnet ist. Dadurch kann man sehr schnell etwa die Zeichengröße für Überschriften im gesamten Dokument ändern.

Um mit Formatvorlagen zu arbeiten, ist es wichtig, das Konzept wirklich zu verstehen.

Üblicher Weise formatieren Anfänger einen Text, sagen wir, einen Brief, indem sie etwa fett darzustellende Worte markieren und mit dem Attribut "fett" versehen. Dadurch wird das physische Formatierungsmermal "fett" einem oder mehreren Elementen (hier etwa bestimmten Worten des Briefs) direkt zugewiesen. So können auch Schriftart, Zeichengröße und diverse andere Formatierungsmermkale direkt zugewiesen werden.

Das ist sicher die schnellste Möglichkeit bei kurzen Texten.

Sobald die Texte aber anspruchsvoller werden, über mehrere Seiten gehen, unterschiedlich formatierte Elemente aufweisen - und vor allem, wenn der selbe Elementtyp mehrfach im Text auftaucht (etwa, wenn ein Artikel 12 Überschriften und 35 Unterüberschriften enthält), sollten Sie auf das Formatvorlagen-Konzept zurückgreifen. Ganz einfach: Es lohnt sich.

Formatvorlagen sind im Gegensatz zu direkten Formatierungen keine phyischen Formatierungen, sondern logische. Was heisst das? Nun, im Gegensatz zu physischen Merkmalen (etwa "Times Roman, 14 Punkt fett") bekommt die Formatvorlage den Namen "Überschrift". Diese Formatvorlage kann nun allen Überschriften zugewiesen werden. Wenn Sie nun der Formatvorlage die Merkmale "Times Roman, 14 Punkt fett" zuweisen, dann erhalten alle Textelemente, die mit dieser Formatvorlage verbunden sind, diese Formatierung.

Formatvorlagen helfen so, Dokumente klarer und konsistenter zu formatieren, und Änderungen werden viel einfacher durchführbar. Denken Sie nur an die 47 Überschriften im obigen Beispiel - bei direkter Formatierung muss die Schriftgröße an 47 Stellen geändert werden, bei Nutzung zweier Formatvorlage nur an zwei Stellen. Außerdem ist dadurch viel besser sichergestellt, dass die Formatierungsänderung überall erfolgt, und keine vergessen wird.

Es kommen noch ganz andere Vorteile hinzu: Bestimmte Funktionen bauen auf Formatvorlagen auf, auch wenn das nicht auf den ersten Blick erkennbar ist. Zum Beispiel kann Writer ein Inhaltsverzeichnis halbautomatisch erstellen - bei Verwendung von Formatvorlagen für die Überschriften geht das auf Knopfdruck. Weitere Anwendungen siehe Abschnitt.

LibreOffice unterstützt folgende Formatvorlagentypen:


 * Seitenvorlagen enthalten Seitenränder, Kopf- und Fusszeilen, Umrandungen und Hintergründe. In Calc wird auch die Druckreihenfolge für Tabellenblätter in der Seitenvorlage festgelegt.
 * Absatzvorlagen für sämtliche Aspekte, die das Erscheinungsbild von Absätzen festlegen, wie Ausrichtung, Einrückung, Tabulatoren, Zeilenabstand, Ränder, und können auch Zeichenformatierungen enthalten.
 * Zeichenvorlagen betreffen einzelne Zeichen wie Schriftart und -größe, Schriftauszeichnungen wie fett oder kursiv. Und auch die Sprache ist ein zeichenbezogenes Merkmal! So können in einem Dokument mit Texten in unterschiedlichen Sprachen alle Worte (und eben auch Einzelbuchstaben) mit dem passenden Rechtschreibprogramm überprüft werden.
 * Rahmenvorlagen werden zur Formatierung von Bild- und Textrahmen benutzt, einschließlich Umbruchsverhalten, Umrandungen, Hintergründen und Spalten.
 * Nummerieriungsvorlagen enthalten Ausrichtung, Nummerierungs- und Bullet-Zeichen sowie Schriftart für nummerierte Listen
 * Zellvorlagen enthalten Schriftart, Ausrichtung, Umrandung, Hintergrund, Zahlenformat (also etwa Währung, Datum, Exponentialzahl usw.) sowie Zellschutz.
 * Grafikobjektvorlagen in Zeichnungen und Präsentationen umfassen die Formatierungsmerkmale von Linien, Flächen, Schattierungen, Transparenz, Zeichensatz, Verbindern, Dimensionierung und mehr.
 * Präsentationsvorlagen umfassen Schriftart, Einrückungen, Abstände, Ausrichtung und Tabulatoren

Die unterschiedlichen Formatvorlagentypen sind je nach Programmkomponente verfügbar, siehe Tabelle 1.

LibreOffice wird mit vielen voreingestellten Formatvorlagen ausgeliefert. Sie können diese so nutzen, wie sie sind, oder sie verändern oder eigene Vorlagen erstellen, wie weiter unten beschrieben.

Tabelle 1: Verfügbarkeit von Formatvorlagen in unterschiedlichen LibreOffice-Komponenten

Applying styles
LibreOffice provides several ways for you to select styles to apply.

Using the Styles and Formatting window

 * 1) Click the Styles and Formatting icon [[File:]] located at the left-hand end of the object bar, or click, or press . The Styles and Formatting window shows the types of styles available for the LibreOffice component you are using. Figure 1 shows the window for Writer, with Page Styles visible.

You can move this window to a convenient position on the screen or dock it to an edge (hold down the key and drag it by the title bar to where you want it docked).


 * 1) Click on one of the icons at the top left of the Styles and Formatting window to display a list of styles in a particular category.
 * 2) To apply an existing style (except for character styles), position the insertion point in the paragraph, frame, or page, and then double-click on the name of the style in one of these lists. To apply a character style, select the characters first.

File:de-doc-gs303-1.png Figure 1: The Styles and Formatting window for Writer, showing paragraph styles]]

Using Fill Format Mode
Use Fill Format to apply a style to many different areas quickly without having to go back to the Styles and Formatting window and double-click every time. This method is quite useful when you need to format many scattered paragraphs, cells, or other items with the same style.


 * 1) Open the Styles and Formatting window and select the style you want to apply.
 * 2) Click the Fill Format Mode icon [[File:]].
 * 3) To apply a paragraph, page, or frame style, hover the mouse over the paragraph, page, or frame and click. To apply a character style, hold down the mouse button while selecting the characters, Clicking on a word applies the character style for that word. Repeat step 3 until you made all the changes for that style.
 * 4) To quit Fill Format mode, click the Fill Format Mode icon again or press the  key.

Using the Apply Style list
After you have used a style at least once in a document, the style name appears on the Apply Style list at the left-hand end of the Formatting toolbar, next to the Styles and Formatting icon.

You can open this list and click once on the style you want, or you can use the up and down arrow keys to move through the list and then press Enter to apply the highlighted style.

File:de-doc-gs303-2.png|thumb|center|none|500px|Figure 2: The Apply Style list on the Formatting toolbar

Using keyboard shortcuts
Some keyboard shortcuts for applying styles are predefined. For example, in Writer applies the Text body style,  applies the Heading 1 style, and  applies the Heading 2 style. You can modify these shortcuts and create your own; see Chapter 14, Customizing LibreOffice, for instructions.

Modifying styles
LibreOffice provides several ways to modify styles (both the predefined styles and custom styles that you create):


 * Changing a style using the Style dialog
 * Updating a style from a selection
 * Use AutoUpdate (paragraph and frame styles only)
 * Load or copy styles from another document or template

Changing a style using the Style dialog
To change an existing style using the Style dialog, right-click on the required style in the Styles and Formatting window and select Modify from the pop-up menu.

The Style dialog displayed depends on the type of style selected. Each style dialog has several tabs. See the chapters on styles in the user guides for details.

Updating a style from a selection
To update a style from a selection:


 * 1) Open the Styles and Formatting window.
 * 2) In the document, select an item that has the format you want to adopt as a style.


 * 1) In the Styles and Formatting window, select the style you want to update (single-click, not double-click), then long-click on the arrow next to the New Style from Selection icon and click on Update Style.

File:de-doc-gs303-3.png|thumb|center|none|500px|Figure 3: Updating a style from a selection

Using AutoUpdate
AutoUpdate applies to paragraph and frame styles only. If the AutoUpdate option is selected on the Organizer page of the Paragraph Style or Frame Style dialog, applying direct formatting to a paragraph or frame using this style in your document automatically updates the style itself.

Updating styles from a document or template
You can update styles by copying or loading them from a template or another document. See “Copying and moving styles” on page 10.

Creating new (custom) styles
You may want to add some new styles. You can do this in two ways:


 * Creating a new style using the Style dialog
 * Creating a new style from a selection

Creating a new style using the Style dialog
To create a new style using the Style dialog, right-click in the Styles and Formatting window and select New from the pop-up menu.

If you want your new style to be linked with an existing style, first select that style and then right-click and select New.

If you link styles, then when you change the base style (for example, by changing the font from Times to Helvetica), all the linked styles will change as well. Sometimes this is exactly what you want; other times you do not want the changes to apply to all the linked styles. It pays to plan ahead.

The dialogs and choices are the same for defining new styles and for modifying existing styles. See the chapters on styles in the user guides for details.

Creating a new style from a selection
You can create a new style by copying an existing manual format. This new style applies only to this document; it will not be saved in the template.


 * 1) Open the Styles and Formatting window and choose the type of style you want to create.
 * 2) In the document, select the item you want to save as a style.
 * 3) In the Styles and Formatting window, click on the New Style from Selection icon.
 * 4) In the Create Style dialog, type a name for the new style. The list shows the names of existing custom styles of the selected type. Click OK to save the new style.

File:de-doc-gs303-4.png Figure 4: Naming a new style created from a selection

Dragging and dropping to create a style
You can drag and drop a text selection into the Styles and Formatting window to create a new style.

Writer

Select some text and drag it to the Styles and Formatting window. If Paragraph Styles are active, the paragraph style will be added to the list. If Character Styles are active, the character style will be added to the list.

Calc

Drag a cell selection to the Styles and Formatting window to create cell styles.

Draw/Impress

Select and drag drawing objects to the Styles and Formatting window to create graphics styles.

Copying and moving styles
You can copy or move styles from one template or document into another template or document, in two ways:


 * Using the Template Management dialog
 * Loading styles from a template or document

Using the Template Management dialog
To copy or move styles using the Template Management dialog:


 * 1) Click '.
 * 2) In the Template Management dialog (Figure 5), set the lists at the bottom to either Templates or Documents, as needed. The default is Templates on the left and Documents on the right.


 * 1) Open the folders and find the templates from and to which you want to copy. Double-click on the name of the template or document, and then double-click the Styles icon to show the list of individual styles (Figure 6).
 * 2) To copy a style, hold down the  key and drag the name of the style from one list to the other.


 * 1) Repeat for each style you want to copy. If the receiving template or document has many styles, you may not see any change unless you scroll down in the list. When you are finished, click Close.

de-doc-gs303-5.png Figure 5: Choosing to copy styles from a document, not a template

de-doc-gs303-6.png Figure 6: Copying a style from one document to another

Loading styles from a template or document
You can copy styles by loading them from a template or another document:


 * 1) Open the document you want to copy styles into.
 * 2) In the Styles and Formatting window, long-click on the arrow next to the New Style from Selection icon, and then click on Load Styles (see Figure 3).
 * 3) On the Load Styles dialog (Figure 7), find and select the template you want to copy styles from.




 * 1) Select the categories of styles to be copied. Select Overwrite if you want the styles being copied to replace any styles of the same names in the document you are copying them into.
 * 2) Click OK to copy the styles. You will not see any change on screen.

Deleting styles
You cannot remove (delete) any of LibreOffice’s predefined styles from a document or template, even if they are not in use.

You can remove any user-defined (custom) styles; but before you do, you should make sure the styles are not in use. If an unwanted style is in use, you will want to replace it with a substitute style.

To delete unwanted styles, right-click on them (one at a time) in the Styles and Formatting window and click Delete on the pop-up menu.

If the style is in use, you receive a warning message.

If the style is not in use, you receive a confirmation message; click Yes to delete the style.

Using a template to create a document
To use a template to create a document:


 * 1) From the main menu, choose . 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) Select 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 [[File:]]. A preview of the template appears in the box on the right.
 * To view the template’s properties, click the Document Properties icon [[File:]]. The template’s properties appear in the box on the right.
 * To view the template’s properties, click the Document Properties icon [[File:]]. The template’s properties appear in the box on the right.


 * 1) Click Open. The Templates and Documents dialog closes and a new document based on the selected template opens in LibreOffice. You can then edit and save the new document just as you would any other document.

File:de-doc-gs303-8.png Figure 8: Templates and Documents window

Creating a template
You can create your own templates in two ways: from a document, and using a wizard.

Creating a template from a document
To create a template from a document:


 * 1) Open a new or existing document of the type you want to make into a template (text document, spreadsheet, drawing, presentation).
 * 2) Add the content and styles that you want.
 * 3) From the main menu, choose File → Templates → Save. The Templates dialog opens (see Figure 9).
 * 4) In the New template field, type a name for the new template.
 * 5) In the Categories list, click the category to which you want to assign the template. The category you choose has no effect on the template itself; it is simply the folder in which you save the template. Choosing an appropriate category makes it easier to find the template when you want to use it. For example, you might save Impress templates under the Presentations category.

To learn more about template folders, see “Organizing templates” on page 20.


 * 1) Click OK to save the new template.

File:de-doc-gs303-9.png Figure 9: Saving a new template]]

Any settings that can be added to or modified in a document can be saved in a template. For example, below are some of the settings (although not a full list) that can be included in a Writer document and then saved as a template for later use:


 * Printer settings: which printer, single sided / double sided, and paper size, and so on
 * Styles to be used, including character, page, frame, numbering and paragraph styles
 * Format and settings regarding indexes, tables, bibliographies, table of contents

Templates can also contain predefined text, saving you from having to type it every time you create a new document. For example, a letter template may contain your name, address and salutation.

You can also save menu and toolbar customizations in templates; see Chapter 14, Customizing LibreOffice, for more information.

Creating a template using a wizard
You can use wizards to create templates for letters, faxes, agendas, presentations, and Web pages.

For example, the Fax Wizard guides you through the following choices:


 * Type of fax (business or personal)
 * Document elements like the date, subject line (business fax), salutation, and complementary close
 * Options for sender and recipient information (business fax)
 * Text to include in the footer (business fax)

To create a template using a wizard:


 * 1) From the main menu, choose File → Wizards →  [ type of template required].




 * 1) Follow the instructions on the pages of the wizard. This process is slightly different for each type of template, but the format is very similar.
 * 2) In the last section of the wizard, you can specify the name and location for saving the template. The default location is your user templates directory, but you can choose a different location if you prefer.
 * 3) Finally, you have the option of creating a new document from your template immediately, or manually changing the template. For future documents, you can re-use the template created by the wizard, just as you would use any other template.

Editing a template
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 → Edit. A standard file browser window opens.
 * 2) Select the template that you want to edit.
 * 3) Edit the template just as you would any other document. To save your changes, choose File → Save from the main menu.

Updating a document from a changed template
The next time you open a document that was created from the changed template, the following message appears.



Click Update Styles to apply the template’s changed styles to the document. Click Keep Old Styles if you do not want to apply the template’s changed styles to the document (but see Caution notice below).

Adding templates using the Extension Manager
The Extension Manager provides an easy way to install collections of templates, graphics, macros, or other add-ins that have been “packaged” into files with a .OXT extension. See Chapter 14, Customizing LibreOffice, for more about the Extension Manager.

This Web page lists many of the available extensions: https://extensions.libreoffice.org/.

To install an extension, follow these steps:


 * 1) Download an extension package and save it anywhere on your computer.
 * 2) In LibreOffice, select Tools → Extension Manager from the menu bar. In the Extension Manager dialog, click Add.
 * 3) A file browser window opens. Find and select the package of templates you want to install and click Open. The package begins installing. You may be asked to accept a license agreement.
 * 4) When the package installation is complete, the templates are available for use through File → New → Templates and Documents and the extension is listed in the Extension Manager.

File:de-doc-gs303-12.png Figure 12: Newly-added package of templates]]

Eine Standard-Dokumentvorlage festlegen
Wenn Sie mittels Datei → Neu → Textdokument (bzw. Tabellendokument, Präsentation oder Zeichung) ein neues Dokument erstellen, erzeugt LibreOffice das Dokument aus einer Standard-Dokumentvorlage für diesen Dokumenttyp. Sie können auch festlegen, dass eine andere Dokumentvorlage, nämlich eine von Ihnen erstellte, als Standard-Vorlage genommen wird. Diese Festlegung kann jederzeit auch wieder rückgängig gemacht werden.

Setting a default template

If you create a document by choosing File → New → Text Document (or Spreadsheet, Presentation, or Drawing) from the main menu, LibreOffice creates the document from the Default template for that type of document. You can, however, set a custom template to be the default. You can reset the default later if you choose.

Eine selbst erstellte Dokumentvorlage als Standard setzen
Sie können jede Dokumentvorlage zur Standardvorlage erklären. Dazu muss sie in einem der Ordner aus dem Vorlagenverwaltungsdialog gespeichert sein.

Um eine selbst erstellte Vorlage als Standardvorlage zu definieren, gehen Sie wie folgt vor:
 * 1) Wählen Sie aus dem Hauptmenü Datei → Dokumentvorlagen → Verwalten. Der Dialog "Dokumentvorlagen verwalten" öffnet sich.
 * 2) Wählen Sie aus der linken Box den Ordner, der Ihre Vorlage enthält, markieren Sie dann die Vorlage.
 * 3) Klicken Sie auf die Schaltfläche Befehle und wählen Sie als Standard setzen aus der Auswahl.

Wenn Sie das nächste Mal ein Dokument mit Datei → Neu erzeugen, wird das Dokument aus der eingestellten Vorlage erzeugt.

Zwar können viele Einstellungen im Optionen-Dialog verändert werden (siehe Kapitel 2), wie zum Beispiel der voreingestellte Zeichensatz und die Papiergröße, können manche Einstellungen (wie die Seitenränder) nur geändert werden, indem Sie die Standard-Dokumentvorlage durch eine neue ersetzen.

Setting a custom template as the default

You can set any template to be the default, as long as it is in one of the folders displayed in the Template Management dialog.

To set a custom template as the default:


 * 1) From the main menu, choose File → Templates → Organize. The Template Management dialog opens.
 * 2) In the box on the left, select the folder containing the template that you want to set as the default, then select the template.
 * 3) Click the Commands button and choose Set As Default Template from the drop-down menu.

The next time that you create a document by choosing File → New, the document will be created from this template.

Although many important settings can be changed in the Options dialog (see Chapter 2), for example default fonts and page size, more advanced settings (such as page margins) can only be changed by replacing the default template with a new one.

Resetting the default template
To re-enable LibreOffice’s Default template for a document type as the default:


 * 1) In the Template Management dialog, click any folder in the box on the left.
 * 2) Click the Commands button and choose Reset Default Template from the drop-down menu.

The next time that you create a document by choosing File → New, the document will be created from LibreOffice’s Default template for that document type.

Associating a document with a different template
At times you might want to associate a document with a different template, or perhaps you are 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, as described on page 16. If you update styles by loading a new set of styles from a different template (as described on page 12), the document has no association with the template from which the styles were loaded—so you cannot use this method. 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 Chapter 4, Getting Started with Writer, 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 do not 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 (Writer only)

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 https://extensions.libreoffice.org/ and install it as described on page 17.
 * 2) Close and reopen LibreOffice. Now the File → Templates menu has two new choices in Writer: Assign Template (current document) and Assign Template (folder). In Calc, Impress, and Draw, only the Assign Template (folder) choice is available.
 * 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 page.

Organizing templates
LibreOffice can only use templates that are in LibreOffice template folders. You can create new LibreOffice template folders and use them to organize your templates. For example, you might have one template folder for report templates and another for letter templates. You can also import and export templates.

To begin, choose File → Templates → Organize from the main menu. The Template Management dialog opens.

Creating a template folder
To create a template folder:


 * 1) In the Template Management dialog, click any folder.
 * 2) Click the Commands button and choose New from the drop-down menu. A new folder called Untitled appears.
 * 3) Type a name for the new folder, and then press Enter. LibreOffice saves the folder with the name that you entered.

Deleting a template folder
You cannot delete template folders supplied with LibreOffice or installed using the Extension Manager; you can only delete template folders that you have created.

To delete a template folder that you have created:


 * 1) In the Template Management dialog, select the folder that you want to delete.
 * 2) Click the Commands button and choose Delete from the drop-down menu. A message box appears and asks you to confirm the deletion. Click Yes.

Moving a template
To move a template from one template folder to another template folder:


 * 1) In the Template Management dialog, double-click the folder that contains the template you want to move. A list of the templates contained in that folder appears underneath the folder name.
 * 2) Click the template that you want to move and drag it to the desired folder. If you do not have the authority to delete templates from the source folder, this action copies the template instead of moving it.

Deleting a template
You cannot delete templates supplied with LibreOffice or installed using the Extension Manager; you can only delete templates that you have created or imported.

To delete a template:


 * 1) In the Template Management dialog, double-click the folder that contains the template you want to delete. A list of the templates contained in that folder appears underneath the folder name.
 * 2) Click the template that you want to delete.
 * 3) Click the Commands button and choose Delete from the drop-down menu. A message box appears and asks you to confirm the deletion. Click Yes.

Importing a template
If the template that you want to use is in a different location, you must import it into an LibreOffice template folder.

To import a template into a template folder:


 * 1) In the Template Management dialog, select the folder into which you want to import the template.
 * 2) Click the Commands button and choose Import Template from the drop-down menu. A standard file browser window opens.
 * 3) Find and select the template that you want to import and click Open. The file browser window closes and the template appears in the selected folder.
 * 4) If you want, type a new name for the template, and then press Enter.

Exporting a template
To export a template from a template folder to another location:


 * 1) In the Template Management dialog, double-click the folder that contains the template you want to export. A list of the templates contained in that folder appears underneath the folder name.
 * 2) Click the template that you want to export.
 * 3) Click the Commands button and choose Export Template from the drop-down menu. The Save As window opens.
 * 4) Find the folder into which you want to export the template and click Save.

Examples of style use
The following examples of common use of page and paragraph styles are taken from Writer. There are many other ways to use styles; see the guides for the various components for details.

Defining a different first page for a document
Many documents, such as letters and reports, have a first page that is different from the other pages in the document. For example, the first page of a letterhead typically has a different header, or the first page of a report might have no header or footer, while the other pages do. With LibreOffice, you can define the page style for the first page and specify the style for the following pages to be applied automatically.

As an example, we can use the First Page and Default page styles that come with LibreOffice. Figure 13 shows what we want to happen: the first page is to be followed by the default page, and all the following pages are to be in the Default page style. Details are in Chapter 4, Formatting Pages, in the Writer Guide.

File:de-doc-gs303-13.png Figure 13: Flow of page styles]]

Dividing a document into chapters
In a similar way, you can divide a document into chapters. Each chapter might start with the First Page style, with the following pages using the Default page style, as above. At the end of the chapter, insert a manual page break and specify the next page to have the First Page style to start the next chapter, as shown in Figure 14.

File:de-doc-gs303-14.png Figure 14: Dividing a document into chapters using page styles]]

Changing page orientation within a document
A Writer document can contain pages in more than one orientation. A common scenario is to have a landscape page in the middle of a document, whereas the other pages are in a portrait orientation. This can also be done with page breaks and page styles.

Different headers on right and left pages
Page styles can be set up to have the facing left and right pages mirrored or only right (first pages of chapters are often defined to be right-page only) or only left. When you insert a header on a page style set up for mirrored pages or right-and-left pages, you can have the contents of the header be the same on all pages or be different on the right and left pages. For example, you can put the page number on the left-hand edge of the left pages and on the right-hand edge of the right pages, put the document title on the right-hand page only, or make other changes.

Controlling page breaks automatically
Writer automatically flows text from one page to the next. If you do not like the default settings, you can change them. For example, you can require a paragraph to start on a new page or column and specify the style of the new page. A typical use is for chapter titles to always start on a new right-hand (odd-numbered) page.

Compiling an automatic table of contents
To compile an automatic table of contents, first apply styles to the headings you want to appear in the contents list, then use Tools → Outline Numbering to tell Writer which styles go with which level in the table of contents. See Chapter 4 for more information.

Defining a sequence of styles
You can set up one paragraph style so that when you press Enter at the end of that paragraph, the following paragraph automatically has the style you wish applied to it. For example, you could define a Heading 1 paragraph to be followed by a Text Body paragraph. A more complex example would be: Title followed by Author followed by Abstract followed by Heading 1 followed by Text Body. By setting up these sequences, you can avoid manually applying styles in most cases.