LibreOffice Logo

Getting Started Guide 24.8

Chapter 4,
Working with Styles, Templates, and Hyperlinks

Using consistent formatting in documents

Copyright

This document is Copyright © 2024 by the LibreOffice Documentation Team. Contributors are listed below. This document maybe distributed and/or modified under the terms of either the GNU General Public License (https://www.gnu.org/licenses/gpl.html), version 3 or later, or the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), version 4.0 or later. All trademarks within this guide belong to their legitimate owners.

Contributors

Contributors for this edition:

Olivier Hallot, B Antonio Fernandez, Timothy Brennan Jr.

Contributors for previous editions:

Peter Schofield, Dave Barton, Felipe Viggiano, Jean Hollis Weber, Kees Kriek. Olivier Hallot, Paul Figueiredo, Skip Masonsmith, Steve Fanning

Feedback

Please direct any comments or suggestions about this document to the Documentation Team forum at https://community.documentfoundation.org/c/documentation/loguides/ (registration is required) or send an email to: loguides@community.documentfoundation.org.

Everything sent to a forum, including email addresses and any other personal information that is written in the message, is publicly archived and cannot be deleted. Emails sent to the forum are moderated.

Publication date and software version

Published August 2024. Based on LibreOffice 24.8 Community.
Other versions of LibreOffice may differ in appearance and functionality.

Using LibreOffice on macOS

Some keystrokes and menu items are different on macOS from those used in Windows and Linux. The table below gives some common substitutions used in this document. For a detailed list, see LibreOffice Help.

Windows or Linux

macOS equivalent

Effect

Tools > Options
menu selection

LibreOffice > Preferences

Access setup options

Right-click

Control+click, Ctrl+click, or right-click depending on computer setup

Open a context menu

Ctrl or Control

⌘ and/or Cmd or Command, depending on keyboard

Used with other keys

Alt

⌥ and/or Alt or Option depending on keyboard

Used with other keys

F11

+T

Open the Styles deck in the Sidebar

Introduction

To ensure formatting consistency in LibreOffice documents, users can control text and other elements by using templates, styles and direct formatting. Direct formatting is also known as manual formatting. Understanding how to format documents unlocks the power of LibreOffice.

Styles

A style in LibreOffice is a collection of formatting attributes that can be applied to text and other objects. If text or object shares a style in LibreOffice, then that text or object shares the chosen attributes of that style. For example, a paragraph style can include settings such as font type and size, indents, spacing between lines, alignment on a page, and so on.

All LibreOffice installations share a default set of styles that cannot be deleted, but can be modified to suit the user’s formatting requirements. Also, new styles can be created and these styles can be deleted.

Templates

A template is a document that allows users to generate new documents that has pre-existing contents and a set of specific formatting styles, graphics, tables, objects, and so on. Templates are used as a basis for creating several similar documents for company documents, or user guides. For example, define paragraph and character styles in a document, then save the document as a template. Then the command New > Templates… can be used to create a new document with the same look and feel of that template.

New documents created in LibreOffice use a default template that is hard coded into LibreOffice. This default template can be changed to suit personal or corporate requirements.

When LibreOffice is installed on a computer, a number of predefined templates are also installed, providing a starting point for different types of documents, such as business letters, presentations, or drawings.

Direct (or manual) formatting

Applies formatting directly, or manually, to selected text. For example, select a word, then click on a tool on the Formatting toolbar, the Sidebar, or use a keyboard shortcut to format the text as bold or italic. However, using direct formatting can produce documents with a mismatch of formatting attributes.

Styles

Working with styles

A style allows you to apply a set of common formatting elements to pages, text, frames, cells, graphic objects, and so on. Each style has a name such as “Body Text” and “Document Title.” Using styles can quickly change the format, or appearance, of selected elements.

If you do not use styles and manually format paragraphs, words, tables, page layouts, and other elements in documents, this can increase user workload and introduce format errors into a document. Styles provide consistency in documents. LibreOffice recommend the use of styles to reduce the workload and increase the accuracy of producing good documents with ease.

Since LibreOffice styles may work differently from other office software programs, some planning may be needed, but that effort will save time and effort over the longer term. Also, Writer relies on heading styles (or other styles if specified) when compiling a table of contents.

Manual formatting overrides any applied styles and once an element has been formatted manually, it cannot be modified by a style. To remove direct formatting, select the text, then right-click and select Clear Direct Formatting from the context menu. Alternatively, use the keyboard shortcut Ctrl+M (macOS ⌘+M) to clear direct formatting from selected text, or go to Format > Clear Direct Formatting on the Menu bar.

Style categories

See Table 1 on which style categories are available for each module. For more information, see the specific user guide for each LibreOffice module. All the styles are defined as:

Page styles

Controls margins, headers and footers, borders and backgrounds. In Calc, page styles also define the sequence for printing sheets.

Paragraph styles

Controls all the formatting elements of a paragraph, such as text alignment, tab stops, line spacing, and borders, and can include character formatting.

Character styles

Affects the formatting of text within a paragraph, such as the font and size of text, or modifies elements such as bold and italic.

Table styles

Apply predefined formats to tables and table elements in a text document.

Frame styles

Format graphic and text frames, including text wrap, borders, backgrounds, and columns.

List styles

Allows selection of format and positioning of numbers or bullets in lists.

Cell styles

Format cell data, such as fonts, alignment, borders, background, number formats (for example, currency, date, number), and cell protection.

Drawing styles

Format drawings and presentations, such as line, area, shadowing, transparency, font, connectors, dimensioning, and other attributes.

Presentation styles

Format font, indents, spacing, alignment, and tabs.

Table 1: Style categories available in LibreOffice modules

Style Category

Writer

Calc

Draw

Impress

Page

Yes

Yes

 

 

Paragraph

Yes

 

 

 

Character

Yes

 

 

 

Frame

Yes

 

 

 

List

Yes

 

 

 

Table

Yes

 

 

 

Cell

 

Yes

 

 

Presentation

 

 

 

Yes

Drawing

 

 

Yes

Yes

Style types

See Table 2 on which style types are available for each module. For more information on styles, see the user guide for that LibreOffice module. Generally, the LibreOffice style types are:

Hierarchical

Displays the styles in the selected category in a hierarchical list. To view the styles inside a sub‑level, click on the chevron > next to the style name.

All Styles

Displays all styles of the selected style category.

Hidden Styles

Displays the styles that have been hidden in the document. Hiding styles removes, but does not delete, selected styles from the list of displayed styles.

Applied Styles

Displays the styles of the selected category that have been applied in the current document.

Custom Styles

Displays all user-defined styles in the selected style category.

Automatic

Displays styles appropriate to the current context.

Text Styles

Displays formatting styles for text.

Chapter Styles

Displays formatting styles for headings.

List Styles

Displays formatting styles for ordered or unordered lists.

Index Styles

Displays formatting styles for indexes.

Special Styles

Displays formatting styles for headers, footers, footnotes, endnotes, tables, and captions.

HTML Styles

Displays a list of styles for HTML documents.

Conditional Styles

Displays the user-defined conditional styles.

Table 2: Style types available in LibreOffice modules

Style Type

Writer

Calc

Draw

Impress

Hierarchical

Yes

Yes

Yes

Yes

All Styles

Yes

Yes

Yes

Yes

Hidden Styles

Yes

Yes

Yes

Yes

Applied Styles

Yes

Yes

Yes

Yes

Custom Styles

Yes

Yes

Yes

Yes

Automatic

Yes

 

 

 

Text Styles

Yes

 

 

 

List Styles

Yes

 

 

 

Index Styles

Yes

 

 

 

Special Styles

Yes

 

 

 

HTML Styles

Yes

 

 

 

Conditional Styles

Yes

 

 

 

Applying styles

LibreOffice provides several ways to select and apply styles, as seen below:

Styles deck on Sidebar

The Styles deck allows you to view all available styles for a document (Figure 1). To access the deck, perform these steps:

  1. Open the Styles deck on the Sidebar using one of the following methods:

  1. To display a preview of styles in the Styles deck, select Show previews at the bottom of the Styles deck.

  2. To select a style category, click on one of the icons at the top of the Styles deck to display the styles available in the selected category. See “Style categoriesabove for more information on available style categories for each LibreOffice module.

  3. To select a style type, click on the drop-down list to open it and select the style type required. The style types available depends on which LibreOffice module is open and the type of document being edited. See “Style typesabove for more information on available style types for each LibreOffice module.

Figure 1: Styles deck on Sidebar — Writer

Styles deck on Sidebar — Writer

  1. To apply a style to an element, position the cursor in text, or select an object, in the document, then double click on the required style in the Styles deck on the Sidebar.

Spotlighting styles

LibreOffice Styles deck on the sidebar also provides a tool to spotlight paragraph and character styles as well as direct formatting present in the document. The Spotlight tool is handy to assist in housekeeping the document with respect to the styles in use and direct formatting. To enable the spotlight feature proceed as follow:

  1. Open the Styles deck on the Sidebar as indicated above.

  2. Mark the Spotlight checkbox at the bottom of the Styles deck (Figure 1).

Figure 2: Spotlighting paragraphs and characters styles.

Spotlighting paragraphs and characters styles.

Choose Format > Spotlight > Character Direct Formatting to activate the character direct formatting visual indicator.

Styles menu

The Styles menu is available in LibreOffice's Writer and Calc modules. It displays the default set of styles available in the Styles deck on the Sidebar (Figure 4 for Writer and Figure 3 for Calc). These styles are factory set and available in all LibreOffice installations.

  1. Locate the text or element where the style will be applied. If necessary, select it.

  2. Go to Styles on the Menu bar.

  3. Click on the style name to apply its attributes to the selected text, or element.

Figure 3: Style submenu in Calc

Style submenu in Calc

Figure 4: Styles submenu in Writer

Styles submenu in Writer

Applying styles with the context menu

Writer

This module’s context menu can apply styles to selected text. Right-click on text to bring up the context menu. Then select either Paragraph, Character, or List and choose the appropriate style from a sub‑context menu.

Calc

In this module, select cells, right-click to bring up the context menu, then select Styles to apply a style to those cells.

Formatting toolbar

Writer

If a paragraph style has been created and applied to text, the style name will appear in the Set Paragraph Style drop‑down list at the left-hand end of the Formatting toolbar.

  1. Click in a paragraph to select that style.

  2. Click on Set Paragraph Style on the Formatting toolbar to open the drop‑down list.

  3. Select the required paragraph style from the options available in the drop‑down list to apply it to the selected paragraph.

Enable the Formatting (Styles) toolbar in View – Toolbars to get the same style commands as the Styles menu for Writer.

Calc

After a style has been created in Calc and applied to one or more cells, the style name appears in the Apply Style drop‑down list at the left-hand end of the Formatting toolbar.

  1. Click in a cell to select it.

  2. Click on Apply Style on the Formatting toolbar to open the drop‑down list.

  3. Select the required cell style from the options available in the drop‑down list to apply it to the selected cell.

Fill Format Mode

If you need to apply a style to multiple elements in the Writer and Calc modules without using the Styles deck and double‑clicking, the Fill Format Mode is available.

  1. Open the Styles deck on the Sidebar and select the required style.

  2. Click on Fill Format Mode at the top of the Styles deck and the cursor changes shape to indicate Fill Format Mode.

  3. Position the cursor on the element where a style is going to be applied.

  4. Click and the style is applied to the selected element. To apply a character style, click and drag to select the characters, then release the cursor.

  5. Repeat step 4 until the style has been applied to all required elements.

  6. To quit Fill Format Mode, click on Fill Format Mode again, or press the Esc key.

Keyboard shortcuts

In Writer, keyboard shortcuts can apply paragraph styles to selected paragraphs and also allow users to perform some edits on styles, as shown in Figure 3.

Table 3: Paragraph style and style editing keyboard shortcuts

Style name & editing function

Windows & Linux

macOS

Body Text

Ctrl+0

+0

Heading 1

Ctrl+1

+1

Heading 2

Ctrl+2

+2

Heading 3

Ctrl+3

+3

No List

Ctrl+Shift+F12

+Shift+F12

Edit Style

Alt+P

+P

Update Selected Style

Ctrl+Shift+F11

+Shift+F11

New Style from Selection

Shift+F11

Shift+F11

Manage Styles

F11

F11

Creating new styles

Using a styles dialog

A style can be created with the Styles deck. For more information on creating styles, refer to the guide for that LibreOffice module.

  1. Open the Styles deck on the Sidebar.

  2. Click on the icon for the required style category at the top of the Styles deck to open the list of styles available in the style category.

  3. Right‑click on a style and select New from the context menu to open a style dialog applicable for the selected style category. Figure 6 shows an example of the Paragraph Styles dialog.

  4. Click on General to open the General page in the styles dialog.

  5. In Name, enter a name for the new style.

  6. For text documents paragraph styles only, select a style from the Next Style drop‑down list that will be available after you press Enter closing a paragraph.

  7. If necessary, in Inherit from, select a style from the drop‑down list that will be used for basic formatting of the new style in the document.

  8. In Category, select a style category from the drop‑down list that the new style will use. By default, Custom Styles is the selected category.

  9. Use the various options available on the other dialog pages to format the new style to the document requirements. If available, changes to a style can be checked in the preview box on the dialog page.

  10. When all formatting options have been carried out, click on OK to save the new style and close the dialog.

If a style has been selected in Inherit from on the dialog General page, any formatting changes to this style are also carried out on the new style that is created.

Creating new style from a selection

LibreOffice can use the format of selected text or a selected cell to create a new style. Styles created with this method are only available in the document it was created. Also, those styles will not be included in a template created from that document.

For more information on creating styles with this method, refer to the user guide for the appropriate LibreOffice module.

  1. Open the Styles deck on the Sidebar if it is not already open (Figure 5).

  2. Click on the icon for the required style category at the top of the Styles deck to open the list of styles in the style category.

  3. In the document, select the element to be used as a basis for a new style.

  4. Create the new style using one of the following steps to open the New Style from Selection dialog:

  1. In the New Style from Selection dialog, enter a name for the new style in Enter new style name text box.

  2. Click OK to create the new style in the selected style category using the selected formatting options and close the dialog.

  1. Paragraph

  1. Character

  1. Frame

  1. Page

  1. List

  1. Table

  1. Fill Format Mode

  1. Styles Actions

The New Style from Selection dialog displays a list of custom styles that are available in the document. By default, a new style created from a selection is placed in the Custom Styles.

Dragging and dropping

In Writer and Calc, users can create a style by dragging and dropping a selected element into the Styles deck on the Sidebar. The new style is based on the formatting of the selected text or the selected cell. To use this method, perform the following steps:

  1. Open the Styles deck on the Sidebar.

  2. Open the list of styles in the style category by clicking on the icon for the required style category at the top of the Styles deck.

  3. Select text or a cell in the open document, then drag and drop that element onto the Styles deck on the Sidebar.

  4. Open the New Style from Selection dialog and enter a name for the new style in Enter new style name text box.

  5. Click OK to create the new style in the selected style category and close the dialog. The new style is based on the formatting of the selected element and it is placed in Custom Styles.

Editing styles

When LibreOffice is installed onto a computer, a default set of styles is included. It provides a starting point for creating documents with styles. These default styles cannot be deleted, but can be edited to match the formatting requirements for documents.

All user-created styles can be edited or deleted. For more information on creating styles, see “Creating new stylesabove.

Styles can be edited using one of the following methods:

Any editing, or changes made to a style are effective only in the current document. To edit or change styles in more than one document, the template has to be changed, or styles loaded from another document.

Using a styles dialog

A style can be edited with the Styles dialog. For more information on editing styles in a module, refer to the appropriate LibreOffice user guide.

  1. Open the Styles deck on the Sidebar.

  2. Click on the icon for the required style category at the top of the Styles deck to open the list of styles available in the selected style category.

  3. Right‑click on a style and select Edit Style from the context menu to open a style dialog applicable for the selected style category. Figure 6 shows an example of the Paragraph Styles dialog.

  4. Use the various options available on the dialog pages to edit the selected style. If available, changes to a style can be checked in the preview box on the dialog page.

  5. When changes are complete, click on OK to save the changes and close the dialog.

Set Paragraph Style or Apply Style

A style can also be edited with Set Paragraph Style for Writer or Apply Style for Calc on the Formatting toolbar by performing the following steps:

  1. Select a paragraph in Writer or a cell in Calc.

  2. On the Formatting toolbar, open a drop‑down list of styles by clicking on the chevron ˅ or triangle ▼ next to Set Paragraph Style for Writer or Apply Style for Calc.

    Figure 6: Paragraph Style dialog

    Paragraph Style dialog

  3. Select a style and click on the chevron ˅, or triangle ▼next to the style name, then select Edit Style from the context menu to open the Paragraph Style dialog (Figure 6).

  4. Edit the selected style by using various options available on the dialog pages. Changes to a style can be checked in the preview box on the dialog page.

  5. When changes have been completed, click on OK to save the changes and close the dialog.

Updating styles from selection

  1. Open the Styles deck on the Sidebar.

  2. Select the element that is formatted with the attributes of the desired style.

  3. On the Styles deck, select the style that is going to be updated from the selection.

  4. Update the style using one of the following methods:

Using AutoUpdate

When the AutoUpdate option is selected on the General page of the Paragraph Style, or Frame Style dialog, a style is updated whenever you directly format a paragraph or frame that is in that style. In Writer, AutoUpdate only applies to paragraph and frame styles. See the Writer Guide for more information on AutoUpdate.

Renaming styles

In LibreOffice, only custom styles can be renamed.

  1. Open the Styles deck on the Sidebar.

  2. In the Styles drop‑down list at the bottom of the Sidebar, select Custom Styles so you can see any custom styles that are available in the document.

  3. Select the style that is going to be renamed from the displayed list of custom styles.

  4. Right‑click on the selected style and select Edit Style from the context menu to open the style dialog for the selected type of of style.

If Modify is grayed out in the context menu, then the selected style cannot be renamed.

  1. Click on General to open the General page in the style dialog.

  2. In the Name text box, enter a new name for the selected style.

  3. Click on Apply to rename the selected style, then click OK to close the style dialog.

Deleting styles

Only custom styles can be deleted.

  1. If not already open, open the Styles deck on the Sidebar.

  2. In the styles category drop‑down list at the bottom of the Sidebar, select Custom Styles to display any custom styles that are available in the document.

  3. Select the style that is going to be deleted from the displayed list of custom styles. To delete multiple styles, hold down the Ctrl key (macOS ⌘) while selecting styles.

  4. Right‑click on the selected style and select Delete from the context menu.

  5. Click on Apply to delete the selected style, then click OK to close the style dialog.

If Delete is grayed out in the context menu, then the selected style cannot be deleted.
If a style is deleted that is in use, all elements that used the deleted style will return to the default style.

Page styles

Page styles can be created in Writer or Calc. For more information on page styles, see the Writer Guide and the Calc Guide. For example, you can create a style that is only applied to the first page.

To create a new page style in Writer, do the following:

  1. Open a new text document and open the Styles deck on the Sidebar.

  2. Open the Page Styles panel and select Page Styles at the top of the Styles deck.

  3. Click on Styles actions at the top of the Styles deck and select New Style from Selection from the context menu to open the New Style from Selection dialog.

  4. Add the name of the new page style in the Enter new style name text box and click OK. This closes the New style from Selection dialog and the new page style appears in the Page Styles panel.

  5. Right‑click on the new page style in the Page Styles panel and select Edit Style from the context menu to open the Page Style dialog.

  6. Modify and format the page with the options available on the Page Style dialog.

  7. Click OK to save the changes and close the Page Style dialog.

  8. To apply the new page style, double‑click on the required page style.

Templates

A template is a document that contains user-specified formatting styles, graphics, tables, objects, and other information. LibreOffice can use a template to generate new documents with a common content and a common format. For example, you can add the outline of a report and also define paragraph and character styles in a document, save the document as a template, and then use the template to create a new document with the same report outline and styles.

All documents in LibreOffice are based on templates. The software has a number of predefined templates that can be used to create different types of documents, including business letters, presentations, or drawings. Templates can be created to suit your requirements. Also, templates can be downloaded from the LibreOffice website using the following link: https://extensions.libreoffice.org.

If a blank document is created in LibreOffice, then the software uses the appropriate LibreOffice default template. If required, this default template can be replaced by a custom template to suit user requirements, see “Setting default templatebelow for more information.

Custom LibreOffice templates

User-created templates are located in the My Templates folder and the next time LibreOffice is started, those templates appear in the LibreOffice startup window and the Select a Template dialog.

Figure 7: Templates dialog

Templates dialog

Creating new documents from a template

A new document can be created in the Templates dialog by doing these steps:

  1. Open the Templates dialog (Figure 7) by:

  1. Determine where to display the template and select the LibreOffice application and template category in the Filter drop‑down lists.

  2. Generate a document with the template with one of the following methods:

Creating a template

Any formatting element in a document can be saved in a template: for example, printer settings; file paths; text or object colors; and so on. Also, predefined text and graphics can be added to a template.

  1. Open an existing document, or create a new document of the type required for a template.

  2. Add any content that is required for the new template; for example company logo, copyright statement, and so on.

Figure 8: Save As Template dialog

Save As Template dialog

  1. Format any content added to the template requirements.

  2. Create, or modify, any styles required for the new template.

  3. Go to File > Templates > Save as Template on the Menu bar to open the Save As Template dialog (Figure 8).

  4. Enter a name for the new template in the Enter Template Name text box.

  5. Select a template category, from the categories available in Select Template Category.

  6. If necessary, select Set as default template to change the default template for the required document type.

  7. Click on Save to save template and close the Save As Template the dialog.

Template wizard

Writer has a Template Wizard which speeds up the template creation process. For more information on the Template Wizard, see the Writer Guide.

  1. Go to File > Wizards on the Menu bar and select Letter, Fax, or Agenda to start a template for one of those types of documents. The Letter Wizard dialog is shown in Figure 9.

  2. Go through the wizard and go through the steps as the wizard instructs.

  3. Click on Finish and a Save as dialog opens.

  4. Navigate to the required folder where the template is going to be saved.

  5. Enter a file name in the text box using the file extension OTT for document templates.

  6. Click on Save to save the new template and close the Save as dialog. The new template appears in the list of templates available.

Figure 9: Letter Wizard dialog

Letter Wizard dialog

Setting default template

LibreOffice allows you to specify a specific template as the default document. The template has to be in a location visible in the Save as Template dialog so that LibreOffice can find it, and you can always reset to the original LibreOffice default template if necessary.

Changing default template

  1. Go to File > New > Templates or File > Templates > Manage Templates on the Menu bar to open the Templates dialog.

  2. Select the document type from the Filter drop‑down list.

  3. Select the template to use as the default LibreOffice template for the selected document type.

  4. Right-click on the selected template and select Set as Default from the context menu. A default template icon appears at the top right of the new default template.

  5. Click on Open and a new document opens using the new default template. The next time a new document is created without selecting a different template, that document uses th new default template.

Resetting default template

  1. Go to File > New > Templates or File > Templates > Manage Templates on the Menu bar to open the Templates dialog.

  2. Select the presentation template that is being used as the default presentation template in the Select a Template dialog.

  3. Right-click on the template and select Reset Default from the context menu.

  4. Click on Close to close the Templates dialog. The next time that a new document is created and a specific template is not selected, the document is created using the original default LibreOffice template for that document type.

Editing templates

Default LibreOffice templates cannot be edited. Only templates that are created or imported can be edited.

  1. Go to File > New > Templates or File > Templates > Manage Templates on the Menu bar to open the Templates dialog.

  2. Right-click on the template to be edited and select Edit from the context menu and the template opens in the relevant LibreOffice module.

  3. Edit and update the styles, text and/or objects on the selected template.

  4. Go to File > Save on the Menu bar or use the keyboard shortcut Ctrl+S (macOS ⌘+S) to save the changes.

  5. Close the template, or create a document, using the edited template.

Any document created from a template before editing can be updated to show the changed template settings the next time the document is opened. A confirmation dialog opens asking if the updated styles are to be used or keep the old styles. If keep the old styles is selected, then the document continues to use the old styles without any confirmation.

Organizing templates

LibreOffice templates must be in specific LibreOffice template folders. New LibreOffice template categories can be created and used to organize LibreOffice templates. For example, separate template categories for different projects or clients. Templates can also be imported and exported.

The location of folders used LibreOffice template categories varies with computer operating systems. To learn where the template folders are stored on a computer, go to Tools > Options > LibreOffice > Paths (macOS LibreOffice > Preferences > LibreOffice > Paths).

Creating custom categories

  1. Go to File > New > Templates or File > Templates > Manage Templates on the Menu bar to open the Templates dialog.

  2. Click on Manage at the top right of the Templates dialog and select New Category from the context menu.

  3. Enter a category name in Enter new category name box in the New Category dialog (Figure 10).

  4. Click OK to save the new category and the category appears in the Filter drop-down list for categories at the top of the Templates dialog.

Deleting custom categories

  1. Go to File > New > Templates or File > Templates > Manage Templates on the Menu bar to open the Templates dialog.

  2. Select the custom category for deletion from the drop-down list of categories at the top of the Templates dialog.

  3. Click on Manage at the top right of the Template dialog and select Delete Category from the context menu.

  4. Click Yes to confirm the deletion of the custom category.

Figure 10: New Category dialog

New Category dialog

LibreOffice’s default template categories or categories using the Extension Manager cannot be deleted. Only custom categories that have been created in Impress can be deleted.

Moving templates

  1. Go to File > New > Templates or File > Templates > Manage Templates on the Menu bar to open the Templates dialog.

  2. Right-click on the template that is going to be moved and select Move from the context menu.

  3. In the Select Category dialog (Figure 11), select a category from the displayed list of categories, or enter a name in the Create a New Category box to create a new category for the template.

  4. Click OK to move the template to its new category and close the Select Category dialog.

Figure 11: Select Category dialog

Select Category dialog

Only custom templates can be moved between categories. Templates supplied with LibreOffice or installed with the Extension Manager cannot be moved.

Deleting templates

  1. Go to File > New > Templates or File > Templates > Manage Templates on the Menu bar to open the Templates dialog.

  2. Right-click on the template being deleted and select Delete from the context menu.

  3. Click on Yes to confirm the deletion.

Templates supplied with LibreOffice, or installed using the Extension Manager, cannot be deleted. Only templates that have been created in LibreOffice, or imported from other sources, can be deleted.

Renaming templates

  1. Go to File > New > Templates or File > Templates > Manage Templates on the Menu bar to open the Templates dialog.

  2. Right-click on the template being renamed and select Rename from the context menu.

  3. Enter a new template name in the text box that has opened, then click on OK to save the new template name.

Templates supplied with LibreOffice or installed with the Extension Manager, cannot be renamed. Only templates that have been created in LibreOffice or imported from other sources can be renamed.

Importing templates

LibreOffice uses the term “repositories” when it refers to sources for templates. A repository can be a directory on a computer or a location on the internet. The community-created template repository for LibreOffice is at https://extensions.libreoffice.org/.

If a template is in a different location on the computer, then the template must be imported into a LibreOffice category for LibreOffice to recognize the template.

  1. To import a template onto the computer, go to https://extensions.libreoffice.org/ or another internet location and download the required template to your computer.

  2. Open the Templates dialog by selecting File > New > Templates or File > Templates > Manage Templates on the Menu bar.

  3. Find the Filter drop‑down lists then select the required document type and template category.

  4. Click on Manage at the top right of the Template dialog and open the Open dialog by selecting Import from the context menu.

  5. Use the Open dialog, to find the folder where the template is located on the computer.

  6. Display the available templates by selecting the Templates in the File type box.

  7. Select the template and click Open to import template into the selected category.

Exporting templates

  1. Open the Templates dialog by selecting File > New > Templates or File > Templates > Manage Templates on the Menu bar.

  2. Activate the context menu by right-clicking on the template to be exported then select Export from the menu. A file browser window will appear.

  3. Navigate to the folder where the template will be exported and click on OK. The template is exported to the selected location and the browser closes.

Hyperlinks

In LibreOffice, hyperlinks allow you to create references to web pages and other elements in remote locations.

Absolute and relative hyperlinks

There are two types of hyperlinks: absolute and relative.

Inserting hyperlinks

  1. Select the location where the hyperlink will be inserted.

  2. Go to Insert > Hyperlinks on the Menu bar or use the keyboard shortcut Ctrl+K (macOS ⌘+K) to open the Hyperlink dialog (Figure 12).

  3. On the left hand side, determine whether the hyperlink will be absolute or relative.

  4. Click Apply to insert the hyperlink into the document.

  5. Click Close or OK to close the dialog.

LibreOffice automatically converts website URLs into hyperlinks. To turn off this function, go to Tools > AutoCorrect Options > Options and deselect URL Recognition.
To change the color of hyperlinks, go to Tools > Options > LibreOffice > Application Colors (macOS LibreOffice > Preferences > LibreOffice > Application Colors), and scroll to the Unvisited links and/or Visited links checkboxes. Select them, choose new colors from the color palettes for the links, and click OK. Note that this color change changes the color for all hyperlinks across all LibreOffice modules.

In Writer and Calc, the Navigator can be used to insert hyperlinks. For information, see the Writer Guide and Calc Guide.

Hyperlink types

To choose a hyperlink type, go to Insert > Hyperlinks on the Menu bar or use the keyboard shortcut Ctrl+K (macOS ⌘+K) to open the Hyperlink dialog.

Internet

Enter the required web address in the URL text box and a name for the hyperlink in the Text text box (Figure 12).

Figure 12: Hyperlink dialog — Internet page

Hyperlink dialog — Internet page

Mail

Go to Insert > Hyperlinks on the Menu bar or use the keyboard shortcut Ctrl+K (macOS ⌘+K) to open the Hyperlink dialog. Enter email details in Recipient and the subject of the link in Subject (Figure 13).

Figure 13: Hyperlink dialog — Mail page

Hyperlink dialog — Mail page

Document

Links to another document or to another place in a document, commonly referred to as a bookmark. Enter the details in the Path text box, or click on Open File to open a file browser. Leave this blank if the link is to a target in the same document (Figure 14).

Optionally, specify a target, for example, a specific slide in a presentation. Click on Target in Document to open a dialog where a target can be selected. If the name of the target is known, type it into the Target text box.

Figure 14: Hyperlink dialog — Document page

Hyperlink dialog — Document page

New Document

Figure 15: Hyperlink dialog — New Document page

Hyperlink dialog — New Document page

Links a new document. Select Edit now to edit the newly created document immediately or Edit later to only create the hyperlink. Choose the type of document to create from the File type drop-down list. Click on Select path to open a file browser so that a directory is selected for the new document (Figure 15).

Further Settings

These settings are common to all hyperlink types, though some choices are more relevant to some types of links.

Frame

Set the value to determine how the hyperlink opens. This applies to documents that open in a web browser.

Form

Specifies if the link is to be presented as text or as a button.

Text

Specifies the text that will be visible to the user.

Name

Applicable to HTML documents. It specifies text that will be added as a NAME attribute in the HTML code behind the hyperlink.

Editing hyperlinks

  1. Select a hyperlink using one of the following methods (depends on the module):

  1. Select editing mode and open the Hyperlink dialog using one of the following methods:

  1. Modify the link in the Hyperlink dialog then click Apply to save the changes. The Hyperlink dialog remains open.

  2. Once you have finished editing hyperlinks, click on OK to close the Hyperlink dialog.

Removing hyperlinks

To turn a hyperlink into plain text, right-click on the link and select Remove Hyperlink from the context menu. To delete a hyperlink, select the hyperlink and press the Delete or Backspace key.

Contents