GS75 GettingStarted
GS75 GettingStarted
This document is Copyright © 2023 by the LibreOffice Documentation Team. Contributors are
listed below. You may distribute it and/or modify it 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.
Book 1
Contributors
To this edition
Peter Schofield Jean Hollis Weber Nay Catina Dia-Schneebeli
flywire Olivier Hallot
To previous editions
Skip Masonsmith flywire
Mitchell Camfield Rafael Lima Felipe Viggiano
Rafael Lima Steve Fanning Jean Hollis Weber
Andrew Jensen Amanda Labby Cathy Crumbley
Dan Lewis Dave Barton Pulkit Krishna
Jorge Rodriguez Olivier Hallot Paul Figueiredo
Peter Schofield Kees Kriek Martin Saffron
Steve Schwettman Dave Barton Hazel Russman
Ron Faile Jr. Kevin O’Brien Magnus Adielsson
Iain Roberts JiHui Choi Regina Henschel
Laurent Balland-Poirier Christian Kühl Florian Reisinger
Gisbert Friege (Dmaths) Jochen Schiffers Frédéric Parrenin
Bernard Siaud Miklos Vajna Valerii Goncharuk
Andrew Pitonyak Claire Wood John A Smith
Roman Kuznetsov Vasudev Narayanan
Feedback
Please direct any comments or suggestions about this document to the Documentation Team’s
forum at https://community.documentfoundation.org/c/documentation/loguides/ (registration is
required) or send an email to: [email protected].
Note
Everything you send to a mailing list or forum, including your email address and
any other personal information that is written in the message, is publicly archived
and cannot be deleted.
Preface
Who is this user guide for?
Anyone who wants to quickly acquire knowledge on LibreOffice and is new to office software, or
may be familiar with another office suite, will find this Getting Started Guide very useful.
LibreOffice is an open-source office productivity software suite containing capabilities for word
processing, spreadsheets, presentations, graphics, databases, and formula editing.
What is LibreOffice?
LibreOffice is a freely available, fully-featured, open source office productivity suite that is
compatible with other major office suites and is available on a variety of platforms. The native file
format used is Open Document Format (ODF). However, LibreOffice can also open and save
documents in many other formats, including those used by several versions of Microsoft Office.
For more information, see Appendix B, Open Source, Open Standards, OpenDocument.
Calc (spreadsheet)
Calc has all of the advanced analysis, charting, and decision making features expected from a
high-end spreadsheet. It includes over 500 functions for financial, statistical, and mathematical
operations, among others. The Scenario Manager provides “what if” analysis. Calc generates 2D
and 3D charts, which can be integrated into other LibreOffice documents. Also, Microsoft Excel
workbooks can be opened and worked on, then saved in Excel format. Calc can also export
spreadsheets in several formats, including, for example, Comma Separated Value (CSV), Adobe
PDF and HTML formats.
10 | Preface
Impress (presentations)
Impress provides all the common multimedia presentation tools, such as special effects,
animation, and drawing tools. It is integrated with the advanced graphics capabilities of
LibreOffice Draw and Math modules. Slideshows can be further enhanced using Fontwork
special effects text, as well as sound and video clips. Impress can open, edit, and save Microsoft
PowerPoint presentations and save presentations in numerous graphics formats.
Base (database)
Base provides tools for day-to-day database work within a simple interface. Base can create and
edit forms, reports, queries, tables, views, and relations, so that managing a relational database
is much the same as in other popular database applications. Base provides many new features,
such as the ability to analyze and edit relationships from a diagram view. Base incorporates two
relational database engines, HSQLDB and Firebird. It can also use PostgreSQL, dBASE,
Microsoft Access, MySQL, Oracle, or any ODBC compliant or JDBC compliant database. Base
also provides support for a subset of ANSI-92 SQL.
Advantages of LibreOffice
The following explains some of the advantages of LibreOffice has over other office suites:
No licensing fees
LibreOffice is free for anyone to use and distribute at no cost. Many features that are
available as extra cost add-ins in other office suites (like PDF export) are free with
LibreOffice. There are no hidden charges now or in the future.
Open source
Distribute, copy, and modify the software as required, in accordance with the LibreOffice
Open Source licenses.
Cross-platform
LibreOffice runs on several hardware architectures and under multiple operating systems,
such as Microsoft Windows, macOS, and Linux.
Extensive language support
The LibreOffice user interface, including spelling, hyphenation, and thesaurus
dictionaries, is available in over 100 languages and dialects. LibreOffice also provides
support for both Complex Text Layout (CTL) and Right to Left (RTL) layout languages
(such as Urdu, Hebrew, and Arabic).
Advantages of LibreOffice | 11
Consistent user interface
All the modules have a similar “look and feel”, making them easy to use and master.
Integration
The individual modules of LibreOffice are well integrated with the other LibreOffice
modules.
All modules share a common spelling checker and other tools, which are used
consistently across the suite. For example, the drawing tools available in Writer are also
found in Calc with similar, but enhanced versions in Impress and Draw.
There is no need to know which application was used to create a particular file. For
example, open a Draw file from Writer and this will open Draw automatically.
Granularity
Usually, if you change an option, it affects all modules. However, LibreOffice options can
be set at a module level or even at document level.
File compatibility
In addition to its native Open Document Formats, LibreOffice includes support for opening
and saving files in many common formats including Microsoft Office, HTML, XML,
WordPerfect, Lotus 1-2-3, and PDF. See Appendix B for a list.
No vendor lock-in
LibreOffice uses OpenDocument, an XML (eXtensible Markup Language) file format
developed as an industry standard by OASIS (Organization for the Advancement of
Structured Information Standards). These files can easily be unzipped and read by any
text editor, and their framework is open and published.
All LO users have a voice
Enhancements, software fixes, and release dates are community-driven. Join the
community and affect the course of LibreOffice.
Read more about LibreOffice and The Document Foundation on their websites at
https://www.libreoffice.org/ and https://www.documentfoundation.org/.
Java software
Some LibreOffice features (wizards and the HSQLDB database engine) require that the Java
Runtime Environment (JRE) or, for macOS, the Java Development Kit (JDK) is installed on a
computer. If Java is not going to be used, nearly all of the LibreOffice features can still be used.
Java is available at no cost. More information and download links to the appropriate edition for
your operating system can be found at: https://java.com/en/download/manual.jsp.
12 | Preface
For macOS, the Oracle Java Development Kit (JDK) has to be installed, not just the Java
Runtime Environment (JRE). Download links can be found at:
https://www.oracle.com/java/technologies/downloads/.
If LibreOffice features that require Java are to be used, it is important that the correct 32-bit or
64-bit edition matches the installed version of LibreOffice. See the Advanced Options in Chapter
12, Configuring LibreOffice.
Installing LibreOffice
Information on installing LibreOffice on the various supported operating systems can be found at
this web page: https://www.libreoffice.org/get-help/install-howto/. When LibreOffice is acquired
through official app stores, follow the installation instructions provided by the store.
Tip
Some settings are intended for power users and programmers. If it is difficult to
understand what an option does, LibreOffice recommends leaving the option on
its default setting unless instructions in this user guide recommend changing the
setting.
Help system
LibreOffice comes with an extensive Help system and this can be used as the first line of support.
Windows and Linux users can choose to download and install the offline Help for use when not
connected to the Internet. Offline Help is installed with the MacOS version of LibreOffice.
To display the LibreOffice Help, press F1 or go to Help > LibreOffice Help on the Menu bar. If
the offline help is not installed on a computer, but connected to the Internet, a dialog opens giving
the option to Read Help Online. Select this option and the default web browser opens at the
LibreOffice online help pages in the LibreOffice website.
The Help menu also includes links to other LibreOffice information and support resources. The
options marked by a ‡ sign in the list below are only accessible if the computer is connected to
the Internet.
What's This?
For quick tips when a toolbar is visible, place the cursor over any of the tool icons to see a
small tooltip box with a brief explanation of the tool function. For a more detailed
explanation, select Help > What's This? Also Extended Tips can be activated by going
to Tools > Options > LibreOffice > General (macOS LibreOffice > Preferences >
LibreOffice > General) on the Menu bar. Extended Tips provide a brief description
about tools and commands.
User Guides
Opens the default browser at the Documentation page of the LibreOffice website
https://documentation.libreoffice.org/en/english-documentation/. This page gives access
to the LibreOffice User Guides and other useful information that can be opened in the
default browser. Also, the User Guides are available in PDF format as a free download or
to buy as printed copies.
Show Tip of the Day
Opens a small window with a random tip on how to use LibreOffice.
Search Commands
Opens a window where typing a few letters, or the name of a Menu bar command, for
example, quickly finds where the command is located. Clicking on a command in the
resulting list may open a relevant dialog or have other effects.
Get Help Online
Opens the default browser at the Ask LibreOffice forum of questions and answers from
the LibreOffice community, https://ask.libreoffice.org/en/questions/.
Send Feedback
Opens the default browser at the Feedback page of the LibreOffice website
https://www.libreoffice.org/get-help/feedback/. From this page, bugs can be reported, new
features suggested and communicated with other users in the LibreOffice community.
Restart in Safe Mode
Opens a dialog window giving options to restart LibreOffice and reset the software to its
default settings. Restarting in safe mode also provides an opportunity to restore
LibreOffice from a backup.
14 | Preface
Get Involved
Opens the default browser at the Get Involved page of the LibreOffice website,
https://www.libreoffice.org/community/get-involved/. Choose a topic of interest to help
improve the program.
Donate to LibreOffice
Opens the default browser at the Donation page of the LibreOffice website,
https://donate.libreoffice.org/ providing an opportunity to make a donation to support
LibreOffice.
License Information
Outlines the licenses under which LibreOffice is made available.
Check for Updates
Opens a dialog and checks the LibreOffice website for updates to version of the software.
The dialog provides an opportunity to download and install any updates to LibreOffice.
About LibreOffice
Opens a dialog and displays information about the version of LibreOffice and the
operating system being used. This information is often requested if the community is
asked for help or assistance with the software (on macOS, this option is found under
LibreOffice on the Menu bar).
Illustrations
LibreOffice runs on Windows, Linux, and macOS operating systems, each of which has several
versions and can be customized by users (fonts, colors, themes, window managers). The
illustrations in this guide were taken from a variety of computers and operating systems.
Therefore, some illustrations will not look exactly like what is seen on a computer display.
Also, some of the dialogs may differ because of the settings selected in LibreOffice. Either use
dialogs from the computer system (default), or dialogs provided by LibreOffice.
To change to using LibreOffice dialogs:
1) On Linux and Windows operating systems, go to Tools > Options > LibreOffice >
General on the Menu bar to open the dialog for general options.
2) On a Mac operating system, go to LibreOffice > Preferences > LibreOffice > General
on the Menu bar to open the dialog for general options.
16 | Preface
3) Select Use LibreOffice dialogs in Open/Save dialogs to display the LibreOffice dialogs
on a computer display, as shown in Figure 1.
4) Click OK to save the settings and close the dialog.
Icons
The LibreOffice community has created icons for several icon sets, including Breeze, Colibre,
Elementary, and Sifr. Each user can select a preferred set of fonts to use. The icons used to
illustrate some of the many tools available in LibreOffice may differ from the ones used in this
guide. The icons in this user guide have been taken from a LibreOffice installation that has been
set to display the Colibre set of icons.
Change the icon set used in a LibreOffice installation as follows:
1) On Linux and Windows operating systems, go to Tools > Options > LibreOffice > View
on the Menu bar to open the dialog for view options.
2) On a Mac operating system, go to LibreOffice > Preferences > LibreOffice > View on
the Menu bar to open the dialog for view options.
3) In Icon Style, select a font from the options available in the drop-down list as shown in
Figure 2.
4) In Icon Size, select the required size from the drop-down lists for Toolbar, Notebookbar
and Sidebar, as shown in Figure 2.
5) Click OK to save the settings and close the dialog.
Notes
Some Linux operating systems, for example Ubuntu, include LibreOffice as part of
the installation and may not include the required icon set. This icon set can be
downloaded from the software repository for the Linux operating system being
used.
18 | Preface
Figure 3: Dialog showing an example of common controls
Note
If the LibreOffice features that require Java are to be used, it is important that the
correct 32-bit or 64-bit edition matches the installed version of LibreOffice. If Java
is not to be used, nearly all of the LibreOffice features can still be used.
20 | Preface
• Support for dark and high contrast operating system themes on Windows, macOS and
Linux is improved.
• The Start Center can now filter recent documents by type.
Chapter 1,
LibreOffice Basics
Installation and starting LibreOffice
Installation
Installing LibreOffice onto a computer depends on the computer operating system. Refer to the
computer user guide and operating instructions for information on how to install a software
application. During installation of LibreOffice, the following happens depending on the computer
operating system:
• Windows — a desktop icon is created during the installation of LibreOffice.
• Linux — entries for LibreOffice and each of the LibreOffice modules appear in
Applications. Desktop icons can be created for LibreOffice and each of its modules. Refer
to the operating system help or user guide for more information on how to create a
desktop icon.
• macOS — an entry for LibreOffice is added to Applications. A desktop icon can be
created for LibreOffice. Refer to the operating system help or user guide for more
information on how to create a desktop icon.
Starting
Clicking on LibreOffice in Applications, or a desktop icon, opens the LibreOffice Start Center
(Figure 5) where individual modules of LibreOffice can be selected and opened. Also, a
LibreOffice module can be opened using one of the following methods:
• Click on the name of a LibreOffice module listed in the Start Center to open the module
and create a new file. For example, click on Impress Presentation and a new
presentation opens.
Note
LibreOffice can also be started by double-clicking the filename of an ODF
document in a folder, or file browser. The document opens and the applicable
LibreOffice module also opens. For more information on opening files, see
“Opening existing documents” on page 37.
Closing LibreOffice
To close LibreOffice completely depends on the computer operating system:
• Windows and Linux — go to File > Exit LibreOffice on the Menu bar.
• Windows and Linux — use the keyboard shortcut Ctrl+Q.
• Windows and Linux — with the last LibreOffice document open, click on the X on the right
of the title bar.
• macOS — go to LibreOffice > Quit LibreOffice on the Menu bar.
• macOS — use the keyboard shortcut ⌘+Q
Note
If any documents have not been saved since the last change, a warning message
is displayed. Select whether to save or discard the changes.
Title bar
The Title bar is located at the top of the LibreOffice window. It shows the file name of the current
document. If the document has not been saved and named, the document name will be Untitled
X, where X is a number. Untitled documents are numbered in the order in which they are created.
Menu bar
The Menu bar is located below the Standard toolbar in Windows and Linux operating systems,
and at the top of the window in macOS. When selecting one of the menus, a submenu drops
down to show further options, including:
• Commands that directly cause an action, for example File > Close or Save.
• Commands that open dialogs. These are indicated by three dots following a command,
for example Edit > Find and Replace… on the Menu bar.
• Commands that open submenus are indicated by a right-pointing chevron ˃ following a
command. Moving the cursor onto one of these commands opens a submenu containing
further commands, for example View > Rulers > Rulers, or Vertical Rulers.
• Keyboard shortcuts that can be used for some commands.
For example, the default Menu bar for Writer contains the following:
File
Commands that apply to the entire document, for example Open, Save, and Print.
Edit
Commands for editing a document, for example Undo, Find and Replace, Cut, Copy,
Paste, and Track Changes.
View
Commands for controlling the display of a document, for example User Interface,
Toolbars, Text Boundaries, Rulers, and Zoom.
Insert
Commands for inserting elements into a document, for example Image, Comment,
Header and Footer, and Table of Contents and Index.
Format
Commands for formatting the layout of a document.
Styles
Commands for quickly applying common styles; for editing, loading, and creating styles;
and for managing styles.
Table
Commands to insert and edit a table in a text document.
Form
Commands to create fill-in forms.
Toolbars
LibreOffice has two types of toolbars: docked and floating. Docked toolbars can be moved to
different locations, or made into a floating toolbar. All floating toolbars can be docked. In a default
LibreOffice installation, the Standard toolbar is docked at the top of the window and this docking
position is consistent across all of the LibreOffice modules.
In a default LibreOffice installation, the second toolbar in a docked position at the top of the
window depends on which LibreOffice module has been opened. For example, when Writer or
Calc are opened, the second docked toolbar is the Formatting toolbar.
The second toolbar can also be context-sensitive and changes to provide the relevant tools for
the object selected. For example, when a graphic object is selected in Writer, the Formatting
toolbar is replaced by the Drawing Object Properties toolbar, providing tools for formatting
graphics. When the graphic object is deselected, the Drawing Object Properties toolbar closes
and the Formatting toolbar reopens.
Note
When it is necessary to reduce the number of toolbars displayed and provide
more space for a document, the user interface can be changed to a single-toolbar
as an alternative to the default double-toolbar user interface. This single-toolbar
user interface contains the most-used commands. To activate a single toolbar
user interface, go to View > User Interface and select Single Toolbar from the
Select Your Preferred User Interface dialog. For more information, see Chapter
13, Customizing LibreOffice.
Note
Floating toolbars created from tool palettes are not listed in the View menu, but
are displayed in the LibreOffice window.
1) Click on Basic Shapes on the Drawing toolbar to open the tool palette.
2) Click on the toolbar handle (highlighted in Figure 6) and drag the tool palette onto the
open document.
3) Release the toolbar handle and the tool palette becomes a floating toolbar.
Note
If the toolbar handle is not visible, the tool palette, or toolbar, is locked into its
docked position and has to be unlocked. See “Locking and unlocking toolbars”
below for more information.
Note
A docking position is indicated by a hashed border around the toolbar. When this
hashed border appears, release the toolbar and the toolbar is docked.
Customizing toolbars
Toolbars can be customized by adding tools listed in Visible Buttons, or by adding new tools to
a toolbar. To access the customization options for a toolbar, right-click in an empty space on a
docked toolbar, or click on the downward triangle ▼ on the title bar of a floating toolbar to open a
context menu.
• Select Customize Toolbar to open the Customize dialog to add more tools to the toolbar.
For more information on customization, see Chapter 13, Customizing LibreOffice.
• Select Dock Toolbar to dock the selected floating toolbar in its default position. The
toolbar can be moved to a different docked position.
Context menus
Context menus provide quick access to many menu functions and are opened by right-clicking on
a paragraph, graphic, or other object. When a context menu opens, the available functions or
options depend on the object that has been selected. A context menu is the easiest way to use a
function or option, especially if its location in the menus or toolbars is not known.
Context menus can also display applicable keyboard shortcuts if one has been created, or tool
icons if available. To use these options, go to Tools > Options > LibreOffice > View (macOS
LibreOffice > Preferences LibreOffice > View) and select the options available in Visibility.
Status bar
The Status bar is located at the bottom of the workspace. It provides information about the
document and convenient ways to change some features quickly. It is similar in Writer, Calc,
Impress, and Draw, but each LibreOffice module includes some module-specific items. To hide
the Status bar, go to View on the Menu bar and deselect Status Bar.
An example of the Impress Status bar is shown in Figure 8. The various areas in the Impress
Status bar are as follows:
Slide number
The slide number currently displayed in the Workspace and the total number of slides in
the presentation.
Information area
Changes depending on the object selected on the slide. Examples shown in Table 3.
Table 3: Examples of information
Example selection Examples of information shown
Text area Text Edit: Paragraph x, Row y, Column z
Charts, spreadsheets Embedded object (OLE) “ObjectName” selected
New documents
A new LibreOffice document can be created using one of the following methods:
• With the LibreOffice Start Center open, click on the name of a LibreOffice module to open
a new document of that type. For example, click on Impress Presentation and a new
presentation is created.
• Click on Templates in the Start Center and the available LibreOffice templates are
displayed. Click on the required template to create a new file and the applicable
LibreOffice module opens.
• Go to File > New on the Menu bar and select the type of document from the submenu
that opens. The applicable LibreOffice module also opens.
• Click on the downward triangle ▼ next to New on the Standard toolbar and select the
type of document from the context menu that opens. For example, click on Drawing and
a new drawing is created. The applicable LibreOffice module also opens.
• Click on New on the Standard toolbar and a new document is created matching the
LibreOffice module that is open. For example, if Writer is open and active, a new text
document is created.
• Use the keyboard shortcut Ctrl+N (macOS ⌘+N) to create a new document. The type
of document created depends on which LibreOffice module is open and active. For
example, if Calc is open and active, a new spreadsheet is created.
• Go to File > Wizards on the Menu bar and select the type of document from the options
available in the submenu.
Notes
Renamed or relocated documents may still be listed in the Start Center. Selecting
one of these files opens an error message that the file does not exist. To remove
the file from the Start Center, hover the cursor over the thumbnail until an X
appears in the upper right corner, and then click on the X.
In the Start Center, Open dialog, or file browser the list, or preview, of files
displayed can be reduced by selecting the type of file required. For example, to
select Text Documents as the file type, only documents that Writer can open are
displayed.
For more information on working with files on remote servers, see Chapter 10,
Working with File Formats, Security, and Exporting.
LibreOffice will open files compatible with the Open Document Format (ODF) that
LibreOffice uses. For example: MS Word (*.doc or *.docx) are opened in Writer;
MS Excel (*.xls or *.xlsx) are opened in Calc; MS PowerPoint (*.ppt or *.pptx) are
opened in Impress, and so on. See Chapter 10, Working with File Formats,
Security and Exporting for more information about working with different file types.
Saving documents
Documents can be saved using one of the following methods:
• Save — used to save all changes made, keeping the current filename and location of the
file.
– Go to File > Save on the Menu bar.
– Use the keyboard shortcut Ctrl+S (macOS ⌘+S).
– Click on Save on the Standard toolbar.
• Save As — used to create a new document, change the filename or file format, or save
the file in a different location on a computer system.
– Go to File > Save As on the Menu bar.
– Use the keyboard shortcut Ctrl+Shift+S (macOS ⌘+Shift+S).
Undoing
To undo the most recent change in a document, use one of the following methods:
• Use the keyboard shortcut Ctrl+Z (macOS ⌘+Z).
• Click on Undo in the Standard toolbar.
• Go to Edit > Undo on the Menu bar.
• Click the small triangle ▼ to the right of Undo on the Standard toolbar to open a list of
changes that can be undone. Multiple consecutive changes can be selected and deleted
at the same time.
Redoing
After changes have been undone, changes can be redone using one of the following methods:
• Use the keyboard shortcut Ctrl+Y (macOS ⌘+Y).
• Click on Redo in the Standard toolbar.
• Go to Edit > Redo on the Menu bar.
Reloading documents
Reloading documents discards all the changes made in an editing session after the last
document save. To reload a document, go to File > Reload on the Menu bar.
Note
If any changes have been made since the last save, a confirmation dialog opens
with a warning message that reloading discards the last changes. Select whether
to save, or discard, the changes.
Closing documents
Close a document using one of the following methods:
• Go to File > Close on the Menu bar.
• In Windows or Linux — click on the X at the right end of the Menu bar.
• In macOS — click on the red button at the left end of the title bar.
If the document was the only document open, the following happens:
• In Windows or Linux — the document closes and the LibreOffice Start Center opens.
• In macOS — the document closes and the Menu bar remains at the top of the screen.
Note
If the document has not been saved since the last change, a confirmation dialog
opens with a warning message. Select whether to save, or discard, the changes
before closing.
Printing
Default printer
Setting up a default printer depends on the computer and the computer operating system being
used. The following are examples of how to setup a default printer on a computer.
Windows
1) Open Settings, then go to Devices > Printers & scanners.
2) Select a printer from the displayed list.
3) Select Manage > Set as default and then close Settings.
Linux
1) Open Settings, then go to Printers.
2) Select a printer from the displayed list.
3) Click on the settings icon on the right of the printer name.
4) Select Use Printer by Default from the drop-down list and close Settings.
macOS
1) Open System Settings, then open Printers & Scanners.
2) In Default printer select the printer to use as default printer from the drop-down list, then
close Settings.
Quick printing
Quick printing is when an entire document is printed using the default printer settings that is
connected to the computer. To quick print the entire document that is open, click on Print
Directly on the Standard toolbar.
If Print Directly is not visible on the Standard toolbar, it can be installed as follows:
1) Right-click in a blank area on the Standard toolbar to open a context menu.
2) Select Visible Buttons from the context menu.
3) Select Print Directly from the list of available tools to install it on the Standard toolbar, as
shown by the highlighted example in Figure 13.
Printing | 39
Printer setup
The options available in the Printer Setup dialog for a printer are as follows:
Printer
Lists information that applies to the selected printer. If the list is empty, install a default
printer for the computer. Refer to the printer and computer user guides for more
information on connecting printers.
Name
Lists the installed printers on the computer. To change the default printer, select a printer
name from the drop-down list.
Status
Describes the current status of the selected printer.
Type
Displays the type of printer that is selected.
Location
Displays the computer connection for the selected printer.
Comments
Displays additional information for the printer.
Properties
Changes the printer settings of the computer operating system for the current document.
Make sure that the layout orientation (Landscape or Portrait) matches the page format set
in Format > Page on the Menu bar.
Options
Opens the Printer Options dialog box allowing the global printer options set in Tools >
Options > LibreOffice Writer or LibreOffice Calc > Print (macOS LibreOffice >
Preferences > LibreOffice Writer or LibreOffice Calc > Print) to be overridden when
printing the current document.
Note
Options in the Printer Settings dialog is only available in LibreOffice Writer and
Calc.
Printing | 41
LibreOffice printing options
Reduce transparency
If selected, transparent objects are printed like normal, non-transparent objects,
depending on your selection in the following two option buttons.
Automatically
Specifies that the transparency is only printed if the transparent area covers less than a
quarter of the entire page.
No transparency
When selected, a transparency does not print.
Note
Transparencies cannot be sent directly to a printer. Transparencies must be
visible to be calculated as bitmaps and sent to the printer. Depending on bitmap
size and the print resolution, a large amount of data may result.
Warnings
Defines which warnings appear before printing begins.
Paper size
Select this option if a certain paper size is required for printing the current document. If
the paper size used in the document is not provided by the current printer, an error
message opens.
Paper orientation
Select this option if a certain paper orientation is required for printing the current
document. If the format used by the current document is not available from the printer,
an error message opens.
Transparency
Select this option if a warning is required if transparent objects are contained in the
document. When printing a document with transparencies, a dialogue box opens to
enable selection if the transparency is to be printed.
Reduce gradient
If selected, gradients are printed with reduced quality.
Gradient stripes
Specifies the maximum number of gradient stripes for printing.
Intermediate color
Specifies that gradients are only printed in a single intermediate color.
Printing | 43
Table 4: Print options in LibreOffice modules
Feature Writer Calc Impress Draw Math
Select pages, sheets, or slides
Yes Yes Yes Yes Yes
to print
Print multiple pages, sheets, or
Yes Yes Yes Yes No
slides on one page
Print a brochure Yes No Yes Yes No
Print envelopes Yes No No No No
Print labels or business cards Yes No No No No
Preview pages or sheets
Yes Yes No No No
before printing
Controlling printing
For more control over printing, open the Print dialog using one of the following methods:
• Go to File > Print on the Menu bar.
• Use the keyboard shortcut Ctrl+P (macOS ⌘+P).
• Click on Print on the Standard toolbar.
Printing | 45
More > Draw a border around each page
When multiple slides are printed on one sheet of paper, a border is drawn around each
slide.
More > Brochure
Prints the document so the pages can be folded into a brochure or booklet.
Layout Direction
Select the printing order of multiple slides on one sheet of paper.
Border
When multiple slides are printed on one sheet of paper, a border is drawn around each
slide.
Two-Sided
Select from the drop-down list how a multi-page document is going to be bound: Off;
Long-Edge binding; Short-Edge binding, Booklet.
Reverse page orientation
If LibreOffice prints the slides in the wrong order, select this option and print the
document again.
Flip horizontally
If LibreOffice prints the pages in the wrong orientation, select this option and print the
document again.
Paper Handling
Collate sheets
When selected multiple printed copies are collated into separate documents.
Sheets to Print
Select which slides in the document to print from the drop-down list: All pages; Odd
only; Even only.
Printing | 47
Sheet Order
Select the page printing order from the drop-down list: Automatic; Normal; Reverse.
Scale to fit paper size
Adjusts the printed slide to fit the paper size.
Destination Paper Size
Select a paper size from the options available in the drop-down list. Only available if
Scale to fit paper size has been selected.
Scale down only
Select this option to reduce slide size to fit the paper. Only available if the paper size is
smaller than the slide size.
Watermark
Provides options to print watermark text on the slides, for example Confidential if the
presentation is of a sensitive nature.
Printer info
Shows the details of the selected printer.
Brochure printing
In Writer, Impress, and Draw, documents can be printed so that, when printed, the pages are in
the correct order to form a booklet or brochure. The printer procedures below are only examples.
Actual brochure printing procedure depends on the computer operating system and type of
printer being used. It is best to experiment to find the correct method for brochure printing.
Printing | 49
Figure 19: Print Preview toolbar
Print previewing
In Writer and Calc only, a document can be previewed before it is printed. Print previewing is
useful, especially when printing a document double-sided making sure there are no errors before
the document is printed. Print previewing is opened as follows:
1) Open Print Preview using one of the following methods. The Print Preview toolbar
(Figure 19) opens and the Formatting toolbar closes:
– Go to File > Print Preview on the Menu bar.
– Click on Toggle Print Preview on the Standard toolbar.
– Use the keyboard shortcut Ctrl+Shift+O (macOS ⌘+Shift+O).
2) Select the required preview from Single Page Preview, Two Pages Preview, Book
Preview, or Multiple Pages Preview.
3) To print the document from Print Preview, click Print on the Print Preview toolbar to open
the Print dialog, then select the printing options and click OK (macOS Print).
4) To close the preview, click on Close Preview on the Print Preview toolbar. The document
switches back to normal view and the Formatting toolbar reopens replacing the Print
Preview toolbar.
Note
When a document is in Print Preview, the document cannot be edited. If
required, click on Book view in the Status Bar to display the document in book
format. The document can be edited when using Book view on the Status bar.
Click on Single page view to return the document to normal view.
Note
It is recommended to use Safe Mode options successively from the top down
because the options get more extreme from the top down.
Note
If problems are not solved using Safe Mode, selecting Advanced provides
instructions on receiving further aid.
Using Advanced a zip file can be created of a corrupted user profile. This zip file
can be uploaded to the bug tracking system where it can be investigated further
by the developers.
However, be aware that an uploaded user profile may contain sensitive
information such as installed extensions, personal dictionaries, and settings.
Chapter 2,
Getting Started with Writer
Word processing with LibreOffice
What is Writer?
Writer is the word processor component of LibreOffice. In addition to the usual features of a word
processor (spelling check, thesaurus, hyphenation, autocorrect, find and replace, automatic
generation of tables of contents and indexes, mail merge, and others), Writer provides these
important features, which are covered in detail in the Writer Guide:
• Templates and styles (see Chapter 4)
• Page layout methods, including styles, frames, columns, and tables
• Automated tables of contents and indexes
• Embedding or linking of images, equations, spreadsheets, and other objects
• Built-in drawing tools
• Master documents, to group a collection of documents into a single document
• Change tracking during revisions
• Lists
• Tables of data
• Database integration, including a bibliography database
• Mail merge
• Export to PDF and EPUB (see Chapter 10)
• Document digital signatures
• Form design and filling
• And many more
Status bar
The Writer Status bar provides information about the document and convenient ways to change
some document features quickly.
Caution
Changing the page style here may affect the styles of subsequent pages,
depending on how the page styles are set up. See the Writer Guide for details.
Text language
Shows the language and localization at the cursor position, or for the selected text, that is
used for checking spelling, grammar, hyphenation, and the thesaurus.
Click to open a menu where you can choose another language or localization for the
selected text or for the paragraph where the cursor is located. You can also choose None
(Do not check spelling) to exclude the text from a spelling check or choose More to
open the Character dialog. Any directly formatted language settings can be reset to the
default language from this menu.
Insert mode
Click to change to Overwrite mode; click again to return to Insert mode. In Insert mode,
any text after the cursor position moves forward to make room for the text you type; in
Overwrite mode, text after the cursor position is replaced by the text you type. This
feature is disabled when in Record Changes mode.
Selection mode
Click to cycle between the selection modes; right-click to select the required mode from a
context menu. The icon does not change, but when you hover the mouse pointer over this
field, a tooltip indicates which mode is active.
Mode Effect
Standard selection Click in the text where you want to position the cursor and
drag to where you want the selection to end. Any previous
selection is deselected.
Extending selection (F8) Clicking in the text extends or crops the current selection.
Adding selection A new, separate selection is added to an existing
(Shift+F8) selection. The result is a multiple selection.
Block selection A block of text can be selected.
(Alt+Shift+F8)
On Windows systems, you can hold down the Alt key while dragging to select a block of
text. You do not need to enter the block selection mode.
Sidebar
The Sidebar is normally open by default on the right side of the Writer window. If necessary,
select View > Sidebar on the Menu bar, or press Ctrl+F5, to display it. An example is shown in
Chapter 1, LibreOffice Basics.
The Writer Sidebar contains seven decks by default: Properties, Styles, Gallery, Navigator, Page,
Style Inspector, and Manage Changes. Each deck has a corresponding icon on the Tab bar on
the right of the Sidebar, allowing you to switch between them. The decks are described below.
Each deck consists of a title bar and one or more content panels. Some panels contain a small
More Options button, which opens a dialog to give greater choice of editing controls. When the
dialog is open, the document is locked for other editing.
Properties deck: Contains tools for direct formatting of content.
When text is selected, these panels appear:
– Style: Apply a paragraph style at the cursor position. Create or update a style.
– Character: Modify text by the font type, size, color, weight, style, and spacing.
Style Inspector deck: Displays all the attributes of paragraph styles, character styles, and
manual (direct) formatting for selected text. For more information, see the Writer Guide.
Manage Changes deck: Lists tracked changes that have not yet been accepted or rejected. You
can accept or reject them here as well as in the Manage Changes dialog or the Track Changes
toolbar.
Tip
Whenever it is possible to choose the document file format, you should choose to
work with the default ODF format. This reduces the likelihood of errors and
compatibility issues.
Tip
To have Writer save documents by default in a Microsoft Word file format, go to
Tools > Options > Load/Save > General. In the section named Default File
Format and ODF Settings, under Document type, select Text document, then
under Always save as, select your preferred file format.
Note
More information about different file formats can be found in Chapter 10, Working
with File Formats, Security and Exporting
Figure 27: Selecting items that are not next to each other
For more information about keyboard selection of text, see the topic “Navigating and selecting
with the keyboard” in LibreOffice Help (F1).
Pasting text
When you paste text, the result depends on the source of the text and how you paste it. If you
click on the Paste button on the Standard toolbar or use Ctrl+V, any formatting the text has
(such as bold or italics) is retained. Text pasted from websites and other sources may also be
placed into frames or tables. If you do not like the results, click the Undo button or press
Ctrl+Z.
To make the pasted text inherit the paragraph style at the insertion point, do any of the following:
• Choose Edit > Paste Special.
• Click the arrow on the Paste button on the Standard toolbar.
• Double-click the Paste button without releasing the left mouse button.
• Press Ctrl+Shift+V.
Then select Paste Unformatted Text or Unformatted text in the resulting menu. Unformatted
text can also be pasted directly by pressing Ctrl+Alt+Shift+V on the keyboard.
Caution
Use Replace All with caution; otherwise, you may end up with mistakes that you
won’t be able to undo later if you save and close the file. (Ctrl+Z works only
before the file is saved.) A mistake with Replace All might require a manual,
word-by-word, search to fix.
For more information on using Find and Replace, see the Writer Guide.
Tip
Different fonts have their own distinct special characters. If you do not find a
particular special character, try changing the Font selection.
Checking grammar
If any grammar errors are detected, they are shown underlined by a wavy blue line. Right-click on
this line to open a context menu.
The first entry in the context menu describes the suspected broken grammatical rule.
Using AutoCorrect
Writer’s AutoCorrect function has a long list of common misspellings and typing errors, which it
corrects automatically. It also includes codes for inserting special characters, emoji, and other
symbols.
AutoCorrect is turned on by default. You may wish to disable some of its features, modify others,
or turn it off completely. To turn AutoCorrect off, uncheck Tools > AutoCorrect > While Typing.
You can add your own corrections or special characters or change those supplied with
LibreOffice. Choose Tools > AutoCorrect > AutoCorrect Options to open the AutoCorrect
dialog. On the Replace tab, you can define which strings of text are corrected and how. In most
cases, the defaults are fine.
To stop Writer replacing a specific spelling, go to the Replace tab, highlight the word pair, and
click Delete. To add a new spelling to the list, type it into the Replace and With boxes on the
Replace tab, and click New.
See the different tabs of the dialog for the other options available to fine-tune AutoCorrect.
Tip
LibreOffice has an extensive list of special characters accessible with
AutoCorrect. For example, type :smiling: and AutoCorrect will replace it with ☺.
Or, (c) will be changed to ©. You can add your own special characters.
Note
Automatic word completion only occurs after you type a word for the second time
in a document.
Using AutoText
Use AutoText to store text, tables, fields, and other items for reuse and assign them to a key
combination for easy retrieval. For example, rather than typing “Senior Management” every time
you use that phrase, you can set up an AutoText entry to insert those words when you type “sm”
and press F3.
To store some text as AutoText:
1) Type the text into your document, then select the text.
2) Choose Tools > AutoText on the Menu bar (or press Ctrl+F3).
3) In the AutoText dialog (Figure 37), type a name for the AutoText in the Name box. Writer
will suggest a one-letter shortcut, which you can change.
4) Choose the category for the AutoText entry, for example My AutoText.
5) Click the AutoText button at the bottom of the dialog and select in the menu either New,
to have the AutoText retain specific formatting, no matter where it is inserted, or New (text
only), to have the AutoText take on the existing formatting around the insertion point.
6) Click Close to return to your document.
To insert AutoText, type the shortcut and press F3.
Tip
If the only option under the AutoText button is Import, either you have not entered
a name for your AutoText or there is no text selected in the document.
Formatting text
You can format text in two ways. See the Writer Guide for details.
Direct (or Manual) formatting
Applies formatting directly to specific paragraphs, characters, pages, frames, lists, or
tables. For example, you can select a word, then click on a button on the Formatting
toolbar to format the text as bold or italics.
Formatting text | 73
Note
Direct formatting (also called manual formatting) overrides styles. This means that
when a new style is applied, direct formatting is not removed and still determines
the displayed format.
Note
When clearing direct formatting, the text formatting will return to the applied
paragraph and character style and not the default paragraph style or default
character style (unless these styles are actually applied to the text).
Note
Just as direct paragraph formatting overrides the current paragraph style,
applying direct character formatting to characters overrides the current character
style formatting.
Autoformatting
You can set Writer to format or correct parts of a document automatically as you type, according
to the choices made on the Options and Localized Options tabs of the AutoCorrect dialog (Tools
> AutoCorrect > AutoCorrect Options).
Autoformatting on the Options tab includes URL recognition, bulleted and numbered lists,
capitalizing the first letter of every sentence, and correcting two initial capitals on words.
A bulleted (unordered) list is created when you type a hyphen (-), star (*), or plus sign (+),
followed by a space or tab at the beginning of a paragraph. A numbered (ordered) list is created
when you type a number followed by a period (.), followed by a space or tab at the beginning of a
paragraph.
The Localized Options tab controls the formatting of quotation marks and apostrophes (which
look like a closing single quote). Most fonts include curly quotation marks (also known as “smart
quotes”), but for some purposes (such as marking minutes and seconds of latitude and longitude)
you may wish to format them as straight quotes.
Straight quotes Smart quotes
'' "" ‘’ “”
Tip
If you notice unexpected formatting changes occurring in your document, this is
the first place to look for the cause. In most cases Edit > Undo (Ctrl+Z) fixes
the issue.
Formatting text | 75
• Use paragraph styles Numbering 1, Numbering 2, Numbering 3, etc, for creating ordered
lists. Use any of the Numbering list styles with these paragraph styles.
You can use the predefined paragraph and list styles or define your own.
To assign a list style to a paragraph style, go to the Styles deck in the Sidebar, right-click on the
paragraph style you want to use, then choose Modify. On the Outline & List tab on the
Paragraph Style dialog, in the List style drop-down list, choose the required list style (Figure 39).
Paragraph styles such as List 1 Start and List 1 End enable you to adjust specific properties
(such as the space between paragraphs) for items at the beginning or end of the list.
Note
List styles are not meant to be used on their own. Rather, they are designed to be
attached to paragraph styles.
Tip
Bullets and numbering applied in these ways cannot be removed with Format >
Clear Direct Formatting on the Menu bar, or with the Clear Direct Formatting
icon on the Formatting toolbar, or by using Ctrl+M. Rather, they are turned off or
removed from selected text by toggling the relevant buttons on the Formatting
toolbar, or on the Sidebar’s Properties deck.
Tip
If numbering or bullets are being applied automatically in a way that you do not
want, you can disable them by going to Tools > AutoCorrect > AutoCorrect
Options and deselecting Bulleted and Numbered List on the Options tab.
The Toggle Unordered List and Toggle Ordered List buttons on the Sidebar’s Properties deck
can also be used to create nested lists. Click the down arrow next to the relevant button, then
click More Bullets/Numbering to access the Bullets and Numbering dialog. However, the
Sidebar does not include tools for promoting and demoting items in the list, as found on the
Bullets and Numbering toolbar.
Formatting text | 77
Tip
Using tabs to space out material on a page is not recommended. Depending on
what you are trying to accomplish, a table or frame might be a better choice.
Caution
Any changes to the default tab setting will affect the existing default tab stops in
any document you open afterward, as well as tab stops you insert after making
the change.
To set the spacing of default tab stop intervals, go to Tools > Options > LibreOffice Writer >
General.
Hyphenating words
You can hyphenate words at the end of a line in two ways: let Writer do it automatically (using
styles and its hyphenation dictionaries), or insert soft hyphens manually where needed. Or, you
can choose to not hyphenate at all.
Note
Turning on hyphenation for the Default Paragraph Style affects all other
paragraph styles that are based on Default Paragraph Style. You can individually
change other styles so that hyphenation is not active; for example, you might not
want headings to be hyphenated.
Any styles not based on Default Paragraph Style are not affected. See Chapter 4,
Working with Styles, Templates, and Hyperlinks, for more about styles based on
styles other than Default Paragraph Style.
Formatting text | 79
Note
Hyphenation options set in Writing Aids are effective only if hyphenation is turned
on through paragraph styles.
Manual hyphenation
Manually hyphenate words when you want only a specific word hyphenated at the end of a line.
Do not use a normal hyphen, which will remain visible even if the word is no longer at the end of
a line when you add or delete text, or change margins or font size. Instead, use a soft hyphen,
which is visible only when required.
To insert a soft hyphen inside a word, click where you want the hyphen to appear (when needed)
and press Ctrl+hyphen or use Insert > Formatting Mark > Insert soft Hyphen. When the
word is at the end of the line it will be hyphenated at this position, even if automatic hyphenation
for this paragraph is switched off.
Formatting pages
Every page in Writer is based on a page style. Page styles define basic layout, including page
size, margins, headers and footers, borders, backgrounds, and so on. Changes to these settings
automatically change the page style. This means that, in contrast to paragraph styles, these
settings cannot be used to directly format individual pages.
As with other styles, Writer comes with a number of page styles. You can modify these styles or
create new ones. The Default Page Style is used when no other page style has been specified.
In addition to page styles, several features enable you to further control page layouts, including
columns, frames, tables, and sections. For more information, see the Writer Guide.
Tip
Page layout is usually easier if you show text, object, table, and section
boundaries in Tools > Options > LibreOffice > Application Colors, and
paragraph ends, tabs, breaks, and other items in Tools > Options > LibreOffice
Writer > Formatting Aids.
Formatting pages | 81
Figure 46: Page Style dialog, Header tab
Numbering pages
Tip
This is also useful for numbering the first page of a document with a page number
greater than 1.
Line numbering
Line numbers in the margin are often used in legal documents, poetry, and lists of programming
code. Writer can insert line numbers in an entire document or for selected paragraphs. Line
numbers are included when you print the document.
You can choose how many lines are numbered (for example, every line or every tenth line), the
numbering type, and whether numbers restart on each page.
To add line numbers to a document, choose Tools > Line Numbering and select the Show
numbering option in the top left corner of the Line Numbering dialog. Then select any options
you want and click OK.
You can also create a paragraph style that includes line numbering, and apply it to the
paragraphs that you want to add line numbers to. For example, to number the lines of example
code in a document, you will probably want to use a font or indentation that is different from
normal text.
Formatting pages | 83
Caution
When you change the margins, the page style is also changed and the changed
margins apply to all pages using that style.
Caution
The two small gray triangles on the ruler are used for indenting paragraphs. The
double-headed arrows shown in Figure 47 are mouse pointers shown in the
correct position for moving the margin markers. Because the triangles and arrows
are often in the same place, when changing page margins you need to be careful
to move the arrows, not the gray triangles.
Note
The margin selections on the Sidebar change all four margins to be the same. If
you require different margins, you need to use the Page Style dialog.
Note
The watermark will automatically become part of the page style where it is
inserted and all other pages of the same style will have the watermark. Pages
with different or no watermarks need different Page Styles for those pages.
Formatting pages | 85
• Add a title page at the beginning of the document. Writer provides a fast and convenient
way to add one or more title pages to a document and optionally to restart the page
number at 1 for the body of the document, using Format > Title Page on the Menu bar.
Formatting comments
At the bottom of the comment, Writer automatically adds the author’s name and a time stamp
indicating when the comment was created. If more than one person edits the document, each
author is automatically allocated a different background color. Figure 49 shows an example of
text with comments from two different authors.
Printing comments
When a document contains comments, the print dialog has an option for comments to be printed
next to the text in the right margin, as they appear on the screen. In that case, the text on each
page is scaled down to make space for the comments. The Print dialog also has options for
placing comments at the end of the page or at the end of the document, or for printing only the
comments.
Tip
The language used at the location of the cursor is shown in the Status bar, next to
the page style in use.
Using styles
Languages can be set on the Font tab of the Paragraph Style dialog or the Character Style
dialog. See the Writer Guide for information on how to manage the language settings of a style.
Caution
Be careful when changing a language in character or paragraph styles, as this will
change the language for all characters or paragraphs using that style. It may be
useful to include the language in the name of the style.
Languages set with direct formatting will override languages set using styles.
Note
Not all changes are recorded. For example, changing a tab stop from align left to
align right, and changes in formulas (equations) or linked graphics are not
recorded.
Tip
In addition to the Edit > Track Changes menu, Writer provides the same
commands on the Track Changes toolbar (View > Toolbars > Track Changes).
Caution
A document with track changes activated but with the changes not shown carries
an invisible history of document editing that the current user may not be aware of.
Contents deleted or modified can be recovered. While this is a feature, it is also a
potential privacy risk.
Using hyperlinks
See Chapter 4, Working with Styles, Templates, and Hyperlinks, for details on creating hyperlinks
within a document and to other documents and websites.
4) In the Refer using: list, select the option needed. The options determine the text inserted
for the hyperlink and how it is formatted. The list varies according to the Type chosen. The
most commonly used options are Referenced text (the full text of a heading or caption),
Category and Number (a figure or table number preceded by the word Figure or Table,
but without the caption text), Numbering (the figure or table number, without the word
Figure or Table), or Page number (unstyled) (to insert the number of the page the
referenced text is on).
5) Click Insert.
You can leave this dialog open while you insert many cross-references.
Using bookmarks
You can use bookmarks to rapidly navigate or link to specific locations in a document. They are
listed in the Navigator and can be accessed directly from there with a single mouse click. You can
cross-reference to bookmarks and create hyperlinks to bookmarks, as described above.
To create a bookmark:
1) Select the text you want to bookmark. Click Insert > Bookmark.
2) On the Insert Bookmark dialog, the larger box lists any previously defined bookmarks.
Type a name for this new bookmark in the top box, and then click Insert.
Bookmarks have been enhanced in LibreOffice 7.5. In previous versions, bookmarks could be
used only for location references. Now they also can be used for text references.
Text enclosed by a bookmark can be edited in the Bookmark dialog as well as in the document
itself. When you edit text in the dialog, it is also edited in the document. If you have change
tracking on, the change is tracked in the document.
Chapter 3,
Getting Started with Calc
Using spreadsheets in LibreOffice
What is Calc?
Calc is the spreadsheet component of LibreOffice. You can enter data (usually numerical) in a
spreadsheet and then manipulate this data to produce certain results.
Alternatively, you can enter data and then use Calc in a “What if...” manner by changing some of
the data and observing the results without having to retype the entire spreadsheet or sheet.
Other features provided by Calc include:
• Functions, which can be used to create formulas to perform complex calculations on
data.
• Database functions, to arrange, store, and filter data.
• Dynamic charts, including a wide range of 2D and 3D charts.
• Macros, for recording and executing repetitive tasks; scripting languages supported
include LibreOffice Basic, Python, BeanShell, and JavaScript.
• Ability to open, edit, and save Microsoft Excel spreadsheets.
• Import and export of spreadsheets in multiple formats, including HTML, CSV (without or
with formulas), dBase, PDF, and PostScript.
• Collaborate with others seamlessly by sharing the spreadsheet.
Wildcards
Simple wildcards such as the asterisk (*), question mark (?), and tilde (~) from other spreadsheet
applications are recognized by LibreOffice in formula expressions.
Formula syntax
By default, LibreOffice Calc uses its own formula syntax, referred to as Calc A1, rather than the
Excel A1 syntax used by Microsoft Excel. LibreOffice will translate seamlessly between the two.
However, if you are familiar with Excel you may wish to change the default syntax in Calc by
going to Tools > Options > LibreOffice Calc > Formula and choosing Excel A1 or Excel R1C1
in the Formula syntax drop-down menu.
For more information on formula syntax, see Chapter 8, Using Formulas and Functions, in the
Calc Guide.
Macros
Microsoft Office uses Visual Basic for Applications (VBA) code, and LibreOffice uses Basic code
based on the LibreOffice API. Although the programming languages are the same, the objects
and methods are different and therefore not entirely compatible.
LibreOffice can run some Excel Visual Basic scripts if you enable this feature at Tools > Options
> Load/Save > VBA Properties.
If you want to use macros written in Microsoft Excel using the VBA macro code in LibreOffice,
you must first edit the code in the LibreOffice Basic IDE editor.
For more information, refer to Chapter 13, Calc Macros, in the Calc Guide.
Title bar
The Title bar, located at the top, shows the name of the current spreadsheet. When a
spreadsheet is newly created from a template or a blank document, its name is Untitled X, where
X is a number. When you save a spreadsheet for the first time, you are prompted to enter a name
of your choice.
Toolbars
In a default LibreOffice installation, the top docked toolbar, just under the Menu bar, is called the
Standard toolbar. It is consistent across the LibreOffice applications. The position and use of it
and other toolbars are described in Chapter 1, LibreOffice Basics.
Formula bar
The Formula Bar (Figure 52) is located at the top of the sheet in the Calc workspace. It is
permanently docked in this position and cannot be used as a floating toolbar. However, it can be
hidden or made visible by selecting or deselecting View > Formula Bar on the Menu bar.
Note
In a spreadsheet, the term “function” covers much more than just mathematical
functions. See Chapter 8, Using Formulas and Functions, in the Calc Guide for
more information.
Status bar
The Calc Status bar (Figures 54 and 55) provides information about the spreadsheet as well as
quick and convenient ways to change some of its features. Most of the fields are similar to those
in other components of LibreOffice. See Chapter 1, LibreOffice Basics, for more information.
The Status bar has a quick way to do some math operations on selected cells in the
spreadsheet. You can view the calculated average and sum, count of elements, and more on the
selection by right-clicking over the Cell/Object Information area and selecting the operations you
want to display in the Status bar (Figure 56).
Sidebar
The Calc Sidebar (View > Sidebar or Ctrl+F5) is located on the right side of the window. It is a
mixture of toolbar and dialog. It is similar to the Sidebar in Writer (shown in Chapter 1 and
Chapter 2 of this book) and consists of five decks: Properties, Styles, Gallery, Navigator, and
Functions. Each deck has a corresponding icon on the Tab panel to the right of the sidebar,
allowing you to switch between them. The decks are described below.
Properties
This deck includes five content panels. These panels, with the exception of the Style
panel, have a More Options button that opens a dialog with additional options. These
dialogs lock the document for editing until they are closed.
Style: Access to the available cell styles, update cell styles, and new cell styles.
Character: Controls for formatting the text, such as font family, size, and color. Some
controls, such as superscript, become active only when the text cursor is active in the
Input line of the Formula bar or the cell.
Number Format: Quickly change the format of numbers including decimals, currency,
dates, percentage, or numeric text; and leading zeroes.
Alignment: Controls to align the text in various ways, including horizontal and vertical
alignment, wrapping, indenting, merging, text orientation, and vertical stacking.
Cell Appearance: Controls to set the appearance of cells, including cell background
color, cell border formats including line color and style, and grid lines.
Styles, Gallery, Navigator
These decks are similar to those in Writer. Their use is described in the Calc Guide.
Spreadsheet layout
Individual cells
The main section of the workspace in Calc displays the cells in the form of a grid. Each cell is
formed by the intersection of one column and one row in the spreadsheet.
At the top of the columns and the left of the rows are a series of header boxes containing letters
and numbers. The column headers use an alpha character starting at A and go on to the right.
The row headers use a numerical character starting at 1 and go down.
These column and row headers form the cell references that appear in the Name Box on the
Formula Bar (Figure 52). If the headers are not visible on the spreadsheet, choose View > View
Headers on the Menu bar.
Sheet tabs
Each Calc spreadsheet can contain multiple sheets. At the bottom of the grid of cells are sheet
tabs indicating how many sheets are in the spreadsheet. By default, a new spreadsheet is
created with one sheet named Sheet1. Click on a tab to display that sheet. An active sheet is
indicated with a white tab (default Calc setup). You can also select multiple sheets by holding
down the Ctrl key while clicking on the sheet tabs.
To change the default name for a sheet (Sheet1, Sheet2, and so on), right-click on a sheet tab
and select Rename Sheet in the context menu, or double-click on the sheet tab, to open the
Rename Sheet dialog where you can type a new name for the sheet.
To change the color of a sheet tab, right-click on the tab and select Tab Color in the context
menu to open the Tab Color dialog. Select a color and click OK. To add new colors to this color
palette, see Chapter 13, Customizing LibreOffice.
Note
Most CSV files come from database tables, queries, or reports, where further
calculations and charting are required.
Saving spreadsheets
For information on how to save files manually or automatically, see Chapter 1, LibreOffice Basics.
Calc can save spreadsheets in a range of formats and also export spreadsheets to PDF, HTML,
XHTML file formats and JPEG and PNG images formats; see Chapter 7, Printing, Exporting, E-
mailing, and Signing, in the Calc Guide for more information.
Note
Once you have saved a spreadsheet in another format, all changes you make to
the spreadsheet will now occur only in the format you are using. If you want to go
back to working with a *.ods version, you must save the file as a *.ods file.
Tip
To have Calc save spreadsheets by default in a file format other than .ods, go to
Tools > Options > Load/Save > General. In the Default File Format and ODF
Settings area, select Spreadsheet in Document type, then in Always save as,
select your preferred file format.
Cell navigation
When a cell is selected or in focus, the cell borders are emphasized. When a group of cells is
selected, the cell area is colored. The color of the cell border emphasis and the color of a group
of selected cells depends on the operating system being used and how you have set up
LibreOffice.
Mouse: place the mouse pointer over the cell and click the left mouse button.
Cell reference: delete the existing cell reference in the Name Box on the Formula Bar
(Figure 52 on page 111). Type the new cell reference and press Enter. Cell references
are case-insensitive.
Navigator: press F5 to open the Navigator (Figure 64) or click the Navigator button on
the Sidebar. Type the cell reference into the Column and Row fields, or use the adjacent
increment / decrement buttons, and press Enter.
Sheet navigation
Each sheet in a spreadsheet is independent of the other sheets, though references can be linked
from one sheet to another. To navigate between sheets in a spreadsheet:
Navigator – double-click on any of the listed sheets to select the sheet.
Keyboard – Ctrl+Page Down moves one sheet to the right and Ctrl+Page Up moves
one sheet to the left.
Mouse – click on a sheet tab at the bottom of the spreadsheet to select that sheet.
If your spreadsheet contains a lot of sheets, then some of the sheet tabs may be hidden. If this is
the case:
• Using the four buttons to the left of the sheet tabs can move the tabs into view (Figure
65).
• Right-clicking on any of the arrows, or the +, opens a context menu where you can select
a sheet (Figure 66).
Keyboard navigation
You can navigate a spreadsheet using the keyboard, by pressing a key or a combination of keys.
See Chapter 1, Introduction, and Appendix A, Keyboard Shortcuts, in the Calc Guide for the keys
and key combinations you can use for spreadsheet navigation in Calc.
Selecting cells
Single cell
Click in the cell. You can verify your selection by looking in the Name Box on the Formula
Bar (Figure 52 on page 111).
Tip
You can also select a contiguous range of cells by first clicking in the Selection
mode field on the Status bar (Figure 55 on page 113) and selecting Extending
selection before clicking in the opposite corner of the range of cells. Make sure
to change back to Standard selection or you may extend a cell selection
unintentionally.
Tip
You can also directly select a range of cells using the Name Box. Click in the
Name Box on the Formula Bar (Figure 52 on page 111). Enter the cell reference
for the upper left-hand cell, followed by a colon (:), and then the lower right-hand
cell reference. For example, to select the range that would go from A3 to C6, you
would enter A3:C6.
Selecting sheets
You can select one or multiple sheets in Calc. It can be advantageous to select multiple sheets,
especially when you want to make changes to many sheets at once.
Single sheet
Click on the sheet tab for the sheet you want to select. The tab for the selected sheet
becomes white (default Calc setup).
Multiple contiguous sheets
To select multiple contiguous sheets:
1) Click on the sheet tab for the first desired sheet.
2) Hold down the Shift key and click on the sheet tab for the last desired sheet.
3) All tabs between these two selections will turn white (default Calc setup). Any actions that
you perform will now affect all the highlighted sheets.
Multiple non-contiguous sheets
To select multiple non-contiguous sheets:
1) Click on the sheet tab for the first desired sheet.
2) Hold down the Ctrl key and click on the sheet tab for the each additional desired sheet.
3) The selected tabs will turn white (default Calc setup).
All sheets
Right-click a sheet tab and choose Select All Sheets in the context menu, or select Edit
> Select > Select All Sheets on the Menu bar.
Tip
To see an indicator for hidden columns and rows, enable the option in View >
Hidden Row/Column Indicator.
Tip
To make a quick copy of a sheet within your existing spreadsheet you can right-
click on the sheet name and select Duplicate Sheet.
In the Move/Copy Sheet dialog (Figure 71), you can specify exactly whether you want the sheet
in the same or a different spreadsheet, its position within the spreadsheet, and the sheet name
when you move or copy it.
1) In the current document, right-click on the sheet tab you wish to move or copy and select
Move or Copy Sheet in the context menu, or go to Sheet > Move or Copy Sheet on the
Menu bar.
2) In the Action area, select Move to move the sheet or Copy to copy the sheet.
Note
Hidden elements are neither visible on a computer display nor printed when a
spreadsheet is printed. However, they can still be selected for copying if you
select the elements around them. For example, if column B is hidden, it is copied
when you select columns A to C. When you require a hidden element again, you
can reverse the process and show the element.
Renaming sheets
By default, the name for each new sheet added is SheetX, where X is the sequential number of
the next sheet to be added. While this works for a small spreadsheet with only a few sheets, it
can become difficult to identify each one when a spreadsheet contains many sheets.
To rename a sheet, use one of these methods:
• Enter the name in the Name text box when you create the sheet using the Insert Sheet
dialog (Figure 70 on page 126).
• Right-click on a sheet tab and select Rename Sheet in the context menu to replace the
existing name with a different one.
• Double-click on a sheet tab to open the Rename Sheet dialog.
Note
Sheet names must start with either a letter or a number; other characters,
including spaces, are not allowed. Apart from the first character of the sheet
name, permitted characters are letters, numbers, spaces, and the underscore
character. Attempting to rename a sheet with an invalid name will produce an
error message.
Viewing a spreadsheet
Unfreezing
To unfreeze rows or columns, either use View > Freeze Rows and Columns on the Menu bar,
or click on the Freeze Rows and Columns icon on the Standard toolbar. The heavier lines
indicating freezing will disappear.
Numbers
Click in the cell and type the number using the number keys on either the main keyboard or the
numeric keypad. By default, numbers are right-aligned in a cell.
Negative numbers
To enter a negative number, either type a minus (–) sign in front of the number or enclose the
number in parentheses, for example (1234). The result for both methods of entry will be the
same; in this example, –1234.
Leading zeroes
If a number is entered with leading zeroes, for example 01481, by default Calc will drop the
leading zero. To retain a minimum number of characters in a cell when entering numbers and
retain the number format, for example 1234 and 0012, use one of these methods to add leading
zeroes.
Method 1
1) With the cell selected, right-click on the cell, select Format Cells in the context menu, or
go to Format > Cells on the Menu bar, or use the keyboard shortcut Ctrl+1, to open the
Format Cells dialog (Figure 75). Make sure the Numbers tab is selected, then select
Number in the Category list.
Tip
To format numbers with only decimal places, but without a leading zero (for
example, .019 instead of 0.019), type a . (period or full stop) followed by ?
(question mark) in the Format code box (Figure 75), to represent the number of
decimal places required. For example, for 3 decimal places, type .??? and click
OK. Any number with only decimal places will then have no leading zero.
Tip
If numerical characters do not need to be treated as numbers in calculations (for
example when entering zip codes), you can type an apostrophe (') before the
number, for example '01481. When you move the cell focus, the apostrophe is
hidden, the leading zeroes are retained, and the number is converted to left-
aligned text.
Numbers as text
Numbers can also be entered as text using one of the following methods.
Method 1
1) With the cell selected, right-click on the cell and select Format Cells in the context menu,
or go to Format > Cells on the Menu bar, or use the keyboard shortcut Ctrl+1, to open
the Format Cells dialog (Figure 75).
2) Make sure the Numbers tab is selected, then select Text in the Category list.
3) Click OK. The number is converted to text and, by default, left-aligned.
Method 2
1) Select the cell.
2) On the Sidebar, go to the Properties deck. If necessary, click the Open Panel icon (+ or
arrow) by Number Format to open that panel (Figure 76).
3) Select Text in the category drop-down list. Formatting is applied to the cell immediately.
Text
Click in the cell and type the text. By default, text is left-aligned in a cell. Cells can contain several
lines of text. If you want to use paragraphs, press Ctrl+Enter to create another paragraph.
On the Formula bar, you can extend the Input line if you are entering several lines of text. Click
on the Expand Formula Bar icon located on the right-hand end of the Formula bar and the Input
line becomes multi-line.
Cell fields
You can insert a field linked to the date, sheet name, or document name in a cell.
1) Select a cell and double-click to activate edit mode.
2) Right-click and select Insert Field > Date, or Sheet Name, or Document Title in the
context menu.
Above those three options are other Date and Time buttons, which will insert the same
information but it will not be updated or recalculated as the options mentioned above.
Note
The Insert Field > Document Title command inserts the name of the
spreadsheet and not the title defined in the Description tab in the Properties
dialog for the file.
Tip
The fields are refreshed when the spreadsheet is saved or recalculated when
using the Ctrl+Shift+F9 shortcut.
AutoInput tool
The AutoInput tool in Calc automatically completes entries, based on other entries in the same
column. When text is highlighted in a cell, AutoInput can be used as follows:
1) To accept the completion, press Enter or F2, or click the left mouse button.
2) To view more completions that start with the same characters, use the key combinations
Ctrl+Tab to scroll forward, or Ctrl+Shift+Tab to scroll backward.
3) To see a list of all available AutoInput text items for the current column, use the keyboard
combination Alt+Down Arrow.
When typing formulas using characters that match previous entries, a Help tip will appear listing
the available functions that start with matching characters. AutoInput ignores the case sensitivity
of any data you enter.
By default, AutoInput is activated in Calc. To turn it off, go to Tools on the Menu bar and deselect
AutoInput.
Fill tool
You can use the Fill tool to duplicate existing content or create a series in a range of cells (Figure
78).
1) Select the cell containing the contents you want to copy or start the series from.
2) Drag the mouse pointer in any direction or hold down the Shift key and click in the last
cell you want to fill.
3) Go to Sheet > Fill Cells on the Menu bar and select the direction in which you want to
copy or create data (Fill Up, Fill Down, Fill Left, or Fill Right), or Fill Series, or Fill
Random Number in the submenu.
Tip
You can use the keyboard shortcut Ctrl+D as an alternative to selecting Sheet >
Fill Cells > Fill Down on the Menu bar.
Caution
When you are selecting cells so you can use the Fill tool, make sure that none of
the cells contain data, except for the cell data you want to use. When you use the
Fill tool, any data contained in the selected target cells is overwritten.
Selection lists
Selection lists are available only for text and are limited to using only text that has already been
entered in the same column.
1) Select a blank cell in a column that contains cells with text entries.
2) Right-click and select Selection Lists in the context menu, or press Alt+Down Arrow. A
drop-down list appears listing any cell in the same column that either has at least one text
character or whose format is defined as text.
3) Click on the text entry you require and it is entered into the selected cell.
Caution
This technique automatically overwrites, without any warning, any information that
is already in the cells on the selected sheets. Make sure you deselect the
additional sheets when you are finished entering information that is going to be
repeated before continuing to enter data into the spreadsheet.
Editing data
Deleting data
Replacing data
To completely replace data in a cell and insert new data, select the cell and type in the new data.
The new data will replace the old data but will retain the cell formatting.
Alternatively, select the cell and click in the Input line on the Formula bar (Figure 52 on page
111), then double-click on the data to highlight it completely and type the new data.
Changing data
Sometimes it is necessary to edit the contents of a cell without removing all of the data from the
cell. For example, changing the phrase “Sales in Qtr. 2” to “Sales rose in Qtr” can be done as
follows.
Tip
You may want to enable Tools > Options > LibreOffice Calc > General > Press
enter to switch to edit mode. Then, when you press the Enter key in a selected
cell, the cell switches to edit mode, eliminating the need to press F2.
Tip
To see which combination of options on the right side would apply if one of the
Preset buttons is selected, deselect the Run immediately option below the
Presets. With the Run immediately option selected, clicking on a Preset button
applies that combination of options and closes the dialog.
Formatting data
Note
All the settings discussed in this section can also be set as a part of the cell style.
See Chapter 5, Using Styles and Templates, in the Calc Guide for more
information.
Automatic wrapping
To automatically wrap multiple lines of text in a cell, use one of the following methods.
Method 1
1) Right-click on the cell and select Format Cells in the context menu to open the Format
Cells dialog.
2) On the Alignment tab (Figure 83), under Properties, select Wrap text automatically and
click OK.
Merging cells
You can select contiguous cells and merge them into one as follows:
1) Select the range of contiguous cells you want to merge.
2) Right-click on the selected cells and select Merge Cells in the context menu, or go to
Format > Merge Cells > Merge Cells or Merge and Center Cells on the Menu bar, or
click on the Merge and Center Cells icon on the Formatting toolbar. Using Merge and
Center Cells will center align any contents in the cells.
3) If the cells contain any data, a small dialog (Figure 85) opens, showing choices for
moving or hiding data in the hidden cells. Make your selection and click OK.
Caution
Merging cells can lead to calculation errors in formulas used in the spreadsheet.
Splitting cells
You can split a cell that was created from several cells by merging.
1) Select a merged cell.
2) Go to Format > Merge Cells > Split Cells on the Menu bar, or right-click and select Split
Cells in the context menu, or click on the Merge and Center Cells icon on the Formatting
toolbar.
3) Any data in the cell will remain in the first cell. If the hidden cells did have any contents
before the cells were merged, then you have to manually move the contents in to the
correct cell.
Tip
For consistency in a spreadsheet, use cell styles whenever possible.
Note
Cell border properties apply only to the selected cells and can be changed only
when you are editing those cells. For example, if cell C3 has a top border, that
border can only be removed by selecting C3. It cannot be removed in C2 despite
also appearing to be the bottom border for cell C2.
AutoFormatting of cells
Using AutoFormat
You can use Calc’s AutoFormat feature to format a table (range of cells) quickly and easily. It also
lets you format different tables of the sheet with the same look and feel very easily. All formatting
applied is direct formatting.
1) Select the cells in at least three columns and rows, including column and row headers,
that you want to format.
Note
The new AutoFormat is stored in your computer user profile and is not available
to other users. However, other users can import the new AutoFormat by selecting
the table range in the spreadsheet document and defining it as a new
AutoFormat.
Using themes
Calc comes with a predefined set of formatting themes (set of styles) that you can apply to
spreadsheets. It is not possible to add new themes to Calc, but you can modify the theme styles
after the theme is applied to the spreadsheet. The modified styles are available for use only in
that spreadsheet.
Caution
Applying a new theme over an existing one will override all existing theme styles
customization with the new theme styles.
Filtering data
A filter is a list of conditions that each entry has to meet to be displayed. Calc provides three
types of filter:
Standard – Specifies the logical conditions to filter the data. It allows filtering by text color
or background color.
AutoFilter – Filters data according to a specific value or string. Automatically filters the
selected cell range and adds list boxes to the top row, where you can choose the items
that you want to display.
Advanced – Uses filter criteria from specified cells.
Setting up and using filters are explained in Chapter 2, Entering and Editing Data, of the Calc
Guide.
Cell protection
All or some of the cells in a spreadsheet can be password protected to prevent changes being
made by unauthorized users. This can be useful when multiple people have access to the
spreadsheet itself, but only a few are allowed to modify the data it contains. Protected cells can
optionally be hidden.
Use the Cell Protection tab of the Format Cells dialog (Figure 88) to set up cell protection and
toggle the hidden status of protected cells.
Sorting records
Sorting within Calc arranges the cells in a sheet using the sort criteria that you specify. Several
criteria can be used and a sort applies each criteria consecutively. Sorts are useful when you are
searching for a particular item and become even more useful after you have filtered data.
Also, sorting is useful when you add new information to your spreadsheet. When a spreadsheet
is long, it is usually easier to add new information at the bottom of the sheet, rather than adding
rows in their correct place. After you have added information, you can then sort the records to
update the spreadsheet.
For more information on how to sort records and the sorting options available, see Chapter 2,
Entering and Editing Data, in the Calc Guide.
To sort cells in a spreadsheet using the Sort dialog:
1) Select the cells to be sorted.
2) Go to Data > Sort on the Menu bar, or click the Sort icon on the Standard toolbar, to
open the Sort dialog (Figure 91).
Cell comments
Comments are small notes and text that can serve as a reminder or an aside to the user. A
comment is not considered a part of the spreadsheet for calculation or printing purposes, and will
only appear when hovering the mouse over the particular cell that has been commented.
The easiest way to insert a comment is by right-clicking on the desired cell and selecting Insert
Comment in the context menu. Alternatively, you can select Insert > Comment on the Menu bar,
or use Ctrl+Alt+C, or click the Insert Comment icon on the Standard toolbar.
By default, comments will remain hidden and only appear when hovering the mouse. Cells that
contain comments are marked with a red square in the upper right corner. To toggle the visibility
of comments, select View > Comments on the Menu bar.
For more information, see Chapter 12, Sharing and Reviewing Spreadsheets, in the Calc Guide.
Creating formulas
Functions and formulas can be entered directly into the Formula bar or by accessing the Function
Wizard. To launch the function wizard, click the Function Wizard icon to the right of the Name
Box, or select Insert > Function on the Menu bar, or press Ctrl+F2.
Note
A fast alternative to the Function Wizard is the Functions deck on the Sidebar,
where you can quickly list and narrow down functions. It provides brief
explanations on their use and syntax, but does not provide the search or data
entry capabilities of the full wizard.
LibreOffice Calc offers powerful built-in functions under multiple domains or categories. They are:
Database, Date & Time, Financial, Information, Logical, Mathematical, Array, Statistical,
Spreadsheet, Text, and Add-in functions.
For a more in-depth introduction to formulas and the Function Wizard, see Chapter 8, Using
Formulas and Functions, in the Calc Guide.
Pivot charts
To get a quick visual representation of the data contained in a pivot table, you can generate a
pivot chart. Functionally, pivot charts are nearly identical to regular charts except in two key
areas. First, as the data in the pivot table is altered, the pivot chart will adjust itself automatically.
Second, it includes field buttons, graphical elements that allow you to filter the content of the
pivot table from within the pivot chart itself.
For more information on pivot charts and charts in general, see Chapter 3, Creating Charts and
Graphs, and Chapter 9, Using Pivot Tables, in the Calc Guide.
Print ranges
Print ranges have several uses, including printing only a specific part of the data or printing
selected rows or columns on every page. For more information about using print ranges, see
Chapter 7, Printing, Exporting, Emailing, and Signing in the Calc Guide.
Note
The additional print range will print as a separate page, even if both ranges are
on the same sheet.
Printing | 141
Editing a print range
At any time, you can directly edit the print range, for example to remove or resize part of the print
range. Go to Format > Print Ranges > Edit on the Menu bar to open the Edit Print Ranges
dialog where you can define the print range.
Printing options
To select the printing options for page order, details, and scale to be used when printing a
spreadsheet:
1) Go to Format > Page Style on the Menu bar to open the Page Style dialog (Figure 93).
2) Select the Sheet tab and make your selections from the available options. Click OK.
Page breaks
While defining a print range can be a powerful tool, it may sometimes be necessary to manually
adjust the Calc printout manually using a manual or page break. A page break helps to ensure
that the data prints properly according to the page size and page orientation. You can insert a
horizontal page break above or a vertical page break to the left of the active cell.
Inserting a break
To insert a page break:
1) Navigate to the cell where the page break will begin.
2) Go to Sheet > Insert Page Break on the Menu bar.
3) Select Row Break to create a page break above the selected cell. Select Column Break
to create a page break to the left of the selected cell.
Deleting a break
To remove a page break:
1) Navigate to a cell that is next to the break you want to remove.
2) Go to Sheet > Delete Page Break on the Menu bar.
3) Select Row Break or Column Break as needed.
Note
Multiple manual row and column breaks can exist on the same page. When you
want to remove them, you have to remove each break individually.
For more information on manual breaks, see Chapter 7, Printing, Exporting, E-mailing, and
Signing, in the Calc Guide.
Printing | 143
Headers and footers are also assigned to a page style. You can define more than one page style
for a spreadsheet and assign different page styles to different sheets within a spreadsheet. For
more information, see Chapter 5, Using Styles and Templates, in the Calc Guide.
Chapter 4,
Working with Styles,
Templates, and Hyperlinks
Using consistent formatting in documents
Introduction
Formatting text and other elements in LibreOffice documents can be done using three methods,
which are templates, styles and direct formatting. Direct formatting is also known as manual
formatting. Understanding how to format documents unlocks the power of LibreOffice.
Styles
Styles in LibreOffice provide a way of gathering all the required formatting attributes into
one option. A style then can be applied several times to text or objects creating a
consistent format. For example, using paragraph styles defines numerous settings such
as font type and size, whether paragraphs should be indented, spacing between lines,
paragraph alignment on a page, and so on.
When LibreOffice is installed onto a computer, a default set of styles is also installed. This
provides a starting point for creating documents using styles. These default styles cannot
be deleted, but can be modified to formatting requirements. New, or custom, styles can be
created and these styles can be deleted.
Templates
A template is a document that contains specific formatting styles, graphics, tables,
objects, and other information. 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. This template can
then be used to create new documents with the same look and feel of company
documentation.
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
Note
Direct, or manual, formatting overrides the formatting attributes in styles. Direct
formatting cannot be changed, or removed, by applying a style to it. To remove
direct formatting, select the text, then right-click and select Clear Direct
Formatting from the context menu. Alternatively, clear direct formatting from
selected text using the keyboard shortcut Ctrl+M (macOS ⌘+M), or go to
Format > Clear Direct Formatting on the Menu bar. For more information on
clearing direct formatting, see the relevant user guide for each LibreOffice
module.
Style categories
Style are available in categories as follows. Actual style categories available depends on the
LibreOffice module that is open. See Table 5 on which style categories are available for each
module. For more information, see the specific user guide for each LibreOffice module.
Page styles
Control margins, headers and footers, borders and backgrounds. In Calc, page styles
also define the sequence for printing sheets.
Paragraph styles
Control all aspects of paragraph appearance, such as text alignment, tab stops, line
spacing, and borders, and can include character formatting.
Character styles
Affects selected text within a paragraph, such as the font and size of text, or bold and
italic formats.
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.
Styles | 147
Table 5: 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
Style types available depend on the LibreOffice module that is open. See Table 6 on which style
types are available for each module. For more information on styles, see the specific user guide
for each LibreOffice module.
Hierarchical
Displays the styles in the selected category in a hierarchical list. To view the styles in 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.
Applying styles
LibreOffice provides several ways to select and apply styles, as follows:
• Styles deck on Sidebar.
• View > Styles on Menu bar.
• Styles on the Menu bar (Writer and Calc).
• Set Paragraph Style on the Formatting toolbar (Writer).
• Apply Style on the Formatting toolbar (Calc).
• Right-click and select Character, Paragraph, or List from context menu (Writer).
• Right-click and select Styles from context menu (Calc).
• Fill Format Mode in Styles deck on Sidebar (Writer and Calc).
• Keyboard shortcuts where available.
Styles | 149
Figure 96: Styles deck on Sidebar — Writer
3) 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 categories” on page 165 for more
information on available style categories for each LibreOffice module.
4) 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 types” on page 166 for more information on
available style types for each LibreOffice module.
5) 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.
Styles submenu
The Styles submenu is only available for the LibreOffice Writer and Calc modules. The styles
available in this submenu are the same as the default set of styles available in the Styles deck on
the Sidebar, as shown by Figure 97 for Writer and Figure 98 for Calc.
1) Select the text, or element where a style is going to be applied.
2) Go to Styles on the Menu bar to open the Styles submenu.
3) Double click on the style name to apply its attributes to the selected text, or element.
Context menu
Writer
A context menu is only available in Writer to apply paragraph, character, or list styles to selected
text using one of the following methods:
• Right-click in a paragraph and select Paragraph in the context menu that opens. Select a
paragraph style from the options in the sub-context menu that opens.
• Highlight characters in a paragraph, then right-click on the selected characters and select
Character from the context menu that opens. Select a character style from the options in
the sub-context menu that opens.
• Right-click in a list item and select List in the context menu that opens. Select a list style
from the options in the sub-context menu that opens.
Calc
A context menu is only available in Calc to apply cell styles to selected cells. Right-click in a cell
and select Styles in the context menu that opens, then select a cell style from the options
available in the sub-context menu that opens.
Styles | 151
Formatting toolbar
Writer
In Writer only, after a paragraph style has been used at least once in a document, the style name
appears in the Set Paragraph Style drop-down list at the left-hand end of the Formatting toolbar.
1) Click in a paragraph to select it.
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.
Calc
In Calc only, after a cell style has been used at least once in a spreadsheet, 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.
Keyboard shortcuts
In Writer, keyboard shortcuts can be used to apply paragraph styles to selected paragraphs and
perform some style editing, as shown in Table 98.
Table 7: Paragraph style and style editing keyboard shortcuts
Style name & editing function Windows & Linux macOS
Text Body 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
Note
If a style has been selected in Inherit from on the dialog Organizer page, any
formatting changes to this style are also carried out on the new style that is
created.
Styles | 153
4) Create the new style using one of the following steps to open the New Style from
Selection dialog:
– In Writer, click on Styles actions on the Sidebar title bar and select New Style from
Selection from the context menu.
– In Calc, Draw, or Impress, click on New Style from Selection.
5) In the New Style from Selection dialog, enter a name for the new style in Enter new style
name text box.
6) Click OK to create the new style in the selected style category using the selected
formatting options and close the dialog.
Note
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.
Editing styles
When LibreOffice is installed onto a computer, a default set of styles is also installed providing a
starting point for creating documents using styles. These default styles cannot be deleted, but
can be edited to match the formatting requirements for documents.
New, or custom, styles can be added to LibreOffice and these styles can also be edited or
deleted. For more information on creating styles, see “Creating new styles” on page 171.
Styles can be edited using one of the following methods:
• Styles deck in the Sidebar.
• Update a style from a selection.
• Use AutoUpdate for paragraph and frame styles only.
• Load styles from another document or template.
Styles | 155
2) On the Formatting toolbar, click on the chevron ˅, or triangle ▼ next to Set Paragraph
Style for Writer, or Apply Style for Calc, to open a drop-down list of styles.
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 99).
4) Use the various options available on the dialog pages to edit the selected style. 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.
Using AutoUpdate
In Writer only, using AutoUpdate applies to paragraph and frame styles only. See the Writer
Guide for more information on AutoUpdate.
If the AutoUpdate option is selected on the Organizer page of the Paragraph Style, or Frame
Style dialog, applying any direct formatting to a paragraph, or frame, that uses a style in the
document automatically updates the style.
Renaming styles
Only custom styles can be renamed. The styles that were installed during the LibreOffice
installation cannot be renamed.
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 renamed from the displayed list of custom styles.
4) Right-click on the selected style and select Modify from the context menu to open the
style dialog for the selected type of of style.
Note
If Modify is grayed out in the context menu, then the selected style cannot be
renamed.
Deleting styles
Only custom styles can be deleted. The styles that were installed during the LibreOffice
installation cannot 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.
Note
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 LibreOffice, but only in Writer for text documents, or Calc for
spreadsheets. For more information on page styles, see the Writer Guide and the Calc Guide.
For example, in many documents, such as letters and reports, the first page is different from the
other pages in the document. In Writer, the first page of a letter normally has a company logo and
all the necessary contact details. Subsequent letter pages only have the company logo. In Calc,
the first page of a report may have no header or footer, while subsequent report pages have
header and footers. When a first page style is created, the page style of the following pages can
be specified to be applied automatically.
An example procedure of creating a new page style is as follows:
1) Open a new text document and open the Styles deck on the Sidebar.
2) Click on Page Styles at the top of the Styles deck to open the Page Styles panel.
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) Type a name for 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 Modify from the
context to open the Page Style dialog.
6) Use the options available on the various pages of the Page Style dialog to modify and
format the page.
7) Click OK to save the changes and close the Page Style dialog.
8) To apply the new page style to a page, double-click on the required page style.
Styles | 157
Templates
A template is a document that contains specific formatting styles, graphics, tables, objects, and
other information. A template is used as the basis for creating other documents. For example,
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 styles.
All documents in LibreOffice are based on templates. As a starting point, LibreOffice has a
number of predefined templates that can be used to create different types of documents, for
example business letters, presentations, or drawings. Templates can be created to suit document
requirements. Also, templates can be downloaded from the LibreOffice website using the
following link: https://extensions.libreoffice.org.
If a document is created in LibreOffice without selecting a template, then LibreOffice opens the
new document using the LibreOffice default template for the type of document being created. If
required, this default template can be replaced by a custom template to suit user requirements,
see “Setting default template” on page 179 for more information.
LibreOffice templates
Installing LibreOffice also installs a set of predefined templates. These templates only contain
backgrounds and background objects, providing a starting point to create documents, or create
more templates.
Templates created are located in the My Templates folder after a document is saved as a
template. These templates appear in the LibreOffice startup window and the Select a Template
dialog the next time LibreOffice is started.
Creating templates
Any element properties or settings that can be formatted 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 can be added to a template removing the need to enter text each time a new
document is created: for example, company name and address in a letter 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.
Templates | 159
3) Format any content added to the template requirements.
4) Create, or modify, any styles required for the new template.
5) Go to File > Templates > Save as Template on the Menu bar to open the Save As
Template dialog (Figure 101).
6) Enter a name for the new template in the Enter Template Name text box.
7) Select a template category, from the categories available in Select Template Category.
8) If necessary, select Set as default template to change the default template for the
required document type.
9) Click on Save to save template and close the Save As Template the dialog.
Template wizard
In LibreOffice Writer only, a template wizard can be used to create a template. For more
information on using the template wizard, see the Writer Guide.
1) Go to File > Wizards on the Menu bar and select either Letter, Fax, or Agenda to open a
wizard dialog. An example of the Letter Wizard dialog is shown in Figure 102.
2) Select and format the required options in each of the wizard steps and follow the
instructions on each page of the dialog.
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.
Editing templates
Templates installed with LibreOffice 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.
Templates | 161
Note
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 can only use templates that are in LibreOffice template categories (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.
Tip
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).
Note
Template categories supplied with LibreOffice, or installed 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 104), 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.
Note
Only custom templates can be moved between template categories. Templates
supplied with LibreOffice, or installed using 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 | 163
Note
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.
Note
Templates supplied with LibreOffice, or installed using 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 refers to sources for templates as repositories. A repository can be a directory on a
computer or on the internet. The official template repository for LibreOffice can be found 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 into a folder on the computer.
2) Go to File > New > Templates or File > Templates > Manage Templates on the Menu
bar to open the Templates dialog.
3) In the Filter drop-down lists, select the required document type and template category.
4) Click on Manage at the top right of the Template dialog and select Import from the
context menu to open the Open dialog.
5) In the Open dialog, navigate to the folder where the template is located on the computer.
6) Make sure that Templates is selected in the File type box to display the available
templates.
7) Select the required template and click Open. The Open dialog closes and the template is
imported into the selected template category.
Exporting 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 exported and select Export from the context menu.
3) Navigate to the folder where the template is to be exported to and click on OK. The
template is exported to the selected location and the file browser window closes.
Inserting hyperlinks
1) Select the slide where the hyperlink is going to 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 105).
3) On the left hand side, select the type of hyperlink for insertion.
4) Create the hyperlink using the Hyperlink dialog, then click Apply to insert the hyperlink
into the slide. The hyperlink is inserted into a text box.
5) Click Close or OK to close the dialog.
Tips
To prevent automatically turning website addresses or URLs into hyperlinks, 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), scroll to Unvisited links and/or Visited links. Select the
checkboxes, then select 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.
Note
In LibreOffice Writer and Calc, the Navigator can be used to insert hyperlinks. For
information, see the Writer Guide and Calc Guide.
Hyperlink types
Internet
Select either Web or FTP protocol. Enter the required web address in the URL text box
and a name for the hyperlink in the Text text box (Figure 105).
Hyperlinks | 165
Mail
Enter email details in Recipient and the subject of the link in Subject (Figure 106).
Hyperlinks | 167
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.
New Document
Creates a hyperlink to 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 108).
Further Settings
This section in the Hyperlink dialog is common to all the hyperlink types, although 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) Depending on LibreOffice module, select a hyperlink using one of the following methods:
– Click anywhere in the hyperlink text.
– Click and drag a selection marquee over the hyperlink text to display a text box
border and selection handles.
– Double-click on a hyperlink to open an editing box.
2) Select editing mode and open the Hyperlink dialog using one of the following methods:
– Click on Insert Hyperlink on the Standard toolbar.
– Go to Edit > Hyperlink on the Menu bar.
– Use the keyboard shortcut Ctrl+K (macOS ⌘+K).
– Right-click and select Edit Hyperlink from the context menu.
3) Use the various options in the Hyperlink dialog to make the changes, then click Apply to
save the changes. The Hyperlink dialog remains open for further editing of hyperlinks.
4) When editing hyperlinks is complete, click on OK to close the Hyperlink dialog.
Removing hyperlinks
To remove the hyperlink from text and leave just the text, right-click on the link and select
Remove Hyperlink from the context menu. If necessary, reformat the text to the document
requirements. To completely remove a hyperlink from a document, select the hyperlink and press
the Delete or Backspace key.
Chapter 5,
Working with Images and
Graphics
Images, Graphics, Gallery, Drawing Tools, Fontwork
Introduction
Adding image and graphic files to LibreOffice documents consist of the following types:
• Image and graphic files, for example photos, drawings, PDF documents, and scanned
images.
• Diagrams created using LibreOffice Draw.
• Artwork created using clipart or Fontwork.
• Charts created using LibreOffice Calc.
• Images, clipart and diagrams from the LibreOffice Gallery.
This chapter provides basic instructions and information for image and graphic files. For more
detailed information and instructions on image and graphic files, see the specific user guide
available for each LibreOffice module.
Creating
Image and graphic files are created using a graphics program, scanning, or downloading from
the Internet, or photos from a digital camera. When downloading image and graphic files from the
Internet, make sure the licensing, or copyright, allows the use of an image or graphic.
LibreOffice can import, rotate and flip various vector (line drawing) image and graphic files.
LibreOffice also supports raster (bitmap) file formats and the most common formats for raster
files are GIF, JPG, PNG, and BMP. See Appendix B for a full list of image and graphic formats
that LibreOffice can import.
LibreOffice can also import SmartArt images from Microsoft Office files. For example, Writer can
open a Microsoft Word file that contains SmartArt and edit the SmartArt images.
Editing
To edit photos and other bitmap images, use a bitmap editor. To edit line drawings, use a vector
drawing program. There is no need to use additional graphic applications because LibreOffice
Draw has the capability to edit images and graphics.
Freely available Open-source tools are also a good alternative when editing image and graphic
files, for example GIMP (bitmap editor) and Inkscape (vector drawing program). Open-source
tools and many other Open-source applications work on Windows, macOS, and Linux operating
systems.
Adding
Image and graphic files can be added to a document using one of the following methods:
• Inserting a file directly from a graphics program, or a scanner.
• Dragging images and graphics from a clipart gallery.
• Copying and pasting from a source on a computer.
Note
To link an image, or graphic, file instead of embedding, hold down the
Ctrl+Shift keys (macOS ⌘+Shift) while dragging the file.
Note
If the Link option is selected, a message box appears when Open is clicked and
the Confirm Linked Graphic dialog opens. Select Keep Link to the link the file, or
Embed Graphic to embed the image, or graphic. To prevent this message from
appearing again, deselect the option Ask when linking a graphic. When
inserting the same image, or graphic, several times in a document, LibreOffice
embeds only one copy of the file.
Note
If the source document is closed before the image is pasted into the target
document, the image stored on the clipboard could be lost.
Embedding
Embedding linked image, or graphic, files breaks the link to the file and becomes part of the
document. Linked images, or graphics can be embedded as follows:
1) Open a document in LibreOffice and go to Edit > External Links on the Menu bar to
open the Edit Links dialog (Figure 110).
2) Select the files that are going to be embedded.
3) Click on Break Link, then click Yes to confirm embedding the files.
Scanning
If a scanner is connected to a computer, LibreOffice can use the scanning software to scan an
image, graphic, or document, then place the scanned media into the open document. The
following scanning procedure is an example of how to insert scanned media into a document.
1) Go to Insert > Media > Scan > Select Source on the Menu bar and select the scanning
source from the list of available devices.
2) Click in the document where the scanned media is to be inserted.
3) Place the media for scanning onto the selected scanner.
4) Go to Insert > Media > Scan > Request on the Menu bar to open the scanning software.
5) Click on Preview in the scanning software to scan the media and a preview image
appears in the scanning software.
6) Adjust settings for image quality, size, and other attributes in the scanning software.
7) Click on Scan in the scanning software and the media is scanned. A scanned copy of the
media is inserted into the LibreOffice document.
8) Click on Close in the scanning software to close the scanning application.
Note
The scanning software must be an application that LibreOffice recognizes and is
compatible to scan and insert media into a document.
After a scanning sources has been selected, LibreOffice remembers the selected
scanning source. This eliminates the need to select a scanning source each time
scanned media is inserted into a document.
Image toolbar
When an image is inserted, or an image is selected in the document, the Image toolbar opens
automatically. If the Image toolbar does not open, go to View > Toolbars on the Menu bar and
select Image from the submenu. Two other toolbars also become available when an image is
selected:
• Image Filter toolbar, which can be used as a floating toolbar.
• Color toolbar, which opens as a separate floating toolbar.
Using these three toolbars together, corrections and adjustments can be applied to an image.
Also, special effects can be applied, such as transparency, color adjustment, flipping and
rotation, and special effect filters.
Cropping
If only a part of an image, or graphic, is to be used in a document, it can be cropped. LibreOffice
provides two ways to crop an image, or graphic:
• Crop tool — available as a tool on toolbars, or in a context menu after right-clicking on an
image, or graphic. The Crop tool provides a quick and easy way to crop an image, or
graphic.
• Crop page in the Writer Image dialog — accessed by right-clicking on the image, or
graphic, and selecting Properties in the context menu. The Crop page provides more
control when cropping.
Note
When an image, or graphic, is inserted into a LibreOffice document and is
cropped, the image, or graphic, itself is not cropped. LibreOffice masks the parts
of the image, or graphic, that have been cropped. If the document is exported as
HTML, the original image, or graphic, is also exported. For exporting individual
cropped images, or graphics, see “Exporting” on page 201.
Resizing
To fit an image, or graphic, into a LibreOffice document, it may have to be resized. The quickest
way to resize an image, or graphic, is to use the selection handles as shown by the following
example.
1) Click on an image, or graphic, to display the selection handles.
Positioning
After inserting an image, or graphic, into a LibreOffice document, it may have to be repositioned
to achieve the correct document format. The quickest way to resize an image, or graphic, is to
use the cursor as shown by the following example.
1) Select an image, or graphic, to display the selection handles.
2) Move the cursor over a selected image, or graphic, and the cursor changes shape to a
grabbing cursor. The grabbing shape depends on the computer setup and the computer
operating system.
3) Click and drag the selected image, or graphic, to the desired position. During movement,
a ghost image appears helping with repositioning (Figure 113).
4) Release the cursor when the image, or graphic, is in the desired position.
Tip
The arrow keys on the keyboard can also be used to quickly move a selected
image, or graphic, into a new position.
Rotating images
After inserting an image, or graphic, into a LibreOffice document, it can be rotated to achieve the
correct document format. The quickest way to rotate an image, or graphic, is to use the cursor as
shown by the following example.
1) Click on an image, or graphic, to display the selection handles.
2) Click again (NOT double-click) on the selected image, or graphic, switching on rotation
mode, or go to Format > Rotate on the Menu bar.
Note
Using a double-click on an image, or graphic, switches on text editing mode for
the selected image, or graphic.
3) Move the cursor over one of the corner handles and the cursor changes shape indicating
the movement direction.
4) Click on a corner selection handle and move in the direction required to rotate the object.
Only the corner selection handles are active for rotation.
5) When satisfied with the rotation, release the cursor.
6) To change the rotation center of the object, click and drag the central pivot point to the
desired position before rotating. The central pivot point can be moved to any position on
the document, even outside of the image boundaries.
Flipping
After inserting an image, or graphic, into a LibreOffice document, it can be flipped either
vertically, or horizontally. Depending on which LibreOffice module is being used, use one of the
following methods to quickly flip an image, or graphic:
• Right-click on the selected image, or graphic, and select Flip > Vertically or Horizontally
from the context menu.
• Click on Vertically, or Horizontally on the Line and Filling toolbar.
• Click on Flip Vertically, or Flip Horizontally on the Image toolbar.
• Go to Format > Flip > Vertically, or Horizontally on the Menu bar.
• Go to Format > Rotate or Flip > Flip Vertically, or Flip Horizontally on the Menu bar
• Click on Flip Vertically, or Flip Horizontally in the Position and Size panel on the
Properties deck of the Sidebar.
Arranging
LibreOffice organizes images and graphics in a stack. The image, or graphic, on the top level of a
stack covers the images and graphics on the lower levels, if any overlapping occurs. Select
images, or graphics, and use one of the following methods to change the stack level:
• Click on the required arrange tool on the Line and Filling toolbar.
• Right-click on selected objects and select Arrange from the context menu, then select
the required arrange option from the sub-context menu.
• Go to Format > Arrange on the Menu bar and select an option from the submenu.
• Use the keyboard shortcut available for each arrangement option.
The stack level of each image, or graphic, can be changed. The options available for arranging
the stack level of images, or graphics are as follows:
Bring to Front
Selected object is moved in front of all other objects. Keyboard shortcut Ctrl+Shift++
(macOS ⌘+Shift++).
Bring Forward
Selected object is moved one level up in the stack. Keyboard shortcut Ctrl++ (macOS
⌘++).
Send Backward
Selected object is moved one level down in the stack. Keyboard shortcut Ctrl+–
(macOS ⌘+–).
Send to Back
Selected object is moved behind all other objects. Keyboard shortcut Ctrl+Shift+–
(macOS ⌘+Shift+–).
In Front of Object
Moves the first selected object in front of the second selected object. Select the first
object, then click on the second object and the objects swap position.
Exporting
To use another graphics application to edit an image, or graphic, the file is exported directly from
the document. The following procedure is an example only. Actual procedure depends on the
computer operating system and computer setup.
1) Right-click on the image, or graphic.
2) Select Save from the context menu to open the Image Export dialog (Figure 115).
3) Navigate to the folder where the image, or graphic, is going to be exported to.
4) Enter a file name in the File name text box and select the file type from the options
available from the drop-down list in File type.
5) Click on Save to export the file and close the dialog.
6) Open the graphics program, then navigate to the folder where the file is located.
7) Carry out the necessary editing to the file and save the file in the required format. The
image, or graphic, can then be re-inserted back into the document.
Compressing
If an image, or graphic, has a large file size, it can be compressed to reduce the file size. This
results in a smaller file size for the document, but may result in a loss of quality when the image,
or graphic, is compressed. The following procedure is an example only. Actual procedure
depends on the computer operating system and computer setup.
1) Right-click on the image, or graphic.
LibreOffice Gallery
Graphics in the Gallery are grouped by themes, such as Arrows, Diagrams, and Icons, and are
installed when LibreOffice is installed on a computer. The Gallery can be displayed in Icon View
(Figure 111 on page 196), or Detailed View (Figure 117).
Default themes
Images and graphics in the Gallery are grouped by themes, such as Arrows, Bullets, Diagrams
and so on. These default themes are listed alphabetically in the box at the top of the Gallery deck
on the Sidebar. Click on a theme name to see its images and graphics displayed in the Gallery
deck.
The Gallery default themes are read-only. No images or graphics can be added to or deleted
from these themes. The default themes are easily identified by right-clicking on a theme name
and the only available option in the context menu is Properties.
Custom themes
Custom themes, when added to the Gallery, are the only themes where images and graphics can
be added. Custom themes are listed alphabetically, along with the default themes, in the box at
the top of the Gallery deck on the Sidebar. Custom themes are easily identified by right-clicking
on a theme name and the options available in the context menu are Delete, Rename, and
Properties.
Tip
Gallery themes are available from the LibreOffice extensions website at
https://extensions.libreoffice.org/. This website also includes themes from
previous versions of LibreOffice that are no longer installed when newer versions
of LibreOffice are installed. See Chapter 13, Customizing LibreOffice for
information on managing extensions.
Creating themes
1) Open the Gallery deck in the Sidebar using one of the following methods:
– Go to Insert > Media > Gallery on the Menu bar.
– Click on Gallery in the Sidebar.
2) Click New at the bottom of the Gallery deck and the Properties of New Theme dialog
opens (Figure 118).
3) Click on General and type a name for the new theme in the text box.
4) Click OK to save the new theme and close the dialog. The new theme is displayed in the
list of themes in the Gallery.
Note
The name of the Properties of New Theme dialog changes to show the name of
the newly created custom theme in the Gallery deck.
Note
Images and graphics in custom themes are linked files and are deleted from the
Gallery only. The original image and graphic files are not deleted.
Updating themes
All images and graphics in the Gallery are linked files. It is recommended that any custom
themes are updated on a regular basis to make sure that all the files are still available.
1) Open the Gallery deck and select a custom theme that contains at least one image or
graphic.
2) Right-click on the name of the selected custom theme.
3) Select Update from the context menu and the links to all the image and graphic files are
updated.
Note
The location of Gallery themes installed using LibreOffice extensions are
determined by the extension settings.
Note
The value _self for the target frame works in the vast majority of occasions. It is
not recommended to use the other selections unless absolutely necessary.
Tip
When creating complex drawings, it is recommended to use LibreOffice Draw to
make use of more advanced drawing features, for example drawing layers and
styles.
Drawing toolbar
An example Drawing toolbar is shown in Figure 121. If the Drawing toolbar is not displayed, it can
be opened by going to View > Toolbars > Drawing on the Menu bar, or by clicking on Show
Draw Functions on the Standard toolbar.
The default tools available on a Drawing toolbar do vary slightly between the LibreOffice
modules. Tools can be added to a Drawing toolbar using Visible Buttons, or customizing the
toolbar. See Chapter 12, Configuring LibreOffice, Chapter 13, Customizing LibreOffice for more
information, or the specific user guide for each LibreOffice module.
Note
The following procedures are examples only using LibreOffice Writer. Actual
procedures depend on the LibreOffice module being used, computer operating
system, and computer setup.
Changing properties
1) Click on Select on the Drawing toolbar, then select the drawing object.
2) On the Drawing Object Properties toolbar, select each property tool required for the
drawing object.
Grouping objects
This section gives only a brief introduction to grouping of objects. An example of grouping two
objects together is shown in Figure 123. For more information on working with grouped objects,
see the specific user guide for each LibreOffice module.
Grouping of objects is similar to putting objects into a container. Objects within a group are
moved together as one object and any changes made are applied globally to the objects within
the group. A group can always be undone and the objects that make up the group can always be
manipulated separately.
Temporary grouping
Temporary grouping is when several objects are selected together. Any changes to the objects
are applied to all of the objects within the temporary group. For example, a temporary group of
objects can be rotated in its entirety.
A temporary group is created using one of the following methods:
• Hold down the Shift key whilst clicking multiple objects on a slide.
• Click and drag the cursor to create a marquee around multiple objects. Release the
cursor and all the objects within the marquee are selected.
Permanent grouping
1) Objects are grouped together using one of the following methods:
– Hold down the Shift key whilst clicking multiple objects on a slide.
– Click and drag the cursor to create a marquee around multiple objects. Release the
cursor and all the objects within the marquee are selected.
– To select all the objects on the slide, go to Edit > Select All on the Menu bar, or use
the keyboard shortcut Ctrl+A (macOS ⌘+A).
2) With selection handles displayed, use one of the following methods to create a group of
selected objects:
– Go to Format > Group > Group on the Menu bar.
– Use the keyboard shortcut Ctrl+Shift+G (macOS ⌘+Shift+G).
– Right-click on an object within the selected group and select Group from the context
menu.
Ungrouping
1) Click on any one of the objects in the group to select the group.
Fontwork
With Fontwork, graphical text art objects can be created to make a document more attractive.
There are many different settings for text art objects (line, area, position, size, and more) giving a
large selection of effects. Fontwork is available with the Writer, Calc, Draw, and Impress modules
of LibreOffice, but there are small differences in the way that each module displays Fontwork.
Creating Fontwork
1) Click on Insert Fontwork Text on the Drawing toolbar, or go to Insert > Fontwork on the
Menu bar to open the Fontwork Gallery dialog (Figure 126).
2) Select a Fontwork style from the dialog and click OK. The selected Fontwork appears
centrally on the page and the dialog closes.
3) Double-click on the Fontwork text graphic to switch on editing mode.
4) Type in the required text to replace the default text in the Fontwork graphic and the text
appears over the default text as shown by the example in Figure 127.
5) Press Esc key, or click outside the Fontwork graphic and the text replaces default text.
Fontwork | 193
Figure 128: Fontwork panel in Properties deck on Sidebar
Fontwork toolbar
The Fontwork toolbar (Figure 125) becomes visible and active when a Fontwork object is
selected. If the toolbar is not visible, go to View > Toolbars > Fontwork on the Menu bar. Also,
the Fontwork panel opens in the Properties deck on the Sidebar (Figure 128) and contains the
same tools as the Fontwork toolbar.
Insert Fontwork Text
Opens the Fontwork Gallery dialog.
Fontwork Shape
Changes the shape of the selected object. Clicking on the triangle ▼ next to Fontwork
Shape opens the Fontwork Shape sub-toolbar (Figure 129) allowing selection of different
Fontwork shapes.
Editing Fontwork
It is possible to treat Fontwork text as an object and apply all the formatting that has been
described in this chapter. Assign line properties only to Fontwork that does not have a 3D effect,
otherwise the changes are not visible. Also, modify some of the Fontwork shapes by moving the
dot that is displayed along with the selection handles. This is similar to modification of the angles
of trapezoid and parallelogram basic shapes.
Generating
1) Go to Insert > OLE Object > QR and Barcode on the Menu bar to open the QR and
Barcode Code dialog.
2) Enter the required information in the URL/Text field. This can be, for example, a website
address, or a product number.
3) Select the error correction factor from the options available in Error correction. This is the
complexity of the graphic generated.
4) Enter the margin required in the Margin text box. The margin is placed around the code
when it is generated.
5) Select the type of code from the options available in the Type drop-down list.
6) Click OK to generate the code and close the QR and Barcode dialog.
Editing
1) After the barcode, or QR code has been generated, right-click in the code and select Edit
Barcode from the context menu to open the QR and Barcode dialog.
2) Make the necessary changes to the information in the QR and Barcode dialog.
3) Click OK to regenerate the code and close the QR and Barcode dialog.
Chapter 6,
Getting Started with Impress
Presentations in LibreOffice
What is Impress?
Impress is the presentation (slide show) program included in LibreOffice. Impress creates
presentations in the Open Document Presentation (ODP) format, which can be opened by other
presentation software or can be exported in different presentation formats.
Slides can be created that contain many different elements, including text, bulleted and
numbered lists, tables, charts, and a wide range of graphic objects such as clip art, drawings,
and photographs. Impress also includes a spelling checker, a thesaurus, text styles, and
background styles.
This chapter introduces some features of Impress and does not attempt to cover all of the
features available in Impress that can be used to create presentations. See the Impress Guide
and LibreOffice Help for more information.
To use Impress for more than very simple presentations requires some knowledge of the
elements used on the slides. Slides containing text use styles to determine the appearance of
that text. Creating drawings in Impress is similar to the Draw module included in LibreOffice. For
more information, refer to Chapter 4, Working with Styles, Templates, and Hyperlinks, and
Chapter 7, Getting Started with Draw, in this guide. It is recommended to consult the Draw Guide
for more details on how to use the drawing tools.
Starting Impress
Start Impress using any of the methods described in Chapter 1, LibreOffice Basics. The main
Impress window opens and, by default, the Select a Template dialog (Figure 132) is displayed.
Tip
To start Impress without the Select a Template dialog, deselect Show this dialog
box at startup in the lower left of the dialog.
In Windows or Linux, go to Tools > Options > LibreOffice Impress > General
on the Menu bar (macOS LibreOffice > Preferences > LibreOffice Impress >
General) and deselect Start with Template Selection under New Document.
Tip
The Slides pane and/or Sidebar can be closed by clicking the X in the upper right
corner of each pane, or go to View > Slide Pane or View > Sidebar on the Menu
bar to deselect. To reopen a pane, select View > Slide Pane or View > Sidebar
on the Menu bar.
Workspace
The Workspace (normally the center of the main window) opens in Normal view. It has four
standard views of Normal, Outline, Notes, and Slide Sorter. For more information, see
“Workspace views” on page 232.
If master slides are being used, then master views become available: Master Slide, Master
Notes and Master Handout. There are no tabs for master views, which are selected by going to
View on the Menu bar. For more information on master slides, see the Impress Guide.
Slides pane
The Slides pane contains thumbnail images of slides in a presentation in the order in which the
slides are shown. Clicking on a slide image in the Slides pane selects it and places the slide in
the Workspace where changes are made to the displayed slide.
• To display or close the Slides pane, go to View > Slide Pane on the Menu bar.
• To close the Slides pane, click on the X in the right top corner of the Slides pane.
• To display or hide the Slides pane, use the Hide/Show marker on the left of the
Workspace.
Several additional operations can be carried out on one or more slides in the Slides pane. Also,
these additional operations are available from a context menu when right-clicking on a slide in
the Slides pane.
• Add new slides to a presentation.
• Hide a slide so that it will not show in a presentation.
• Delete a slide from a presentation.
• Rename a slide.
• Duplicate a slide (copy and paste).
• Move a slide to another position in the slide order by dragging and dropping it to the
desired position.
Also, the following operations can be carried out, although there are more efficient methods than
using the Slides pane:
• Change the slide transition following the selected slide, or after each slide in a group.
• Change the sequence of slides in the presentation.
• Change the slide design.
• Change slide layout for a group of slides simultaneously.
Properties
The Properties deck has ten panels, allowing the slide layout to be changed and the formatting of
any objects on a slide.
• When a slide is selected and appears in the Workspace, the Properties deck opens with
the Slide and Layouts panels available.
• When an object on a slide is selected, the Properties deck has the following panels
available: Character, Lists, Paragraph, Area, Shadow, Line, Position and Size,
Columns, Effect, and Image. Actual panels displayed depends on the type of object
selected.
Styles
On the Styles deck, drawing and presentation styles can be applied to a selected object, new
styles created for drawing and presentation, and both types of styles can be modified. When
saving changes to a style, the changes are applied to all of the elements formatted with that style
in the presentation. For more information on styles, see “Styles” on page 257 and the Impress
Guide.
Gallery
On the Gallery deck, an object can be inserted into a presentation either as a copy. or as a link. A
copy of an object is independent of the original object. Changes to the original object have no
effect on the copy. A link remains dependent on the original object. Changes to the original object
are also reflected in the link. See the Impress Guide for more information.
Navigator
The Navigator deck displays all objects contained in a presentation. It provides a convenient way
to move between slides in a presentation or select an object on a slide. It is recommended to
give slides and objects in a presentation meaningful names so that they are easily identified
when using the Navigator. For more information, see “Navigator” on page 231 and the Impress
Guide.
Shapes
The Shapes deck provides panels quick selection of the most commonly used items when
creating a presentation and are also available on the Drawing toolbar:
Lines and Arrows Curves and Polygons
Connectors Basic Shapes
Symbol Shapes Block Arrows
Flowchart Callout
Stars and Banners 3D Objects.
Animation
The Animation deck provides an easy way to add, change, or remove animations to different
elements or objects on a slide and how they appear during a slide show. For more information on
animation effects, see “Animation effects” on page 273 and the Impress Guide.
Master slides
Using the Master Slides deck, the slide design can be selected for a presentation. Impress
includes several designs for master slides. The default master slide is blank, but the remaining
master slides have backgrounds and styled text. For more information on master slides, see
“Working with master slides” on page 257 and the Impress Guide.
Rulers
Rulers are positioned on the upper and left-hand sides of the Workspace. If the rulers are not
visible, go to View > Rulers on the Menu bar. The rulers show the size of a selected object on
the slide using double lines (highlighted in Figure 134). Rulers are also used to manage object
handles and guide lines when positioning objects.
To change the measurement units of the rulers, right-click on a ruler and select the measurement
unit from the drop-down list, as shown in Figure 135 for the horizontal ruler. The horizontal and
vertical rulers can be set to different measurement units.
The page margins in the drawing area are also represented on the rulers. The margins can be
changed directly on the rulers by dragging them with the mouse. The margin area is indicated by
either a grayed out area on the rulers or borders around the unused area of the ruler. This margin
indication depends on computer setup and operating system.
Status bar
The Status bar (Figure 136), located at the bottom of the Impress window, contains information
that maybe useful when working on a presentation. Several of the fields are the same as those in
other modules of LibreOffice. Some Impress specific fields are described briefly below.
For details on the contents and use of these fields, see Chapter 1, LibreOffice Basics, in this
guide and the Impress Guide. To hide the Status bar, go to View on the Menu bar and deselect
Status Bar.
Slide number
The slide number currently displayed in the Workspace and the total number of slides in
the presentation.
Information area
Changes depending on the object selected on the slide. Examples shown in Table 8.
Table 8: Examples of information
Example selection Examples of information shown
Text area Text Edit: Paragraph x, Row y, Column z
Charts, spreadsheets Embedded object (OLE) “ObjectName” selected
Navigator
The Navigator displays all objects contained in a presentation providing a convenient way to
move around a presentation find items in the presentation, and reorder objects on slides.
To open the Navigator dialog (Figure 137) go to View > Navigator on the Menu bar, or use the
keyboard shortcut Ctrl+Shift+F5 (macOS ⌘+Shift+F5). Alternatively, click on Navigator in
the Sidebar to open the Navigator deck that is similar in appearance and function as the
Navigator dialog.
Toolbars
Toolbars are used when creating a presentation. To display or hide the various toolbars in
Impress, go to View > Toolbars on the Menu bar and select the required toolbar in the submenu
that opens. For example, the Standard and Drawing toolbars are displayed by default, but the
Line and Filling, and Text Formatting toolbars are not shown. For more information on toolbars
and how to use them, see Chapter 1, LibreOffice Basics, and the Impress Guide.
Note
The icons used on toolbars vary depending on the computer operating system
and the selection of icon size and style in Tools > Options > LibreOffice > View
(macOS LibreOffice > Preferences > LibreOffice > View).
Workspace views
The Impress workspace has four standard views selected using tabs: Normal, Outline, Notes,
and Slide Sorter. These tabs are normally displayed the top of the Workspace. If the tabs are
not displayed, then go to View > Views Tab Bar on the Menu bar. Also, different workspace
views can be selected by going to View on the Menu bar and selecting a view in the submenu.
Each of the workspace views is designed to ease the completion of certain tasks.
Note
Each workspace view displays a different set of toolbars when selected. To
customize these toolbar sets, go to View > Toolbars on the Menu bar, then check
or uncheck the toolbars to add or remove.
Normal view
Normal view is the main standard view for creating individual slides in a presentation. In Normal
view slides are designed, text or graphics added and formatted, and any animation effects added
to text or graphics.
To place a slide in Normal view of the Workspace, either click on the slide thumbnail in the Slide
Pane or click on the slide name in the Navigator.
Outline view
Outline view (Figure 139) contains all the slides of the presentation in their numbered sequence.
It shows topic titles, bulleted lists, and numbered lists for each slide in outline format. Only the
text contained in the default text boxes in each slide is shown. If text boxes or graphic objects
have been added to the slides, then these objects are not displayed. Slide names are not
included.
• Use Outline view for the following tasks:
– Make changes in the text of a slide:
– Add or delete text in a slide as in Normal view.
– Move a paragraph in a slide up or down by using the movement arrows on the Outline
toolbar (Figure 138).
– Change the outline level of a paragraph in a slide using the left and right arrow
buttons on the Outline toolbar.
• Compare slides with in an outline. If it is noticed in an outline that another slide is
required, create it directly in Outline view, or return to Normal view to create it.
Notes view
Use Notes view (Figure 140) to add notes to a slide. These notes are not seen when the
presentation is shown to an audience using an external display connected to a computer. Click
on the words Click to add Notes and begin typing.
The Click to add notes text box can be resized using the resizing handles which appear when the
edge of the notes box is selected. Move or change the size of the box by clicking and dragging
on the box border.
Creating presentations
By default, Impress opens with the Select a Template dialog displayed to select a template for a
new presentation. To create a new presentation without a template, click on Cancel in the Select
a Template dialog and a blank slide opens in the Workspace and Slides pane. For more
information on creating presentations, slide show options, and presentation settings, see the
Impress Guide.
New presentation
When creating a new presentation, Impress shows only one slide in the Slides pane and
Workspace.
Note
A new slide is inserted after the selected slide in the presentation. If a slide is not
selected, then the new slide is inserted as the last slide in the presentation.
Duplicating slides
To duplicate a slide, select a slide for duplication in the Slides pane and use one of the following
methods. A duplicate slide is inserted after the selected slide in the presentation.
• Right-click on a slide in the Slides pane and select Duplicate Slide in the context menu.
• Go to Slide Sorter view in the Workspace, right-click on a slide and select Duplicate
Slide in the context menu.
• Go to Slide > Duplicate Slide on the Menu bar.
• Click on the Duplicate Slide icon on the Presentation toolbar.
Slide contents
Several layouts can contain one or more content boxes. Each of these content boxes can be
configured to contain the following elements. For more information on layout content boxes, see
the Impress Guide.
Slide title
Click on Click to add Title and type a title in the text box. Impress enters text editing mode
and the Text Formatting toolbar automatically opens.
Text
Click on Click to add Text and type the contents into the text box. Impress enters text
editing mode and the Text Formatting toolbar automatically opens.
Table
Go to Insert > Table on the Menu bar and the Insert Table dialog opens. Enter the
number of columns and rows, then click OK. The dialog closes and a table is inserted into
the slide. Impress enters text editing mode and the Text Formatting and Table toolbars
automatically open.
Chart
Go to Insert > Chart on the Menu bar and the Impress default chart is inserted in the
slide. The Chart Type panel opens in the Properties deck on the Sidebar allowing editing
of the chart.
Image
Go to Insert > Image on the Menu bar and a file browser opens. Navigate to where the
required image is located. Select the file and click on Open. The image is placed into the
slide and the file browser closes. The Image panel opens in the Properties deck on the
Sidebar allowing editing of the image file.
Audio or video
Go to Insert > Audio or Video on the Menu bar and a file browser opens. Navigate to
where the required audio or video file is located. Select the file and click on Open. The
audio or video file is inserted into the slide and the file browser closes. The Media
Playback toolbar opens allowing operation of the audio or video file.
Note
Text and graphic elements can be readjusted at any time during the preparation
of a presentation. However, changing slide layout that already has contents can
have a dramatic effect. If the layout is changed after contents have been added,
the contents are not lost, but they may need to be reformatted.
Note
It is recommended that changes to slide elements in the layouts included in
Impress are only made using Normal view, which is the default. Attempting any
changes to a slide element when in Master view is possible, but may produce
unpredictable results. Using Master view requires extra care as well as a certain
amount of trial and error.
Removing elements
1) Select a contents box, or an element to highlight it and the selection handles are
displayed.
2) Press the Delete or Backspace key to remove the contents box or element.
Adding text
There are two ways of adding text to a slide — contents box or text box. For more information,
see “Adding and formatting text” on page 242 and the Impress Guide.
Contents box
Click on Click to add Text in the contents box and type the text. Outline styles are
automatically applied to the text as it is inserted. If required, change the outline level of
each paragraph as well as its position within the contents box by using the arrow buttons
on the Outline toolbar and Workspace Outline view.
Modifying presentations
By default, a presentation displays all the slides in the same order as they appear in Slide Sorter
view on the Workspace. Run the presentation at least once, then answer the following questions:
• Are the slides in the correct order? If not, some of the slides have to be moved.
• Is the information well spaced and visible to members of an audience at the back of a
large room? The audience may not be able to see information at the bottom of a slide, so
redesign the presentation to fit the top three-quarters of a screen.
• Would an additional slide make a particular point clearer? If so, create another slide.
• Are some of the slides unnecessary? Hide or delete the slides not required.
• Would animations help some of the slides? This is an advanced technique, but remember
that too many animations may not create a good presentation.
• Is the slide transition the same for all sides? Varying transitions can improve a
presentation.
Once the questions have been answered, make the necessary changes. Making changes can be
carried out in Slide Sorter view on the Workspace. For more information on running a
presentation, see the Impress Guide.
Note
The area fill and borders in AutoLayout text boxes and text boxes can be edited
using the same methods that are used for graphic objects. For more information,
see the Impress Guide.
Text boxes
1) Make sure Normal view is selected in the Workspace.
2) Select the slide where the text is to be added.
3) For horizontal text: click on the selected slide and create a text box using one of the
following methods:
Vertical text
In addition to normal text boxes, where text is horizontally aligned, it is possible to insert text
boxes where the text is vertically aligned. Vertical text is available only when Asian languages are
selected in Tools > Options > Language Settings > Languages (macOS LibreOffice >
Preferences > Language Settings > Languages).
Creating vertical text boxes is similar to creating horizontal text boxes. Use the Insert Vertical
Text tool on the Standard, Drawing, or Text toolbars to create a vertical text box with single or
multiple lines of text. See “Text boxes” on page 243 on how to create a text box for single or
multiple lines of text.
Pasting text
Text can be added to an AutoLayout, or normal text box, by copying it from another document
and pasting it into Impress. The formatting of pasted text will probably not match the formatting of
the surrounding text, or that of the other slides in the presentation. This maybe what is required
on some occasions. However, to make sure that the presentation style is consistent and does not
become a patchwork of different styles, font types, bullet points, and so on, the text has to be
formatted to match the rest of the presentation.
Unformatted text
It is good practice to paste text without formatting and apply the formatting later.
1) Highlight and copy the text from another document or slide.
2) Create a text box on a slide and make sure the text cursor is flashing in the text box.
Alternatively, select an AutoLayout text box on a slide. See “Text boxes” on page 243 and
see “AutoLayout text boxes” on page 243 and the Impress Guide for more information.
3) Paste unformatted text into the text box using one of the following methods. Text is pasted
at the cursor position in the text box formatted using the Default Drawing Style, or
Presentation Style if text was pasted into an AutoLayout text box.
– Go to Edit > Paste Special > Paste Unformatted Text on the Menu bar.
– Click on the triangle ▼to the right of the Paste tool on the Standard toolbar and select
Unformatted Text in the context menu.
– Use the keyboard shortcut Ctrl+Shift+V (macOS ⌘+Shift+V) and select
Unformatted text on the dialog that opens.
4) Format the text to the presentation requirements using the tools on the Text Formatting
toolbar, or the options in Format on the Menu bar.
Note
The Presentation style used in AutoLayout text boxes cannot be changed by
selecting another presentation style. Make sure the AutoLayout text box uses the
presentation style required. Change outline levels and outline styles using the
Tab key or Shift+Tab key combination. See the Impress Guide for more
information.
Note
Drawing styles can be created in Impress and are only available for the
presentation which is being created and has been saved. Templates can also be
created that include any drawing styles required. For more information, see the
Impress Guide.
Creating lists
The procedure to create an unordered (bulleted) or ordered (numbered) list varies depending on
the type of text box used. The tools to manage and format a list are the same. To change the
appearance of a list, see “Changing list type” on page 249.
Tip
To switch off bullets altogether, click on Toggle Unordered List on the Text
Formatting toolbar.
Note
In AutoLayout text boxes, promoting or demoting an item in the list corresponds to
applying a different outline style. The second outline level corresponds to Outline
2 style, the third outline level to Outline 3 style, and so on. A change in level and
style produces other changes, for example, to font size, bullet type, and so on.
Text boxes
Create an unordered or ordered list in a text box as follows:
1) Create a text box on a slide and make sure the cursor is flashing in the text box. See
“Text boxes” on page 243 on how to create a text box.
2) Create a list using one of the following methods:
– Click on Toggle Unordered List or Toggle Ordered List on the Text Formatting
toolbar.
– Click on Toggle Unordered List or Toggle Ordered List in the Lists panel on the
Properties deck in the Sidebar.
– Go to Format > Lists on the Menu bar and select Unordered List or Ordered List in
the submenu.
Note
The Bullets and Numbering dialog can also be opened by going to Format >
Bullets and Numbering on the Menu bar, or by right-clicking on a list point and
selecting Bullets and Numbering from the context menu.
Note
If a list was created in an AutoLayout text box, then the Outline styles can be
modified to change the list type and/or format. Changes made to an Outline style
apply to all the slides that use that style. See the Impress Guide for more
information.
Text columns
The type of columns used in Impress are continuous flow columns. This means that when text
reaches the bottom of a column, it automatically flows into the next column as text is added. This
type of columns is also known as newspaper columns.
Note
Text in a presentation can be formatted into columns inside text boxes and
objects. However, columns cannot be used on separate parts of text inside a text
box or object. The whole of the text box or object has to be used for columns.
4) Save the changes and deselect the text box, or graphic object, using one of the following
methods:
– For the Text dialog, click OK to save the changes and close the dialog, then click
outside the text box, or graphic object, to deselect it.
– For the Columns panel in the Properties deck on the Sidebar, click outside the text
box, or graphic object, to deselect it and save the changes.
5) Type in the required text or use copy and paste to enter the required text into the text box,
or graphic object. Any text entered will be in column format.
Note
Any text inside a text box, or graphic object, automatically flows into column
format when the changes are saved.
Inserting images
1) Open the slide in Normal view on the Workspace where the image is going to be
inserted.
2) Open the Insert Image file browser using one of the following methods:
– Go to Insert > Image on the Menu bar.
– Click on Insert Image on the Insert toolbar (Figure 154).
– Click on Insert Image on the Standard toolbar.
3) Navigate to the location of the file and select the image file required.
4) Click Open to place the image in the center of the slide.
5) Reposition and resize the image to the presentation requirements.
Inserting tables
When a table is inserted into a slide, the Table toolbar (Figure 155) automatically opens. The
Table toolbar in Impress offers the same functions as the Table toolbar in Writer, with the
exception of the calculation functions Sort and Sum. To use Sum and Sort in a presentation, a
Calc spreadsheet has to be inserted into the slide.
Note
If the Table toolbar does not automatically open, go to View > Toolbars on the
Menu bar and select the Table toolbar.
Entering data into table cells is similar to working with text box objects. Click in a cell and begin
typing. To move around cells quickly, use the following keyboard options:
• Use the arrow keys to move the cursor to another cell if the cell is empty, or to the next
character if the cell already contains text.
• Press the Tab key to move to the next cell on the right, or press Shift+Tab to move to
the next cell on the left.
2) Click and drag the cursor to create the number of columns and rows required, then click
to place the table in the center of the slide and the Insert Table Grid closes.
3) The Table Design panel on the Properties deck in the Sidebar opens (Figure 157). Select
a table design, the type of rows, and the type of columns from the options available.
4) If necessary, reposition and format the table on the slide to the presentation requirements.
Inserting charts
To insert a chart into a selected slide in Normal view on the Workspace, use one of the following
methods:
• Go to Insert > Chart on the Menu bar.
• Click on Insert Chart on the Insert toolbar.
When Impress switches to chart view, the Formatting toolbar (Figure 159) automatically opens,
and the Chart Type panel on the Properties deck on the Sidebar opens (Figure 160). To change
the chart type, insert the required data, and change the formatting, see the Impress Guide and
the Calc Guide.
Graphics
Graphics, such as shapes, callouts, and arrows, are often useful to complement the text on a
slide. These objects are handled much the same way as graphics in Draw. For more information
on inserting graphics, see Chapter 7, Getting Started with Draw in this guide, the Impress Guide,
or the Draw Guide.
Spreadsheets
Spreadsheets embedded in Impress include most of the functionality of Calc spreadsheets and
are capable of performing complex calculations and data analysis. If the data has to be analyzed
or formulas applied, then these operations are best performed in a Calc spreadsheet and the
results displayed in an embedded Calc spreadsheet or in an Impress table. For more information
on spreadsheets, see the Impress Guide and the Calc Guide.
OLE objects
Object Linking and Embedding (OLE) is a software technology that allows linking and embedding
of spreadsheets, charts, drawings, formulas, and text files into an Impress presentation.
The major benefit of using OLE objects is that it provides a quick and easy method of editing the
object using tools from the software used to create the object. These file types can all be created
using LibreOffice and OLE objects can be created from new or from an existing file.
When inserting a new OLE object into a presentation, it is only available in that presentation and
can only be edited using Impress. For more information on inserting and formatting OLE objects,
see the Impress Guide.
Styles
All of the characteristics of master slides are controlled by styles. The styles of any new slide
created are inherited from the master slide from which it was created. In other words, the styles
of the master slide are available and applied to all slides created from that master slide.
Changing a style in a master slide results in changes to all the slides based on that master slide.
It is possible to modify each individual slide without affecting the master slide.
Master slides have two types of styles — presentation styles and drawing styles. The
presentation styles included with Impress can be modified, but new presentation styles cannot be
created or deleted. The drawing styles included with Impress can be modified, but cannot be
deleted. However, new drawing styles can be created and these drawing styles can be deleted.
Master slides
Impress comes with a collection of master slides, which are are shown on the Master Slides deck
of the Sidebar (Figure 162).
This deck has three panels: Used in This Presentation, Recently Used, and Available for
Use. Click the expand marker on the title bar of a panel to expand it and show thumbnails of the
master slides, or click the collapse marker to collapse the panel to hide the thumbnails.
Each of the master slides shown in the Available for Use panel are from templates that are
available in LibreOffice Impress:
• Presentation templates included when LibreOffice is installed on a computer.
• Templates have been created, or added from other sources.
If a new presentation is created without using one of the templates available, then a default
master slide is available. This default master slide is a good starting point for creating master
slides. An example of the default master slide is shown in Figure 163.
Note
The master slides in the template selected are now shown in the Available for use
panel on the Master Slides deck on the Sidebar.
Notes
Any changes made to one slide when in Master Slide mode appears on all slides
using this master slide. Always make sure to close Master Slide and return to
Normal view before working on any of the presentation slides.
Text
1) Go to View > Master Slide on the Menu bar to open Master View.
2) Insert a text box on the master slide, see “Text boxes” on page 243 for more information.
3) Type or paste the text into the text box.
4) Click outside the text box when finished adding text.
5) Go to View > Normal on the Menu bar or click Close Master View on the Master View
toolbar when finished.
Default footers
By default, a slide footer consists of three sections, each containing a default field:
• Left section — date and time, labeled Date Area. Field name is <date/time>.
• Center section — footer text, labeled Footer Area. Field name is <footer>. This section
could be the presentation title, file name, or other information.
• Right section — slide number, labeled Slide Number Area. Field name is <number>.
The default footer fields are set up as follows using the Header and Footer dialog (Figure 168):
1) Go to View > Master Slide on the Menu bar to open Master View.
2) Go to Insert > Header and Footer on the Menu bar to open the Header and Footer
dialog.
3) Click on the Slides tab to open the options available for inserting footers onto a slide.
4) Select Date and Time for the date and time to appear in the left section of the footer.
– For a fixed date and time, select Fixed and enter the date required in the Fixed text
box.
Note
The default sections in a footer can be formatted, resized, and repositioned. See
“Adding and formatting text” on page 242 for more information.
Custom footers
The default fields in a footer section can be replaced with text, or manual fields as follows:
1) Go to View > Master Slide on the Menu bar to open the master slide view.
2) Highlight the default field in the footer section and press the Delete or Backspace key.
A flashing text cursor will appear in the footer section and the Text Formatting toolbar
automatically opens replacing the Line and Filling toolbar.
Manual fields
Manual fields can be added as text objects on a master slide or replace one of the default footer
fields and are as follows:
• Date (fixed)
• Date (variable) — updates automatically each time the presentation is opened.
• Time (fixed)
• Time (variable) — updates automatically each time the presentation is opened and each
time a slide is opened more than once during a presentation.
• Author — first and last names listed in the LibreOffice user data.
• Slide number — the sequence number of the slide, without the word “Slide”.
• Slide Title — defaults to Slide 1, Slide 2, and so on if the slides have not been renamed.
• Slide Count — the number of slides in the presentation.
• File Name
Adding comments
Impress supports comments similar to those in Writer and Calc. For more about adding,
navigating, and replying to comments, see Chapter 2, Getting Started with Writer.
Note
A small box containing the user initials appears in the upper left-hand corner of
the slide, with a larger text box beside it. Impress automatically adds the user
name and current date at the bottom of the text box.
Printing handouts
Handouts are used for distributing copies of presentation slides to each member of the audience.
Handouts are only available in View > Handout on the Menu bar and are printed using the
printing options in Impress.
The printing of handouts depends on the printer, computer operating system, and how a
computer is set up. The following is only an example of how to print handouts.
Hiding slides
1) Select slides for hiding in the Slides pane, or Slide Sorter view in the Workspace.
2) Hide the selected slides using one of the following methods. Hidden slides are grayed out
in the Slides pane or Slide Sorter view in the Workspace.
– Go to Slide > Hide Slide on the Menu bar.
– Right-click on the slide thumbnail and select Hide Slide in the context menu.
– Click on Hide Slide in the Slide View toolbar.
3) To show a hidden slide, use one of the following methods.
– Go to Slide > Show Slide on the Menu bar.
– Right-click on the hidden slide thumbnail and select Show Slide in the context menu.
– Click on Show Slide in the Slide View toolbar.
Slide transition
Slide transitions are effects and/or sounds that take place between slides when slides change in
a presentation and can add a professional look to a presentation, smoothing the change over
between slides. For more information on how to setup slide transitions, modify slide transitions,
and to advance slides in a presentation, see the Impress Guide.
1) Click on Slide Transition in the Sidebar to open the Slide Transition deck (Figure 176).
2) In the Slides pane or Slide Sorter view in the Workspace, select the slides where slide
transitions are going to be applied.
3) Select a transition from the available options in the Slide Transition panel.
4) In the Modify Transition panel, select from the following options to modify the selected
transition:
– Variant — if available, select a slide transition variant from the options available in the
drop-down list.
– Duration — enter a duration time in seconds for slide transition.
– Sound — from the options available in the drop-down list, select a sound or music, to
be played during slide transition.
Notes
Do not select the Apply Transition to All Slides option, otherwise the selected
music file restarts at every slide.
The sound or music file is linked to a presentation rather than embedded. If the
presentation is going to be displayed on a different computer, remember to make
sure that the music file is available on the computer where the presentation will
be played. The link to the sound or music file must be established before starting
the presentation.
Animation effects
Slide animations are similar to transitions, but they are applied to individual elements in a single
slide, such as title, chart, shape, or individual bullet point. Animations can make a presentation
more lively and memorable. However, as with transitions, heavy use of animations can be
distracting and even annoying for an audience expecting a professional presentation.
Running presentations
1) Open the presentation and start the slide show using one of the following methods:
– Use the keyboard shortcut F5 to start from the first slide, or Shift+F5 to start from
the current slide.
– Go to Slide Show > Start from First Slide, or Start from Current Slide on the Menu
bar.
– Click on Start from First Slide on the Slide Sorter toolbar.
2) If the slide transition is set to start after a time delay set in After on the Advance Slide
panel, the transition runs after the time delay has elapsed and advances to the next slide.
3) If the slide transition is set to On mouse click on the Advance Slide panel, use one of the
following options to for the transition to work and advance to the next slide:
– Click the left mouse button.
– Press the down arrow key
– Press the right arrow key.
– Press the page down key.
– Press the space bar.
4) To navigate backwards through a slide show one slide at a time, use one of the following
options:
– Press the up arrow key.
– Press the left arrow key.
– Press the page up key.
5) To access more navigation options during a slide-show, right-click on a slide and use the
options available in the context menu.
6) When the last slide has displayed, the message Click to exit presentation is displayed on
screen. Press the Esc key, or click the left mouse button to exit the slide show.
7) To exit the slide show and return to the Impress workspace at any time, press the Esc key
during the slide show.
Note
During the presentation, any animations on a slide are run in the specified order
as the slide is displayed.
Note
The Presenter Console only works with computers and operating systems that
support two displays. When two displays are being used, one display can be a
laptop.
The Presenter Console has to be enabled in Impress before use. Go to Tools > Options >
LibreOffice Impress > General (macOS LibreOffice > Preferences > LibreOffice Impress >
General) and select Enable Presenter Console in Presentation.
The Presenter Console provides the following views for making a presentation:
• Default view — displays the current slide, including any effects and the next slide in the
presentation (Figure 178). Click on the Previous and Next arrows to navigate through the
presentation.
Chapter 7,
Getting Started with Draw
Vector Drawing in LibreOffice
Introduction
LibreOffice Draw is a vector graphics drawing program, although it can also perform some
operations on raster graphics (pixels). Using Draw, a wide variety of graphical images can easily
and quickly be created.
Vector graphics store and display an image as an assembly of simple geometric elements such
as lines, circles, and polygons, rather than a collection of pixels (points on the screen). Vector
graphics allow for easier storage and scaling of the image.
Draw is fully integrated into the LibreOffice suite, and this simplifies exchanging graphics with all
components of the LibreOffice suite. If an image is created in Draw, reusing it in a Writer
document is relatively easy. For example, select and copy the drawing in Draw and then paste
the image directly into a Writer document. Also, drawings can be worked on directly from within
Writer or Impress, using a subset of the functions and tools from Draw.
The functionality of LibreOffice Draw is extensive. Draw was not designed to rival high-end
graphics applications, but it possesses more functionality than the drawing tools that are
generally integrated with the majority of office productivity suites. A few examples of the drawing
functions are as follows:
Layer management;
Magnetic grid-point system;
Dimensions and measurement display;
Connectors for making organization charts and other diagrams;
3D functions for creating small three-dimensional drawings;
Drawing and page-style integration;
Bézier curves.
This chapter introduces some features of Draw, but it does not attempt to cover all of the Draw
features. See the Draw Guide and LibreOffice Help for more information.
Workspace
The large area in the center of the Draw main window (Figure 181) is the Workspace, where
drawings are created. This drawing area can be surrounded with toolbars and information areas.
The number and position of the visible tools vary with the task in hand, user preferences, and
computer setup.
The maximum size of a drawing page in Draw is limited by the computer setup and the page size
that that can be set and used in the printer connected to the computer.
Pages pane
Drawings can be split over several pages. Multi-page drawings are used mainly for
presentations. The Pages pane on the left side of the Draw main window provides an overview of
the pages that are created in a drawing. If the Pages pane is not visible, go to View > Page Pane
on the Menu bar. The Pages pane is also used to make changes to the page order by dragging
and dropping one or more pages.
Sidebar
The Sidebar in Draw is similar to the Sidebar in the other LibreOffice components. In Draw, it has
five main decks. To open a deck, click on its icon on the right of the Sidebar, or click on the
Sidebar Settings icon at the top of the tab bar and select a deck in the drop-down list. If the
Sidebar is not visible, go to View > Sidebar on the Menu bar.
Properties
Contains panels where properties of a selected object in a drawing can be changed:
Page, Character, Paragraph, Area, Effect, Shadow, Line, Position and Size,
Columns, and Image. Available panels depend on the selected object.
Styles
Provides options to edit and apply one of the available Drawing Styles to objects in a
drawing. When a style is edited or modified, the changes are automatically applied to all
of the elements formatted using that style. In Draw, Presentation Styles are not
available. New drawing styles can be added to a drawing.
Rulers
Rulers are positioned on the upper and left-hand sides of the Workspace. If the rulers are not
visible, go to View > Rulers on the Menu bar. The rulers show the size of a selected object using
double lines (highlighted in Figure 182). Also the rulers can be used to manage object handles
and guide lines when positioning objects.
The page margins in the drawing area are also represented on the rulers. The margins can be
changed directly on the rulers by dragging the margins with the cursor. The margin areas are
indicated by the grayed-out area on the rulers (Figure 182).
To change the measurement units of the rulers, right-click on a ruler and select the measurement
unit in the drop-down list, as shown in Figure 183 for the horizontal ruler. The horizontal and
vertical rulers can be set to different measurement units.
Status bar
The Status bar (Figure 184) is located at the bottom of the Workspace in all LibreOffice
components. It includes several Draw-specific fields. For details on the contents and use of these
fields, see Chapter 1, LibreOffice Basics, in this guide and the Draw Guide. To hide the Status
Bar, go to View on the Menu bar and deselect Status Bar.
Note
The measurement units shown on the Status Bar are set by going to Tools >
Options > LibreOffice Draw > General on the Menu bar. These units may be
different to the measurement units set for the rulers.
Straight lines
1) Use one of the following methods to start drawing a line:
– Click on Insert Line on the Drawing toolbar.
– Click the triangle ▼ on the right of Lines and Arrows on the Drawing toolbar and
select Insert Line in the drop-down list.
– Click on Insert Line in the Lines and Arrows panel of the Shapes deck on the
Sidebar (Figure 188).
2) Place the mouse pointer at the starting point on the drawing, then click and drag the
pointer to draw a straight line.
Tips
To snap the end of a line to the nearest grid point, keep the Ctrl key (macOS ⌘)
pressed while drawing the line. However, if the Snap to Grid option in View >
Snap Guides on the Menu bar has been selected, the Ctrl key (macOS ⌘)
deactivates the snap to grid.
To restrict the drawing angle of a line to a multiple of 45 degrees (0, 45, 90, 135,
and so on), keep the Shift key pressed while drawing the line. However, if the
option When creating or moving objects in the Constrain Objects section of
Tools > Options > LibreOffice Draw > Grid has been selected, the Shift key
deactivates this restriction.
To draw a line symmetrically outwards in both directions from the start point, keep
the Alt key (macOS ⌥) pressed while drawing the line. This draws lines by
starting from the center of the line.
Arrows
Draw classifies both lines and arrows as lines. Arrows are drawn like straight lines. Hovering the
cursor over each tool in the Lines and Arrows sub-toolbar (Figure 192) indicates what type of line,
or arrow each tool will draw. The information field on the Status bar shows them only as lines.
1) Use one of the following methods to start drawing an arrow:
– Click the triangle ▼ on the right of Lines and Arrows on the Drawing toolbar and
select the type of arrow required from the Lines and Arrows sub-toolbar.
– Click on the type of arrow required in the Lines and Arrows panel of the Shapes
deck on the Sidebar.
2) Place the mouse pointer at the starting point of the arrow, then click and drag the pointer.
The arrowhead is drawn when the mouse button is released.
Notes
The tool icon for the Lines and Arrows tool used most recently will be shown on
the Drawing toolbar. This makes it easier to use the same tool again.
After drawing a line, or arrow, the line, or arrow style can be changed by opening
the Line dialog and using the options available on the Line Styles or Arrow Styles
pages.
Rectangles
1) Use one of the following methods to start drawing a rectangle:
– Click on Rectangle on the Drawing toolbar.
Squares
1) Use one of the following methods to start drawing a square:
– Click on Rectangle on the Drawing toolbar, then hold down the Shift key while
dragging the mouse pointer to draw a square.
– Click the triangle ▼ on the right of Basic Shapes on the Drawing toolbar and select
Square on the Basic Shapes sub-toolbar (Figure 193).
– Click on Square in the Basic Shapes panel of the Shapes deck on the Sidebar.
– Select the type of square from the Legacy Rectangles toolbar (Figure 194). To display
the toolbar, go to View > Toolbars on the Menu bar and select it.
2) Place the mouse pointer at the starting point for the square, then click and drag the
pointer until the required size is drawn. As the square is drawn, the square appears with
its bottom right corner attached to the cursor.
3) To draw a square from its center, position the cursor on the drawing, press the mouse
button and then hold down the Alt key (macOS ⌥) while dragging the mouse pointer.
The square uses the start point as the center of the square.
Ellipses (ovals)
1) Use one of the following methods to start drawing an ellipse:
– Click on Ellipse on the Drawing toolbar.
– Click the triangle ▼ on the right of Basic Shapes on the Drawing toolbar and select
Ellipse on the Basic Shapes sub-toolbar (Figure 193).
– Click on Ellipse in the Basic Shapes panel of the Shapes deck on the Sidebar.
– Select the type of ellipse on the Legacy Circles and Ovals toolbar (Figure 195). To
display the toolbar, go to View > Toolbars on the Menu bar and select it.
Circles
1) Use one of the following methods to start drawing a circle:
– Click on Ellipse on the Drawing toolbar, then hold down the Shift key while
dragging the cursor to draw a circle.
– Click the triangle ▼ on the right of Basic Shapes on the Drawing toolbar and select
Circle on the Basic Shapes sub-toolbar (Figure 193).
– Click on Circle in the Basic Shapes panel of the Shapes deck on the Sidebar.
– Select the type of circle on the Legacy Circles and Ovals toolbar (Figure 195). To
display the toolbar, go to View > Toolbars on the Menu bar and select it.
2) Place the mouse pointer at the starting point for the circle, then click and drag the pointer
until the required size is drawn. As the circle is drawn, the circle appears with its bottom
right corner attached to the cursor.
3) To draw a circle from its center, position the mouse pointer on the drawing, press the
mouse button and then hold down the Alt key (macOS ⌥) while dragging with the
pointer. The circle uses the start point as the center of the circle.
Tip
To quickly insert a line, rectangle, ellipse, or circle, press and hold down the Ctrl
key (macOS ⌘) and then click on one of the icons for Line, Rectangle, Ellipse,
or Circle and a standard sized object is drawn automatically in the center of the
Workspace. The size, shape, and color are all standard values. These attributes
can be changed later, if desired. For more information, see the Draw Guide.
Dimension lines
Dimension lines display a measurement of an object in the drawing (Figure 196). The dimension
line does not belong to the object itself, but it is normally placed close to it.
1) Use one of the following methods to start drawing a dimension line:
– Click the triangle ▼ on the right of Lines and Arrows on the Drawing toolbar and
select Dimension Line on the Lines and Arrows sub-toolbar that opens.
– Click on Dimension Line in the Lines and Arrows panel of the Shapes deck on the
Sidebar.
2) Place the mouse pointer close to the object to position the start of the dimension line.
Curves
1) Use one of the following methods to start drawing a curve:
Note
A single click fixes the curve to the drawing and allows drawing of straight lines
from the end of the curve. Each single click allows the drawing of another straight
line. Double-click to end drawing a curve with straight lines.
Polygons
1) Use one of the following methods to start drawing a polygon:
– Click the triangle ▼ on the right of Curves and Polygons on the Drawing toolbar and
select the type of polygon on the Curves and Polygons sub-toolbar (Figure 198).
– Click on the type of polygon required in the Curves and Polygons panel of the
Shapes deck on the Sidebar.
2) Click and hold the left mouse button to create the starting point of the polygon, then drag
from the starting point to draw a line.
Free-form lines
Drawing a free-form line is similar to drawing with a pencil on paper.
1) Use one of the following methods to start drawing a free-form line:
– Click the triangle ▼ on the right of Curves and Polygons on the Drawing toolbar and
select the type of free-form line on the Curves and Polygons sub-toolbar (Figure 198).
– Click on the type of free-form line required in the Curves and Polygons panel of the
Shapes deck on the Sidebar.
2) Click and drag the mouse pointer to create the free-form line shape required.
3) Release the mouse button when satisfied with the free-form line and the drawing is
completed. A filled free-form line automatically joins the last point to the first point, closing
the free-form line and filling it with the selected fill color.
Glue points
All Draw objects have glue points, which are not normally displayed. Glue points (Figure 200)
become visible on an object when a connector is selected on the Drawing toolbar or in the
Shapes deck on the Sidebar.
Most objects have four glue points (Figure 200). More glue points can be added and customized
using the Gluepoints toolbar (Figure 199). If the Gluepoints toolbar is not visible, go to View >
Toolbars > Gluepoints on the Menu bar to open the toolbar. For a more detailed description on
adding and using glue points, see the Draw Guide.
Glue points are not the same as the selection handles of an object. Selection handles are for
moving or changing the shape of an object. Glue points are used to fix or glue a connector to an
object so that when the object moves, the connector stays fixed to the object.
Connectors
Connectors are lines or arrows whose ends automatically snap to a glue point of an object.
Connectors are especially useful in drawing organization charts, flow diagrams, and mind-maps.
When objects are moved or reordered, the connectors remain attached to a glue point.
Figure 202 shows an example of using two objects and a connector. For a more detailed
description of the use of connectors, see the Draw Guide.
1) Use one of the following methods to select a connector:
Geometric shapes
Geometric shapes are similar to basic shapes. They are provided in Draw as a starting point
when creating objects for a drawing. Geometric shapes are located on the Drawing toolbar and in
the Shapes deck on the Sidebar.
The tool icons on the Drawing toolbar always indicate the last geometric shape drawn. This
makes it easier to use the same tool again.
Access geometric shapes using one of the following methods:
• Click on Shapes on the Sidebar to open the Shapes deck, then choose from the
geometric shapes available.
• Click the triangle ▼ on the right of a geometric shape on the Drawing toolbar to open a
sub-toolbar giving access to more geometric shape tools.
Using geometric shapes is similar to drawing rectangles, squares, ellipses, or circles as
explained in “Drawing basic shapes” on page 289. Text can be added to all geometric shapes.
See “Adding and formatting text” on page 303 and the Draw Guide.
Basic shapes
The Basic Shapes sub-toolbar (Figure 203) also includes rectangle and ellipse tools that are
identical to the ones displayed on the Drawing toolbar.
Block arrows
Flowchart
Callouts
3D objects
Text mode
Before adding any text to a drawing, text mode has to be activated using one of the following
methods. The Text Formatting toolbar (Figure 210) automatically opens when text mode is
activated, replacing the Line and Filling toolbar.
• For horizontal text, click on Insert Text Box on the Drawing, or Text toolbars to create a
text box.
• For horizontal text, go to Insert > Text Box on the Menu bar to create a text box.
• For horizontal text, use the keyboard shortcut F2 to create a text box.
• For vertical text, click on Insert Vertical Text on the Drawing, or Text toolbars to create a
vertical text box.
• Double-click inside an object on the drawing and the object switches to text mode with a
flashing cursor inside the object.
Note
Inserting and formatting vertical text and vertical text boxes is the same as
horizontal text and horizontal text boxes. A vertical text box expands vertically as
text is added into the box. For more information on vertical text, see the Draw
Guide.
Text boxes
1) Create a text box in the drawing using one of the following methods. The Status Bar
indicates Text Edit mode and the position of the cursor (Figure 211).
Vertical text
By default, Draw is set for horizontal text only. To enable vertical text:
1) Go to Tools > Options > Language Settings > Languages.
2) Under Default Languages for Documents, select Asian and accept the default
language displayed.
3) Right-click in a blank area on the Drawing toolbar and select Visible Buttons in the
context menu.
4) Select Insert Vertical Text in the list of available tools to enable vertical text on the
Drawing toolbar.
5) Alternatively, go to View > Toolbars on the Menu bar and select the Text toolbar from the
drop-down list, then select Insert Vertical Text from the tools available on the Text
toolbar.
Creating lists
Unordered (bulleted) or ordered (numbered) lists can be created in text boxes and Draw objects.
For more information on creating and formatting lists, see the Draw Guide.
1) Switch on text mode and select all of the text required for a list, or type the required text.
2) Create a list using one of the following methods and default settings for lists:
– Click on Toggle Unordered List, or Toggle Ordered List on the Text Formatting
toolbar.
– Click on Toggle Unordered List, or Toggle Ordered List in the Lists panel in the
Properties deck on the Sidebar.
– Go to Format > Lists > Unordered List, or Ordered List on the Menu bar.
3) To change the format of the list, click on the triangle ▼ on the right of the list tools in the
toolbars, or List panel in the Sidebar, and select a list style from the options available.
Text columns
Text in a drawing can be formatted into columns inside text boxes and objects. However, columns
cannot be used on separate parts of text inside a text box or object. The whole of the text box or
object has to be used for columns. For more information on text columns, see the Draw Guide.
1) For text boxes — click the border of a text box to select it so that the selection handles
are displayed indicating that the text box is in edit mode.
2) For graphic objects — double-click on a graphic object to select it so that the selection
handles are displayed and the cursor flashes in the center of the object indicating that the
object is in text edit mode.
3) Open the options for text columns using one of the following methods:
– Right-click in the text box or graphic object and select Text Attributes in the context
menu to open the Text dialog, then click on the Text Columns tab to open the Text
Columns page,
– Click on Columns in the Properties deck on the Sidebar to open the Columns panel.
Note
Any text inside a text box, or graphic object automatically flows into column
format when the changes are saved.
Selecting objects
Direct selection
The easiest way to select an object is to click directly on it. For objects that are not filled, click on
the object outline to select it. To select, or deselect, more than one object, hold the Shift key
down while clicking on each object.
Selection by framing
Several objects can be selected at the same time by clicking and dragging the cursor to draw a
selection rectangle (also known as a marquee) around the objects. Only objects that lie entirely
within this selection rectangle are selected. To select multiple objects by framing, Select on the
Drawing toolbar must be active.
Using zoom
To help in the positioning and adjustment of objects, Draw has a zoom function that reduces or
enlarges the screen display of the current drawing. For example, zoom in to position objects on a
drawing with greater accuracy; zoom out to see the complete drawing. Zooming is controlled
using the Status bar, Zoom & View Layout dialog, or Zoom toolbar. For more information on using
zoom, see the Draw Guide.
Moving objects
To move an object (or a group of objects), select it within the object borders, then click and drag
the object. Release the object when it is in its correct position. Whilst moving the object, a ghost
image of the object appears helping with repositioning (Figure 213).
Note
Press and hold the Shift key while resizing an object, the change in size is
carried out symmetrically with respect to the object width and height maintaining
the aspect ratio of the object. This Shift key behavior works on all selection
handles.
Rotation
1) Click on and hold a corner selection handle, then drag the cursor to rotate the object
around the rotation point. A ghost image of the object rotation appears and the current
angle of rotation is shown in the Status Bar (Figure 216).
2) When the object is at the required rotation angle, release the object.
3) To change the type of rotation, click on the rotation point and drag it to another position.
The rotation point can be moved outside of the object boundaries.
Note
Press the Shift key while rotating or slanting an object and the movement is
restricted to 15°.
Slanting
1) Click on a selection handle at the top, bottom, left side, or right side of an object. The
cursor will change shape indicating the direction of movement.
2) Drag the selection handle to slant the object. A ghost image of the object being slanted
appears (Figure 217) and the current slant angle is shown in the Status Bar. The axis
used for slanting an object is fixed to the edge of the object directly opposite the selection
handle being used to slant the object.
3) When the object is at the desired slant angle, release the object.
Flipping objects
Select an object so that the selection handles are displayed and flip the object vertically or
horizontally using one of the following methods:
• Right-click on the object and select Flip > Vertically, or Horizontally, in the context
menu.
• Go to Shape > Flip > Vertically, or Horizontally, on the Menu bar.
• Click on Vertically, or Horizontally, tool on the Line and Filling toolbar.
• Use Flip Vertically, or Flip Horizontally, tool in the Position and Size section on the
Properties deck of the Sidebar.
However, the Flip tool on the Transformations toolbar (Figure 215) provides greater control over
the flipping process. Use the Flip tool to change the position and angle that the object flips over.
See the Draw Guide for more information.
Object distortion
Three tools on the Transformations toolbar (Figure 215) allow the dragging of the corners and
edges of an object to distort an object.
• Distort — distorts an object in perspective.
• Set in Circle (perspective) — creates a pseudo 3D effect.
• Set to Circle (slant) — creates a pseudo 3D effect. Despite the (slant) in the name of
this tool, it operates differently from the slanting created by rotation.
In all three cases, the object has to be converted into a curve. This is a necessary first step, so
click Yes, then move the object handles to produce the desired effect. See the Draw Guide for
more information on how to distort an object.
Cross-fading
Cross-fading transforms one object shape to another object shape. The result is a new group of
objects with the first object selected as the start object and the second object selected as the end
object. For example, when the options in the Cross-fading dialog are applied to a diamond and
an ellipse, the cross-fading produces the result shown by the example in Figure 220.
Grouping
Grouping of objects is similar to putting objects into a container. The objects can be moved as a
group and global changes applied to the objects within the group. A group can always be undone
(ungroup). Objects that make up a group can always be manipulated separately and retain their
own individual properties.
Temporary grouping
A temporary grouping is when several objects are selected using one of the following methods:
• While holding down the Shift key, click on each object with the cursor to select it for the
temporary group.
• Click and drag the cursor to create a rectangle (also known as a marquee) around the
objects required for the temporary group.
Any changes to object parameters carried out are applied to all of the objects within the
temporary group. For example, rotating a temporary group of objects in its entirety.
To cancel a temporary grouping of objects, click outside of the selection handles displayed
around the objects.
Permanent grouping
A permanent grouping of objects can be created after selecting objects using one of the following
methods:
• Go to Shape > Group > Group on the Menu bar.
• Right-click on the selected objects and select Group in the context menu.
• Use the keyboard shortcut Ctrl+Shift+G (macOS ⌘+Shift+G)
When deselected, the objects remain grouped together. Any editing operations carried out on the
group are applied to all objects within the group. If one object in the group is clicked, the whole
group is selected.
Ungrouping
To ungroup or break apart a permanent group of objects, use one of the following methods after
selecting the group:
• Go to Shape > Group > Ungroup on the Menu bar.
• Right-click and select Ungroup in the context menu.
• Use the keyboard shortcut Ctrl+Alt+Shift+G (macOS ⌥+⌘+Shift+G).
Nesting groups
A group of groups, more commonly known as nested groups, can be created. When nested
groups are created, Draw retains the individual group hierarchy and remembers the order in
which groups were selected. That is, the last individual group selected will be on top of all the
other groups within a nested group. Ungrouping and entering a nested group work in the same
way as for individual groups.
Combining objects
Combining is a permanent merging of objects, creating a new object. The original objects are no
longer available as individual entities and cannot be edited as individual objects. Any editing of a
combined object affects all the objects that were used when combination was carried out. For
more information on combining objects, see the Draw Guide.
After selecting the objects for combining, use one of the following methods to create a new
object. An example of combining objects is shown in Figure 223 on page 314.
• Go to Shape > Combine on the Menu bar.
• Right-click on the objects and select Shapes > Combine in the context menu.
• Use the keyboard shortcut Ctrl+Shift+K (macOS ⌘+Shift+K).
Inserting
Draw contains a number of functions for editing images (also called pictures, raster graphics, or
bitmaps). These functions include the import and export of images, and conversion from one
image format to another. For more information on working with images, see Chapter 5, Working
with Images and Graphics, in this guide and the Draw Guide.
Draw includes a large range of filters so that it can read and display several image file formats. It
also includes several tools for working with images, but does not have the same functionality as
specialized programs, for example GIMP, or Adobe Photoshop.
Images can be added from several sources:
• Directly from a scanner (Insert > Media > Scan on the Menu bar).
• Created by another program, for example photographs from a digital camera (Insert >
Image on the Menu bar).
• The LibreOffice Gallery; see Chapter 5, Working with Images and Graphics.
Exporting
Draw saves images as drawings in the Open Document Format (odf). To save an image or the
entire Draw file in another format, go to File > Export on the Menu bar and select a format in the
drop-down list. The image formats that Draw can export in and save to are listed in Appendix B,
Open Source, Open Standards, OpenDocument.
Draw files can also be exported in HTML, XHTML, or PDF format. The HTML export uses a
conversion wizard that creates as many web pages as there are pages in a Draw document.
Optionally drawing pages can be displayed in frames with a navigator and an index page. For
more information about file formats, see Chapter 10, Working with File Formats, Security, and
Exporting.
Adding layers
1) Use one of the following methods to open the Insert Layer dialog (Figure 224):
– Go to Insert > Layer on the Menu bar.
Note
Layers are added to the drawing in the order that they were inserted. The layer
order cannot be changed.
Modifying layers
1) To modify a layer, use one of the following methods to open the Modify Layers dialog,
which is similar in layout and options to the Insert Layers dialog.
– Right-click on the name tab of the layer and select Modify Layer in the context menu.
– Double-click on the layer tab.
– Go to Format > Layer on the Menu bar.
2) Make the required changes to the layer, then click OK to save the changes and close the
Modify Layers dialog.
Selecting colors
Colors are selected using a Color palette, the Area and Line panels on the Properties deck of
the Sidebar, and tools on the Line and Filling, and Drawing toolbars.
Note
For a more detailed description of the options available for Color palettes and
custom colors, as well as more information on the difference between the CMYK
and RGB Color schemes, refer to the Draw Guide.
Color palette
The Color Palette allows quick selection of a color for an area, background, or lines of selected
objects in a drawing. To display the Color Palette (Figure 225), go to View > Color Bar on the
Menu bar. To close the Color Palette, go to View on the Menu bar and deselect Color Bar.
Sidebar color
In the Area and Line panels in the Properties deck on the Sidebar (Figure 226), the Color of an
area or line of a selected object can be changed.
1) Select an object in a drawing.
2) Click on Properties on the Sidebar. In the Properties deck, open the Area and/or Line
panels by clicking on the triangle ▼ on the panel title bar.
Chapter 8,
Getting Started with Base
Relational databases in LibreOffice
Introduction
A data source, or database, is a collection of pieces of information that can be accessed or
managed by LibreOffice. For example, a list of names and addresses is a data source that could
be used for producing a mail merge letter. A business stock list could be a data source managed
through LibreOffice.
Base is the database front-end component of LibreOffice. It can create and store an embedded
database or connect to external databases. This chapter covers creating a database, showing
what is contained in a database, and how the different parts are used by LibreOffice.
Note
LibreOffice uses the terms “Data Source” and “Database” to refer to the same
thing, which could be a database such as MySQL or dBase, a spreadsheet or text
document holding data, or an address book.
A database consists of a number of fields that contain the individual pieces of data. Each table of
the database is a group of fields. When creating a table, you also determine the characteristics of
each field within it. Forms are for data entry into the fields of one or more tables which have been
associated with the form. They can also be used for viewing fields from one or more tables
associated with the form. A query creates a new table from the existing tables based upon how
you create the query. A report organizes the information from the fields of a query or table into a
document according to your requirements.
Caution
Some Base features (most notably, the HSQLDB database engine, and the ability
to create reports) require that a Java Runtime Environment (JRE) is installed.
Please go to Tools > Options > LibreOffice > Advanced to select a JRE from
those installed on your computer.
If a JRE is not already installed, you will need to download and install one. For
Windows and Linux, you can get Java from https://www.java.com/. For Linux, you
can also use the JRE available from the repository of your Linux version. For
macOS, you need to install Oracle’s Java Development Kit (JDK), not just the
Java Runtime Environment (JRE). Download links can be found by selecting the
macOS option at: https://www.oracle.com/java/technologies/downloads/.
Base creates both flat and relational databases. This makes it fairly easy to create a database in
which the fields of the database have relationships with each other.
For example: Consider a database for a library. It will contain a field for the names of the authors
and another field for the names of the books. There is an obvious relationship between the
authors and the books they have written. The library may contain more than one book by the
same author. This is what is known as a one-to-many relationship: one author and more than one
book. Most if not all the relationships in such a database are one-to-many relationships.
Consider an employment database for the same library. One of the fields contains the names of
the employees while other fields contain the social security numbers and other personal data.
The relationship between the names and social security numbers is one-to-one: only one social
security number for each name.
Planning a database
Instructions for creating a database for automobile expenses will be used as an example of
creating and using a relational database.
The first step in creating a database is to ask yourself many questions. Here are some of the
questions and answers developed for the example automobile expenses database in this
chapter.
What are the user output requirements?
Information is needed on three broad areas: fuel usage, maintenance, and vacation.
What input data is required for the output?
Fuel purchases, maintenance expenses, and vacation expenses.
What fields fit the fuel purchases area?
Date purchased, odometer reading, fuel cost, fuel quantity, and payment method for it.
(Fuel economy need not be included, as it can be calculated using a query.)
What fields fit the maintenance area?
Date of service, odometer reading, type of service, cost of service, and next scheduled
service of this type (for example, for oil changes, list when the next oil change should be).
A field for notes was added to the list.
What fields fit the vacations area?
Date, odometer reading, fuel (including all the fields of the fuel table), food (including
meals and snacks), motel, total tolls, and miscellaneous. These purchases are made by
one of two bank cards or cash; There should be a field to state which payment type was
used for each item.
What fields fit into the food category?
Breakfast, lunch, supper, and snacks seem to fit. Should all the snacks be listed
individually or list the total cost for snacks for the day? Here the snacks are divided into
two fields: number of snacks and total cost of snacks. A payment type is also needed for
each of these: breakfast, lunch, supper, and total cost of snacks.
What are the fields that are common to more than one area?
Date appears in multiple areas, as does odometer reading and payment type.
How will these fields be used to get the required information?
While on vacation, the expenses for each day are to be listed together. The date fields
suggest a relationship between the vacation table and the dates in each of these tables:
fuel and food. The date fields in these tables will be linked as the database is created.
The type of payment includes two bank cards and cash. So a table will be created with a
field for the type of payment and use it in list boxes in the forms.
Note
In Writer and Calc, selecting View > Data Sources, or pressing the
Ctrl+Shift+F4 key combination, opens and closes the Data Sources window
containing the list of registered databases. If a database is not registered, this
window will not contain it and you cannot access it in Writer or Calc if you need to
use data from it.
Save the new database with the name Automobile. This opens the Automobile.odb – LibreOffice
Base window (Figure 230).
Caution
As you create a database, you should save your work regularly. This means more
than saving what you have just created. You must save the whole database as
well.
For example, when you create your first table, you must save it before you can
close it. This makes it part of the database in memory. But it is only when you
save the database file that the table is written to disk.
Note
Database files in Open Document Format are stored with the *.odb extension.
This file format is actually a container of all elements of the database, including
forms, reports, tables, and the data itself. The same format can also store a
connection to an external database server instead of the local data, for example,
to access a MySQL or PostgreSQL database server in your network.
Tip
You can double-click a field in the Available fields list to transfer it to the Selected
fields list. Similarly you can double-click a field in the Selected fields list to
transfer it back to the Available fields list.
Note
If any of these fields requires a mandatory entry, set Entry required to Yes. A
blank field will then not be allowed. In general, only set Entry required to Yes if
something must always be put in that field. By default, Entry required is set to
No. (The Entry required option is not visible in Figure 234 because AutoValue has
been set to Yes.)
Note
Each field has a Field type, which must be specified. Types include text, integer,
date, and decimal. If the field is going to have general information in it (for
example, a name or a description), use text. If the field will always contain a
number (for example, a price), the type should be decimal or another numerical
field. The wizard picks the right field type, so to get an idea of how this works, see
what the wizard has chosen for different fields.
Tip
Up and down arrows are available on this page (not shown in Figure 234) and
you can use these to reorder the list of fields. Also + and – buttons are available
and you can use these to remove fields from the list or to add new fields.
Note
A primary key uniquely identifies an item (or record) in the table. For example,
you might know two people called “Randy Herring” or three people living at the
same address and the database needs to distinguish between them.
The simplest method is to assign a unique number to each one: number the first
person 1, the second 2, and so on. Each entry has one number and every
number is different, so it is easy to say “record ID 172”. This option is chosen
here: CollectionID is just a number assigned automatically by Base to each
record of this table.
Tip
Using the four action buttons on this page, you can move selected fields, or all
fields, in either direction. You can also double-click to move a field from one list to
the other.
5) Click the Save button on the Standard toolbar at the top of the LibreOffice Base window.
Caution
Once tables have been created using the wizard, and data has been entered,
editing a table should be very limited. You can add or delete fields, but adding a
field requires you to enter the data for that one field for every existing record with
an entry for that field.
Deleting a field deletes all the data once contained in that field. Changing the
field type of a field can lead to data being lost either partially or completely. When
creating a new table, it pays to create the fields with the correct names, length,
and format before you add any data.
Deleting a table removes all of the data contained in every field of the table.
Unless you are sure, do not delete a table.
Note
While the field types and formatting are different in Design View, the concepts are
the same as in the Table Wizard.
The first table to be created is Fuel. Its fields are FuelID, Date, FuelCost, FuelQuantity,
Odometer, and PaymentType.
1) Click Create Table in Design View in the Tasks area of the LibreOffice Base window.
Base opens the LibreOffice Base: Table Design dialog.
2) FuelID field: Type FuelID as the first Field Name entry. Press the Tab key to move to the
Field Type column. Select Integer [INTEGER] as the field type in the drop-down list. (The
default setting is Text [VARCHAR].)
Tip
A shortcut for selecting from the Field Type drop-down list: press the key for the
first letter of the choice. You can cycle through the choices for a given letter by
repeatedly pressing that key.
Note
The primary key serves only one purpose: to identify each record uniquely. Any
name can be used for this field. We have used FuelID for convenience, so we
know to which table it belongs.
Tip
As you create your own databases, you will also need to determine if tables are
related and if so how.
Tip
The primary key can contain more than one field. (Its foreign key1 will contain the
same number of fields.) If this were the case in Figure 241, the other fields of the
primary field for the Fuel table would be listed under Date. The corresponding
fields of the foreign key would be listed under Vacations. Detailed information
about this is in the Base Guide.
Tip
A list box is useful when a field contains a fixed number of options. It saves you
from having to type data by hand and having to double-check that the entered
data is correct, and ensures that invalid options are not entered.
Figure 243: Fields of a simple form Figure 244: Simple form with additions
In our database, payments for food or fuel might be made from one of two credit cards (Dan or
Kevin) or in cash, so these would be the available options for all boxes that contain payments.
Note
To create a list box as in Figure 244, we first need to create a small, separate
table containing the name of the options. Then use the contents of the table to fill
the list box. See Modifying a form below
Tip
Using the four action buttons in the center of this page, you can move selected
fields, or all fields, in either direction. You can also double-click to move a field
from one list to the other. The up and down arrows on the right can be used to re-
order entries in the Fields in the form list.
Note
It is possible to create a relationship between two tables that is based upon more
than one pair of fields. How to do that and why is discussed in the Base Guide.
Caution
When selecting a pair of fields from two tables to use as a relationship, they have
to have the same field type. That is why we used the Date field from both tables:
both their field types are Date [ DATE ].
Whether a single pair of fields from two tables are chosen as the relationship, or
two or more pairs are chosen, certain requirements must be met for the form to
work.
– One of the fields from the main form must be the primary key for its table. (Date would
have to be used.)
– No field from the subform can be the primary key for its table. (FuelID cannot be
used.)
– Each pair of joined fields must have the same field type.
Step 5: Arrange controls
A control in a form consists of two parts: label and field. This step in creating the form determines
where a control’s label and field are placed relative to each other. The four choices from left to
right are Columnar – Labels Left, Columnar – Labels on Top, As Data Sheet, and In Blocks –
Labels Above.
1) Arrangement of the main form: Click the second icon (Columnar – Labels on Top). The
labels will be placed above their field.
2) Arrangement of the subform: Click the third icon (As Data Sheet). (The labels are column
headings and the field entries are in spreadsheet format.) Click Next.
Note
The steps that follow assume that the PaymentType table already contains three
single-field records. These might be Cash, Dan, and Kevin. If necessary you
could use the Form Wizard to create a very simple form to input or edit these
values.
Tip
In some cases when the Form Navigator does not have the input focus, selecting
a field highlights both components (for example, label and text) of the field. If this
arises, then double-clicking the required component will highlight it, and enable
you to subsequently move from one component to another with a single click.
4) Right-click the text box in the Form Navigator and select Replace with > List Box in the
context menu.
5) In the Properties dialog, the heading becomes Properties: List Box.
6) The General tab is selected, so scroll down to the Dropdown property. Change No to Yes.
7) Click the Data tab.
8) Go to Type of list contents. Change Valuelist to Sql.
9) The line below this becomes List content. Click the ellipsis (…) to the right of this property.
10) Base opens the SQL Command – LibreOffice Base: Query Design window and the Add
Table or Query dialog. The PaymentType table has the entries that are required.
Click it, and then click the Add button.
Close the Add Table or Query dialog.
11) In the SQL Command – LibreOffice Base: Query Design window, double-click Type in the
table named PaymentType. This places Type in the Field row of the tabular area.
Tip
There are times, as in this example, when 8)) through 12)) produces the same
SQL code. When this happens, copy the code. Paste the code into the Type of list
contents property before doing 13)). It is a nice shortcut.
Note
This database form contains multiple controls with the same label: Payment Type.
When this name has been entered for the first time, it can be copied. In d)) for the
next label, highlight the current label name, paste the name you want, and click
another property.
b) Scroll to the Formatting property. Click the ellipsis (…) on the right. Select Currency
from the Category column. Uncheck Negative numbers red and Thousands separator.
Click OK.
c) Scroll to the Width property. Adjust the width if necessary.
d) Change the Alignment property if you do not want data to be to the left. Select Center
to put the data in the middle of the cell.
3) Click the FuelQuantity label.
a) Open the drop-down list for the Label property. Add a space between Fuel and
Quantity. Press Enter.
b) Scroll to the Formatting property. Change if needed to show three decimal places.
c) Scroll to the Width property. Adjust the width if necessary.
d) Change the Alignment property if you do not want data to be to the left. Select Center
to put the data in the middle of the cell.
4) Click the Odometer label.
a) Scroll to the Formatting property. Change if needed to show one decimal place.
b) Scroll to the Width property. Adjust the width if necessary.
c) Change the Alignment property if you do not want data to be to the left. Select Center
to put the data in the middle of the cell.
5) Click the PaymentType label.
a) Right-click this label to open a context menu to add a list box. Select Replace with >
List Box in the context menu.
c) On the Data tab, change the Type of list contents property to Sql.
d) Paste the SQL code SELECT "Type" FROM "PaymentType" into the List content property.
(This is a shortcut method – see the Tip on page 350 and the detailed instructions
above it if you want more details).
Step 6): Group the controls
This is a suggested layout which looks reasonably well organized. Use this one or create one
that appeals to you. The controls may be wider or narrower than yours because of the content
that will be in them. Note that this layout has left space for the additional labels that will be added
later.
1) Three icons need to be activated on the Form Design toolbar: Display Grid, Snap to
Grid, and Helplines While Moving. If this toolbar is on the side of the form, click the
double arrow (») to open a sub toolbar showing them. If the toolbar is on the top or bottom
of the form, they are on the right end of it. If there is a double arrow at the end, click it to
reveal them. Make sure they are highlighted as in this figure.
Tip
You can also control the Display Grid, Snap to Grid, and Helplines While
Moving options using the View > Grid and Helplines menu.
2) Some of the controls need to be moved in pairs so the Form Navigator needs to remain
open. Close the Properties dialog now.
Note
When moving a control, it is tempting to use the PositionX and PositionY
properties to place the control exactly where you want it to be. Do not do this.
This will place the control’s label and field on top of each other. These properties
can be used to move a label or field to a specific location, but are not designed to
move a control. Use the Position and Size icon on the Form Design toolbar to
move a control or group of selected controls.
The list in the Form Navigator reveals which controls needed to be grouped based upon their
names:
– lblMotel / fmtMotel with lblMPayment / txtMPayment;
– lblBreakfast / fmtBreakfast with lblBPayment / txtBPayment;
– lblLunch / fmtLunch with lblLPayment / txtLPayment;
– lblSupper / fmtSupper with lblSPayment / txtSPayment;
– lblSnackNo / txtSnackNo with lblSnCost / fmtSnCost and with lblSnPayment /
txtSnPayment (group these three controls together);
– lblMiscellaneous / fmtMiscellaneous with lblMiscPayment / txtMiscPayment.
Tip
If you have experience in using styles, you can open the Styles deck by selecting
View > Styles, or by pressing F11. Right-clicking the Heading 2 style and
selecting the Modify option in the context menu would allow you to quickly modify
the appearance of all three headings. See the Writer Guide for details.
Figure 259: Form Design toolbar with Activation Order icon circled
1) If it is not open already, select View > Toolbar > Form Design to open the Form Design
toolbar.
2) Click the Activation Order icon (circled in Figure 259).
3) Rearrange the order of the fields in the Tab Order dialog.
a) If you click the Automatic Sort button, Base will interpret the structure of your form
and propose what it considers to be a sensible tab order.
b) You can use the Move Up and Move Down buttons to change the position of a
selected control in the list.
c) You can drag a control from one position to another in the Controls list.
d) You may chose to define your own tab order, or you could put the fields in the same
order as that shown in Figure 260.
e) Click OK.
4) Save and close the form.
5) Save the database.
Note
The order in which the following descriptions are presented assume a particular
tab order for the form, and this may not match the tab order that you want to
define.
The quickest way to enter a date in the Date field is to click the arrow that opens the drop-down
calendar (Figure 261) and click the day that you want. Then press the Tab key to go to the next
field.
Note
The Tab key is used to move between fields. But since text fields do not have tab
positions in them, they can not be used to move from one position in the field to
another one. All spacing must be done by the space bar. The Enter key is a little
more complex. It can be used to move between non-text fields. With a text field,
its action depends upon whether the text field has a single line property. With it,
pressing Enter will move the cursor to the next field. But when the field has a
multi-line property, pressing Enter moved will only move the cursor down one
line. With this field, the Tab key has to be used to move the cursor to the next
field.
If we did not have a subform for fuel data, pressing the Tab key in the last field
would save all of the fields, clear them, and make the form ready to accept data
on the second record.
Since we have a subform, using the Tab key places the cursor in the first Date field of the
subform with the date automatically entered to match the Date field of the main form.
Tip
The number in the Record box is the number of the record whose data is shown
in the form.
If you know the number of the record you want, you can enter it into the record
box and then type Enter to take you to that record.
Note
The Copy table operation copies only values and strings from the Calc
spreadsheet. It does not copy formulas.
Creating queries
Queries are used to get specific information from a database. Their results are special tables
within the database.
To demonstrate the use of queries, we will use two different methods:
• Using our CD-Collection table, we will create a list of albums by a particular artist. We will
do this using the Query Wizard.
• The information we might want from the Fuel table includes what our fuel economy is. We
will do this using Design View. (Queries that require calculations are best created with
Design View.)
Note
When working with a query, more than one table can be used. Since different
tables may contain the same field names, the format for naming fields in a query
is table name.field name, with a period (.) between the table name and the field
name. For example, the Lunch field of the Vacations table used in a query has the
name Vacations.Lunch.
Tip
To change the order of the fields, select the field you want to move and click the
up or down arrow to the right of the Fields in the Query list.
Note
These conditions apply to numbers, letters (using alphabetical order), and dates.
Note
Since we have a simple query, the Grouping and Grouping conditions are not
needed. Steps 5 and 6 of the wizard are skipped in our query.
Tip
Move the mouse pointer over the bottom edge of the Fuel table (Figure 266) and
drag the edge to make it longer and easier to see all of the fields in the table.
Base presents the results of the query in the area above the query table.
Figure 269 shows the Fuel table with sample entries. The query results based upon the Fuel
table are shown in Figure 270.
Note
When entering fields for these calculations, you must follow this format: table or
query name followed by a period followed by the field name. For hyphenated or
multiple-word names (table or query), use double quotes around the table or
query name. The query will then add the rest of the double quotes as in Figure
276.
Use the arithmetical symbol between the two. More than one calculation can be
done by using parentheses to group the arithmetical operations.
Note
To fully use queries requires a knowledge of set operations (unions, intersections,
and, or, complements, or any combinations of these). Having a copy of the
RDBMS manuals, is also extremely useful.
Creating reports
Reports provide information found in the database arranged in a useful way. In this respect, they
are similar to queries. They are different in that they are designed to be distributed to people.
Queries are only designed to answer a question about the database. Reports are generated from
the database’s tables, views, or queries.
All reports are based upon a single table, view, or query, so you need first to decide what fields
you want to use in the report. If you want to use fields from different tables, you must first
combine these fields in a single query or view. Then you can create a report from this.
For example, a report on vacation expenses includes both fuel costs and meal costs. These
values are contained in fields of two different tables: Vacations and Fuel. So this report requires
you to create a query or view.
Figure 283 shows part of the final template that has been built up in the Report Builder as you
reach the end of the wizard.
Step 6: Create report
1) Title the report: Vacation Expenses.
2) Select the Dynamic report option.
3) Select the Create report now option.
4) Click Finish.
Note
Using this method of accessing a spreadsheet, you cannot change anything in
the spreadsheet using Base. You can only view the contents of the spreadsheet,
run queries, and create reports based upon the data already entered into the
spreadsheet.
All changes in a spreadsheet must be made in the spreadsheet itself, using Calc.
After modifying the spreadsheet and saving it, you will see the changes in the
database. If you create and save an additional sheet in your spreadsheet, the
database will have a new table the next time you access it.
Note
Sometimes after updating LibreOffice to a newer version, your list of registered
database files disappears. When that happens, you can use these steps to re-
register your database files with your latest version of LibreOffice.
Tip
Choose Tools > Mail Merge Wizard or click on the Mail Merge icon (circled in
Figure 288) in the Data Sources window to start the Mail Merge Wizard, which
steps you through creating a mail merge document. See Chapter 14 in the Writer
Guide.
Writer documents
To insert a field from a table opened in the Data Sources window into a Writer document, click on
the field name (the gray square at the top of the field list) and, with the left mouse button held
down, drag the field onto the document. In a Writer document, it will appear as <FIELD> (where
FIELD is the name of the field you dragged).
For example, to enter the cost of meals and who paid for them on a certain date of a vacation:
1) Open the list of data sources (Ctrl+Shift+F4) and select the Vacations table in the
Automobile database.
2) Use this sentence: “On (date), our breakfast cost (amount) paid by (name), our lunch cost
(amount) paid by (name), and our supper cost (amount) paid by (name).” But only type
“On, our breakfast cost paid by, our lunch cost paid by, and our supper cost paid by.”
3) To replace (date), click the field name Date in the Data Sources window and drag it to the
right of the word On. Insert an extra space if necessary. The result: On <Date>. If you
have field shadings turned on (View > Field Shadings), <Date> has a gray background.
Otherwise it does not.
4) To replace first (amount), click the Breakfast field name and drag it to the right of our
breakfast cost. Make sure you have the proper spacing between the field names and the
words before and after them. Result: breakfast cost <Breakfast>.
5) To replace the first (name), click the BPayment field name and drag it to the right of paid
by. Result: paid by <BPayment>.
6) In the same way, fill in the rest of the fields in the sentence.
– Use <Lunch> and <LPayment> for the second set of (amount) and (name) in the
sentence.
– Use <Supper> and <SPayment> for the third set of (amount) and (name) in the
sentence.
Calc spreadsheets
There are two ways to transfer data into a Calc spreadsheet. One enters the data into the
spreadsheet cells. The other creates complete new records in the spreadsheet. While you can
directly access the data inserted into the spreadsheet cells, new records created in the
spreadsheet are read-only.
Entering data directly to the spreadsheet cells uses the Data to Text icon as when making a table
in a Writer document. But there are certain differences.
The steps are straightforward.
1) Click the cell of the spreadsheet which you want to be the top left cell of your data,
including the column names.
2) Use Ctrl+Shift+F4 to open the Data Sources window and select the table whose data you
want to use.
3) Select the rows of data you want to add to the spreadsheet:
– Click the gray box to the left of the row (the row header) you want to select if only
selecting one row. That row is highlighted.
Chapter 9,
Getting Started with Math
LibreOffice’s Formula (Equation) Editor
Introduction
Math is a formula editor included with LibreOffice used to create or edit formulas (equations) in a
symbolic form, within LibreOffice documents or as stand-alone objects. Example formulas are
shown below:
df (x)
=ln(x)+ tan−1 (x 2) or NH 3+H 2 O ⇌NH+4 + OH −
dx
The Formula Editor in Math uses a markup language to represent formulas. This markup
language is designed to be easily read wherever possible. For example, a over b using markup
a
language produces the fraction when used in a formula.
b
Getting started
The Formula Editor creates a formula as a separate file for a formula library or insert formulas
directly into a document using LibreOffice Writer, Calc, Impress, or Draw.
Creating formulas
Create a formula using one of the following methods:
• In the Elements panel, select a category in the drop-down list, then select a symbol.
• Right-click in the Formula Editor and select a category, then select a symbol in the
context menu.
• Enter markup language directly in the Formula Editor.
Note
Using the Elements panel or the context menus to create a formula provides a
convenient way to learn the markup language used by Math.
Elements panel
The Elements panel (Figure 293) is a visual tool to help create and edit formulas. It organizes
mathematical symbols and operators using Categories in a drop-down list. The steps below
describe how to enable the Elements panel and navigate its categories and symbols.
4) Go to View > Elements on the Menu bar to open the Elements panel.
5) Select the category for the formula from the drop-down list at the top of the Elements
panel.
6) Select the symbol for the formula in the Elements panel. The symbols that are available
change according to the selected category.
7) After choosing one of the symbols in the Elements panel, the Formula Editor will be
updated with the Markup notation of the selected symbol.
Note
The Elements panel can either be a floating dialog, as shown in Figure 293, or
positioned to the right of the Formula Editor, as shown in Figure 294.
Tip
The Elements panel includes an Examples category which provides example
formulas to use as a starting point for a formula or equation.
Context menu
The Formula Editor also provides a context menu to access categories and symbols when
creating a formula. Right-click in the Formula Editor to open the context menu. Select a category
and then select the markup example for use in the sub-context menu. An example is shown in
Figure 295.
Note
The Elements panel and the context menu contain only the most common
commands that are used in formulas. Other symbols and commands not listed in
the Elements panel and context menu must be inserted manually using the
markup language. For a complete list of commands and symbols available in
Math, see Appendix A, Commands Reference, in the Math Guide.
Markup language
Markup language is entered directly into the Formula Editor. For example, typing 5 times 4 into
the Formula Editor creates the simple formula 5×4 . For experienced markup language users, it
can be the quickest way to enter a formula. Table 9 shows some examples of using markup
language to enter commands. For a full list of commands that can be used in the Formula Editor,
see Appendix A, Commands Reference, in the Math Guide.
Table 9: Example commands using markup language
Display Command Display Command
a=b a = b √a sqrt {a}
a
2 a^2 an a_n
Greek characters
Symbols dialog
Greek characters can also be entered into a formula using the Symbols dialog.
1) Make sure the cursor is in the correct position in the Formula Editor.
2) Go to Tools > Symbols on the Menu bar, or click the Symbols icon in the Tools toolbar,
to open the Symbols dialog (Figure 296).
3) Select Greek in the Symbol set drop-down list. For italic characters, select iGreek in the
drop-down list.
4) Double-click the desired Greek character to insert it or select it and click Insert. When
selected, the name of the character is shown below the symbol list.
5) Click Close after entering Greek characters into the formula.
Formula examples
Example 1
The simple formula 5×4 can be created using LibreOffice Math as follows:
1) Make sure the cursor is flashing in the Formula Editor, then select the category
Unary/Binary Operators and symbol Multiplication using one of the following methods:
Tip
To move forward from one placeholder to the next placeholder in a formula, press
the F4 key. To move backward from one placeholder to the previous placeholder
in a formula, use the key combination Shift+F4.
Note
If necessary, to prevent a formula in a document from updating automatically. Go
to View on the Menu bar and deselect AutoUpdate display. To then manually
update a formula, press the F9 key or select View > Update on the Menu bar.
Example 2
To create the formula π ≃ 3.14159 where the value of pi is rounded to 5 decimal places,
without knowing markup associated with the Is Similar Or Equal symbol ≃ , follow these
steps:
1) Make sure the cursor is flashing in the Formula Editor.
2) Enter %pi in the Formula Editor to enter the Greek character for pi (π).
3) Select the category Relations and symbol Is Similar Or Equal using one of the following
methods:
– In the Elements panel, select Relations in the drop-down list and then select the Is
Similar Or Equal icon .
– Right-click in the Formula Editor and select Relations > a simeq b in the context
menu.
4) Delete the first placeholder <?> before the word simeq in the Formula Editor.
5) Select the second placeholder <?> after the word simeq in the Formula Editor and replace
it with the characters 3.14159. The formula π ≃ 3.14159 now appears in the
document.
Note
If a formula element cannot be selected using the cursor, click on the Formula
Cursor icon in the Tools toolbar to activate the formula cursor.
2) Select the formula element to be changed using one of the following methods:
– Click on the formula element in the Preview window, positioning the cursor at the
beginning of the formula element in the Formula Editor, then select the formula
element in the Formula Editor.
– Double-click on the formula element in the Preview window to select the formula
element in the Formula Editor.
– Position the cursor in the Formula Editor at the formula element to be edited, then
select that formula element.
– Double-click directly on the formula element in the Formula Editor to select it.
3) Make changes to the selected formula element.
4) Go to View > Update on the Menu bar, or press the F9 key, or click on the Update icon
on the Tools toolbar to update the formula in the Preview window or in the document.
5) In Math, save changes to the formula after editing.
In Writer, Calc, Impress, or Draw, click anywhere in the document away from the formula
to leave editing mode, then save the document to save changes to the formula.
Formula layout
This section provides some advice on how to lay out complex formulas in Math or in a LibreOffice
document.
Using braces
LibreOffice Math knows nothing about order of operations within a formula. Braces (curly
brackets) are used to define the order of operations. The following examples show how braces
can be used in a formula.
Example 1
2
2 over x + 1 gives the result +1
x
matrix { a # b ## c # d }
a b
c d
In matrices, rows are separated by two hashes (##) and entries within each row are separated by
one hash (#).
Normally, when brackets are within a matrix, the brackets do not scale as the matrix increases in
size. The example below shows a formula where the parentheses do not scale to the size of the
resulting matrix.
a b
( matrix { a # b ## c # d } ) ( )
c d
To overcome this problem, Math provides scalable brackets that grow in size to match the size of
the matrix. Use the commands left( and right) to create scalable brackets around a matrix.
The following example shows how to create a matrix with scalable parentheses.
left( matrix { 1 # 2 # 3 ## 4 # `
# 6 } right) ( 14 2 3
6 )
Tip
Use the commands left[ and right] to obtain square brackets. A list of all
brackets available within Math can be found in Appendix A, Commands
Reference, of the Math Guide.
Tip
To make all brackets to be scalable, go to Format > Spacing on the Menu bar to
open the Spacing dialog. Click on Category, select Brackets in the drop-down
list, and then select the option Scale all brackets.
Unpaired brackets
When using brackets in a formula, Math expects that for every opening bracket there will be a
closing one. If there is no closing bracket, Math places an inverted question mark next to where
the closing bracket should have been placed. For example, lbrace a; b will result in ¿
because the right bracket rbrace is missing.
This inverted question mark disappears when all the brackets are paired. The previous example
could be fixed to lbrace a; b rbrace, resulting in {a ; b}. However, there are cases where an
unpaired bracket is necessary and for that there are a couple of options.
Scalable brackets
To create unpaired scalable brackets or braces in a formula, the markup commands left, right,
and none can be used.
Example
The following formula uses the stack command to create a two-line formula and adds a
bracket only to the right side of the stack.
Recognizing functions
In the basic installation of Math, Math outputs functions in normal characters and variables in
italic characters. However, if Math fails to recognize a function, the markup command func before
a function can force Math to recognize any following text as a function and uses normal
characters.
For a full list of functions within Math, see Appendix A, Commands Reference, in the Math Guide.
Some Math functions have to be followed by a number or a variable. If these are missing, Math
places an inverted question mark where the missing number or variable should be. To remove
the inverted question mark and correct the formula, enter a number, a variable, or a pair of empty
brackets as a placeholder.
Tip
Use the F3 key to navigate to the next formula error or the key combination
Shift+F3 to move to the previous error.
x = 3 newline y = 1
x=3
y=1
It is not possible in Math to create multiple line formulas when a line ends with an equals sign
and to continue the formula on a new line without completing the term on the right side of the
equals sign. If a multiple line formula is required to have an equals sign at the end of a line
without a term after the equals sign, then use either empty quotes “” or empty braces {} or the
space characters grave ` or tilde ˜.
By default, a multiple line formula is center aligned. For more information on alignment using the
equals sign, see “Customization” on page 419.
Writing derivatives
When writing derivatives, use the over command to identify fractions to Math. The over
command is combined with the character d for a total derivative or the partial command for a
partial derivative to achieve the effect of a derivative. Braces {} are used in each side of the
elements to surround them and make the derivative, as shown by the following examples.
Examples
Below are a few examples of using Math to write derivatives.
Markup Language Resulting Formula
df
{df} over {dx}
dx
∂f
{partial f} over {partial y}
∂y
2
{partial^2 f} over {partial t^2}
∂ f
2
∂t
Note
The Special Characters dialog used by other LibreOffice components is not
available in Math. For regular use of special characters in Math, adding the
characters to the Math Catalog is recommended; see “Catalog customization” on
page 419 for more information.
Text in formulas
To include text in a formula, enclose any text in double-quotes, for example x " for " x >= 0 in
markup language will create the formula x for x≥0 . All characters, except double quotes, can
be used in text.
However, for double quotes in formula text, create the text with double quotes in LibreOffice
Writer, then copy and paste the text into the Formula Editor, as shown in Figure 297.
Note
The empty braces each side of the equals sign are necessary because the equals
sign is a binary operator and requires an expression on each side. Spaces, or ` or
~ characters each side of the equals sign can be used, but braces are
recommended as they are easier to see within the markup language.
The spacing on each side of the equals sign can be reduced by changing the inter-column
spacing of the matrix. See “Adjusting formula spacing” on page 406 for more information.
Note
Only formulas inserted after the change in font settings will use the new default
settings. The font settings of formulas previously inserted would have to be
updated individually to match the same font settings as the new default settings.
Formula fonts
Note
When a new font is selected for a formula, the old font remains in the list
alongside the new one and can be selected again.
Note
Variables should be written in italics, so make sure that the Italic option is
selected for the desired font. For all other elements, use the basic form of a font.
The style can be easily altered in the formula itself by using the commands
italic or bold to set these characteristics and nitalic or nbold to unset them.
Note
Only formulas inserted after the change in default spacing will use the new default
settings. The spacing of formulas previously inserted would have to be updated
individually to match the same spacing as the new default settings.
Spacing options
Use Category in the Spacing dialog (Figure 301) to determine the formula element to be updated.
The appearance of the dialog depends on the selected category. A preview window shows which
spacing is modified through the respective boxes.
• Category – defines the selection for the spacing change.
• Spacing – defines the spacing between variables and operators, between lines, and
between root signs and radicals.
• Indexes – defines the spacing for superscript and subscript indexes.
• Fractions – defines the spacing between the fraction bar and the numerator or
denominator.
• Fraction Bars – defines the excess length and line weight of the fraction bar.
• Limits – defines the spacing between the sum symbol and the limit conditions.
• Brackets – defines the spacing between brackets and the content.
– Excess size (left/right) – determines the vertical distance between the upper edge of
the contents and the upper end of the brackets.
– Spacing – determines the horizontal distance between the contents and the upper
end of the brackets.
– Scale all brackets – scales all types of brackets. By entering (a over b) in the Formula
Editor, the brackets will surround the whole height of the argument. Normally, this is
done by entering left (a over b right).
– Excess size – adjusts the percentage excess size. At 0% the brackets are set so that
they surround the argument at the same height. The higher the entered value is, the
larger the vertical gap between the contents of the brackets and the external border
of the brackets. The field can only be used in combination with Scale all brackets.
• Matrices – defines the relative spacing for the elements in a matrix.
– Line spacing – determines the spacing between matrix elements in a row.
– Column spacing – determines the spacing between matrix elements in a column.
• Symbols – defines the spacing of symbols in relation to variables
– Primary height – defines the height of the symbols in relation to the baseline.
Note
It is not possible to align formulas on a particular character and formula alignment
does not apply to text elements. Text elements are always aligned left.
Note
Independent of using formula alignment given below, it is possible to align
formulas using the commands alignl, alignc and alignr. These commands also
work for text elements.
Note
Only formulas inserted after the change in default alignment will use the new
default settings. The alignment of formulas previously inserted would have to be
updated individually to match the same alignment as the new default settings.
Named colors
For information on the named colors available in Math, see Appendix A, Commands Reference,
in the Math Guide. These colors are listed in the Attributes section of the Elements panel (Figure
293 on page 390).
RGB values
To use custom colors defined by RGB (Red, Green and Blue) values ranging from 0 to 255, use
the color rgb R G B markup command, where R, G, and B correspond to the Red, Green, and
Blue values of the desired color.
Example
In this example, the term “decision variable” uses the color defined by the RGB values
160, 82, 45.
"Let " x_ij " be a " color rgb 160 82 45 "decision variable " "in the problem
under consideration"
Hex values
Math now supports HTML colors defined by a hex number. Use the color hex 000000 markup
command, where 00000 is the corresponding hex number. For example, the command color
hex FF0000 decision creates the output decision .
Background color
It is not possible to select a background color for formulas in LibreOffice Math. The background
color for a formula is by default the same color as the document or frame that the formula has
been inserted into. In LibreOffice Writer, use object properties to change the background color for
a formula. For more information, see “Background and borders” on page 415.
Formula library
For reuse of formulas, a formula library can be created of the formulas created by the Formula
Editor. Individual formulas can be saved as separate files using the ODF format for formulas (file
type .odf), or in MathML format (file type .mml).
LibreOffice Math, Writer, Calc, Draw, or Impress can create formulas and build up a formula
library.
Using Math
1) Create a file folder to contain the formula library.
2) In LibreOffice, go to File > New > Formula on the Menu bar, or click on Math Formula in
the Start Center to open Math and create a formula using the Formula Editor. See
“Formulas as separate documents or files” on page 389 for more information.
3) Go to File > Save As on the Menu bar or use the keyboard shortcut Ctrl+Shift+S to
open a Save As dialog.
4) Navigate to the formula library folder created in step 1.
5) Name the formula in the File name box.
6) Select in the File type drop-down list either ODF Formula (.odf) or MathML 2.0 (.mml) as
the file type for the formula.
7) Click Save to save the formula and close the Save As dialog.
Formulas in Writer
When a formula is inserted into a document, LibreOffice Writer places the formula in a frame and
treats the formula as an OLE object. Double-click on an inserted formula to open the Formula
Editor in LibreOffice Math, to edit it.
This section explains the options available to change each individual formula within a Writer
document. Please refer to the chapters on styles in the Writer Guide for information on how to
change the default settings for frame styles for OLE objects.
Cross-referencing
1) Click in the document where the cross-reference should appear.
2) Go to Insert > Cross-reference on the Menu bar to open the Fields dialog (Figure 303).
Tip
To insert the cross-reference number without parentheses, select Numbering
instead of Reference in the Insert reference to section.
Note
To use square parentheses instead of round ones, or to have the cross-reference
number be separated from the formula by tabs instead of using a table, then refer
to the Writer Guide.
Anchoring formulas
A formula is treated as an object within Writer and its default anchoring is To character within a
paragraph when it is inserted into a document. To change the anchoring of a formula object:
1) Right-click on the selected formula object and select Anchor in the context menu.
Note
The anchoring options are not available in the Object dialog when making
changes to the options available for frame styles. For more information on how to
modify frame styles, please refer to the chapters on styles in the Writer Guide.
Vertical alignment
The normal default setting for vertical alignment for formula objects is to use the text base line as
a reference. This default setting can be changed by modifying the Formula frame style; see the
chapters on styles in the Writer Guide for more information.
To change the vertical alignment position of an individual formula object (assuming that the As
character anchoring option is selected):
1) Right-click on the selected formula object and select Properties in the context menu, or
go to Format > Frame and Object > Properties to open the Object dialog (Figure 304).
2) Make sure the Type tab is selected and select a new alignment position in the drop-down
list in the Position section. The vertical alignment options available are Top, Bottom,
Center, or From bottom.
3) If necessary, type in the text box a plus or minus value for vertical alignment. This option
is only available if From bottom vertical alignment has been selected.
4) Select the type of text alignment in the drop-down list in the Position section. The text
alignment options available are Base line, Character, and Row.
5) Click OK to save changes and close the Object dialog.
Object spacing
A formula object, when inserted into a Writer document, has spacing each side of the formula
object. The default value used for spacing is set within the frame style for formula objects and
can be changed by modifying the Formula frame style. See the chapters on styles in the Writer
Guide for more information.
To individually adjust the spacing for each formula object within a document:
1) Create a formula in a Writer document.
2) Right-click on the selected formula object and select Properties in the context menu, or
go to Format > Frame and Object > Properties to open the Object dialog.
3) Click on the Wrap tab to open the Wrap page in the Object dialog (Figure 305).
4) In the Spacing section, enter the spacing value for Left, Right, Top, and Bottom spacing.
5) Click OK to save the changes and close the Object dialog.
Text mode
In large formulas placed within a line of text, the formula elements can often be higher than the
text height. Therefore, to make large formulas easier to read, it is recommended to always insert
large formulas into a separate paragraph of their own so that it is separated from text.
∑ i2
i=2
and the same formula embedded into a line of text using text mode format: ∑5i=2 i 2
Note
The size of the frame that a formula is placed in when inserted into a document
cannot be changed. The frame size for a formula object depends on the setting of
the formula font size. See “Formula font size” on page 403 for more information.
Backgrounds
1) In the document, select the formula for the background change.
2) Right-click on the formula and select Properties in the context menu, or go to Format >
Frame and Object > Properties to open the Object dialog.
3) Click on the Area tab and use the buttons at the top to select the desired type of fill for the
formula (Figure 306).
4) Select the options for the formula background. The options change depending on the type
of fill selected.
5) Click OK to save changes and close the Object dialog.
Anchoring formulas
Calc
A formula object can be anchored into a spreadsheet as To Page (default setting), or as To Cell.
To change the anchoring type of formulas in a Calc spreadsheet:
1) Select the formula object in the spreadsheet.
2) Right-click on the formula and select Anchor > To Page or To Cell in the context menu.
3) Alternatively, go to Format > Anchor on the Menu bar and select To Page or To Cell.
Tip
If an inserted formula in a Calc spreadsheet appears out of scale, fix it by right-
clicking the formula object and then selecting the Original Size option in the
context menu.
Formulas in charts
A chart in a Calc spreadsheet is itself an OLE object, therefore, the Formula Editor cannot be
used to create and insert a formula directly into a chart. However, both the Chart and Math
objects can be created separately and late copy and paste the Math formula into the Chart
object:
1) Create the chart using LibreOffice Calc. For a complete reference on how to create
charts, see Chapter 3 in the Calc Guide.
2) Click at any cell in the spreadsheet so that the Chart is no longer selected.
3) Insert a Math Formula object by clicking Insert > Object > Formula.
4) Type the desired formula into the Formula Editor.
5) After editing the formula, select the Math Formula object and press Ctrl+C to copy the
Formula object to the clipboard.
6) Double-click the chart object to start editing the chart and press Ctrl+V to paste the
Formula object into the chart.
7) Now the object can be positioned anywhere inside the chart.
To change the formula, repeat the whole process of creating, copying, and pasting the Formula
object into the chart.
Chemical formulas
The primary purpose of Math is to create mathematical formulas, but it can also be used to write
chemical formulas. However, in chemical formulas, the chemical symbols are normally written in
uppercase using non-italic characters.
Customization
This section explains how to customize LibreOffice Math formula creation in LibreOffice
documents. Also, refer to Chapter 13, Customizing LibreOffice, for more general information on
how to customize LibreOffice.
Catalog customization
For regular use of a symbol that is not available in Math, add it to the Symbols dialog (Figure
308) by using the Edit Symbols dialog (Figure 309).
Symbols can be added to a symbol set, symbol sets edited, symbol notations modified, new
symbol sets defined, names assigned to symbols, existing symbol sets modified.
For details of the fields in the Edit Symbols dialog, please refer to the Math Guide.
Adding symbols
1) Go to Tools > Symbols on the Menu bar or click on the Symbols icon on the Tools
toolbar to open the Symbols dialog.
2) Click the Edit button to open the Edit Symbols dialog.
3) Select a font in the Font drop-down list.
4) Scroll down and select a symbol character to be added in the preview box. The small right
preview box displays the new symbol.
5) In the Symbol box, name the symbol being added.
6) In the Symbol set box, select a symbol set in the drop-down list to add the new symbol to,
or type a new name to create a new symbol set for the new symbol.
7) If required, select a font style in the Style drop-down list – Standard, Italic, Bold, or
Bold, Italic.
8) Click Add, then click OK to close the Edit Symbols dialog. The new symbol and, if
created, new symbol set are now available for use.
Customization | 377
Note
After a new symbol is added to the catalog, it can be added to a new formula by
typing a percentage sign (%) followed by the new name into the markup
language. Remember that symbol names are case sensitive, for example, %prime
is a different symbol to %Prime.
Note
By default, only those user-defined symbols that actually occur in the document
are stored with it. Sometimes it is useful to embed all the user-defined symbols,
so that when the document is transferred to another computer it can be edited by
another person. Go to Tools > Options > LibreOffice Math > Settings on the
Menu bar and uncheck Embed only used symbols (smaller file size) in the
Miscellaneous Options section.
Editing symbols
Moving symbols
To move a symbol from one symbol set to another:
1) In the Edit Symbols dialog (Figure 309), in the Old symbol set drop-down list, select the
symbol set where the symbol to be moved is located.
2) Select the symbol name to be moved in the Old symbol drop-down list. The symbol
appears in the left preview pane at the bottom of the Edit Symbols dialog (Figure 309).
3) In the Symbol set drop-down list, select the desired symbol set to move the symbol to.
The new symbol set name appears below the right preview pane at the bottom of the Edit
Symbols dialog.
4) Click Modify and the symbol is moved to the new symbol set.
5) Click OK to close the Edit Symbols dialog.
Deleting symbols
To delete a symbol from a symbol set:
1) In the Edit Symbols dialog (Figure 309), in the Old symbol set drop-down list, select the
symbol set from which the symbol should be deleted.
Note
The only way to delete a symbol set is by deleting all of the symbols in that set.
When the last symbol is deleted from a set, the set is also deleted.
Formula spacing
The grave accent (`) inserts an additional small space and the tilde (~) inserts an additional large
space into formulas. However, in the basic installation of LibreOffice, these symbols are ignored
when they occur at the end of a formula. For running text in a formula, it may be necessary to
include spacing at the end of formulas as well. This customization is only required when working
with a Math document and is not required when inserting a formula into another LibreOffice
component.
To add spacing at the end of formula in Math, go to Tools > Options > LibreOffice Math >
Settings on the Menu bar and uncheck Ignore ~ and ` at the end of the line in the
Miscellaneous Options section.
Note
To customize LibreOffice Math settings, open LibreOffice Math and then navigate
to Tools > Options > LibreOffice Math > Settings.
Extensions
For frequent formula creation and editing, LibreOffice can be customized by adding extensions
that are designed to help create formulas. Extensions are easily installed using the Extension
Manager. For more information on how to install extensions, see Chapter 13, Customizing
LibreOffice.
A commonly used extension is Formatting of All Math Formulas. It allows the formatting of all
Math formulas in a Writer, Calc, Draw, or Impress document. With it the font names and font
sizes of all formulas can be changed in a document. For more information on this extension, go
to https://extensions.libreoffice.org/en/extensions/show/formatting-of-all-math-formulas.
Customization | 379
Exporting and Importing
Math ML format
In addition to exporting documents as PDFs, LibreOffice offers the possibility of saving formulas
in the MathML format. This allows the insertion of formulas into documents that were created in
other software, for example, Microsoft Office or an internet browser.
Note
Some internet browsers do not fully support the MathML format, so formulas may
not display correctly.
If working on a Math document, go to File > Save as on the Menu bar or use the keyboard
combination Ctrl+Shift+S to open the Save as dialog. Select MathML in the list of available
file formats in File type to save the formula as MathML.
If working in another LibreOffice component, right-click on the formula object and select Save
Copy as in the context menu to open the Save as dialog. Select MathML in the list of available
file formats in File type to save the formula object as MathML.
MathML formulas can be imported into Math by using Tools > Import MathML from Clipboard
on the Menu bar.
Chapter 10
Working with File Formats,
Security, and Exporting
File formats
LibreOffice can open a wide variety of file formats as shown below in addition to the Open
Document Format (ODF), including Portable Document Format (PDF).
Most file formats are automatically detected by LibreOffice and can be opened without explicitly
selecting the document format in the file picker.
Text documents
In addition to Open Document text formats (.odt, .ott, .oth, .odm, and .fodt), Writer can open the
following text formats and a variety of legacy formats that are not listed.
When opening .htm or .html files used for web pages, LibreOffice customizes Writer for working
with these files.
Microsoft Word 6.0/95/97/2000/XP/Mac) (.doc and .dot)
Microsoft Word 2003 XML (.xml)
Microsoft Word 2007/2010 XML (.docx, .docm, .dotx, .dotm)
Microsoft WinWord 5 (.doc)
Microsoft Works (.wps)
Abiword Document (.abw, .zabw)
MacWrite Document (.mw, .mcw)
Text CSV (.csv and .txt)
DocBook (.xml)
T602 Document (.602, .txt)
Apple Pages (.pages)
HTML Document (.htm, .html)
WordPerfect Document (.wpd)
Lotus WordPro (.lwp)
ClarisWorks/Appleworks Document (.cwk)
Rich Text Format (.rtf)
StarWriter formats (.sdw, .sgl, .vor)
Unified Office Format text (.uot, .uof)
Hangul WP 97 (.hwp)
eBook (.pdb)
OpenOffice.org 1.x (.sxw, .stw, and .sxg)
Spreadsheets
In addition to Open Document spreadsheet formats (.ods, .ots, and .fods), Calc can open the
following spreadsheet formats and a variety of legacy formats that are not listed.
Microsoft Excel 97/2000/XP (.xls, .xlw, and .xlt)
Microsoft Excel 4.x–5.0/95 (.xls, .xlw, and .xlt)
Microsoft Excel 97-2003 (.xml)
Microsoft Excel 2007-365 (.xlsx, .xlsm, .xltx, .xltm)
Microsoft Excel 2007-2010 binary (.xlsb)
Lotus 1-2-3 (.wk1, .wks, and .123)
Data Interchange Format (.dif)
Rich Text Format (.rtf)
Text CSV (.csv and .txt)
StarCalc (.sdc and .vor)
OpenOffice.org 1.x (.sxc and .stc)
dBASE (.dbf)
SYLK (.slk)
Presentations
In addition to Open Document presentation formats (.odp, .odg, .otp, and .fopd), Impress can
open the following presentation formats:
Microsoft PowerPoint 97/2000/XP (.ppt and .pot)
Microsoft PowerPoint 2007-365 (.pptx, .pptm, .potx, .potm)
StarDraw and StarImpress (.sda, .sdd, .sdp, and .vor)
OpenOffice.org 1.x (.sxi and .sti)
Unified Office Format presentation (.uop, .uof)
CGM – Computer Graphics Metafile (.cgm)
Portable Document Format (.pdf)
Apple Keynote 5 (.key)
Graphics
In addition to Open Document graphic file formats (.odg and .otg) and PDF files, Draw can open
the following graphic formats:
Adobe Photoshop (*.psd)
AutoCAD Interchange Format (*.dxf)
Corel Draw (*.cdr)
Corel Presentation Exchange (*.cmx)
Microsoft Publisher 98-2010 (*.pub)
Microsoft Visio 2000-2013 (*.vdx; *.vsd; *.vsdm; *.vsdx)
WordPerfect Graphics (*.wpg)
OpenOffice.org 1.x (.sxd and .std)
Bitmap (*.bmp)
Joint Photographic Experts Group (*.jpeg, *.jpg)
Picture Exchange (*.pcx)
Sun Raster (*.ras)
Truevision TGA (*.tga, *.icb, *.vda, *.vst)
Drawing Exchange Format, or Drawing Interchange Format (*.dxf)
eMule Resource Files (*.met)
Portable Gray Map (*.pgm)
Open Office, or Star Office Draw (*.sda)
Tag Image File Format (*.tif, *.tiff)
Windows Metafile (*.wmf)
Enhanced Windows Metafile (*.emf)
Portable Bitmap Image (*.pbm)
Portable Network Graphics (*.png)
StarOffice Presentation (*.sdd)
Encapsulated Postscript (*.eps)
Kodak Photo CD (*.pcd)
Portable Pixmap (*.ppm)
Scalable Vector Graphics (*.svg)
X Window System or X BitMap (*.xbm)
Graphics Interchange Format (*.gif)
Macintosh Picture Image (*.pct)
Photoshop Document (*.psd)
StarView Metafile (*.svm(
Formulas
In addition to Open Document Formula files (.odf), Math can open the formats used by
OpenOffice.org 1.x (.sxm), StarMath (.smf), and MathML (.mml) files.
When opening a Word document that contains an embedded equation editor object, if the option
MathType to LibreOffice Math or reverse is checked in Tools > Options > Load/Save >
Microsoft Office (macOS LibreOffice > Preferences > Load/Save > Microsoft Office), the
object is automatically converted to a LibreOffice Math object.
Tip
When sharing a document that is not going to be modified, the preferred option is
to convert the document to PDF. LibreOffice provides an easy method to convert
documents to PDF.
Text documents
In addition to the ODF text format (.odt, .ott, and .fodt), Writer can save in the following formats:
Office Open XML Text (.docx)
Microsoft Word 2007–365 (.docx, .dotx)
Microsoft Word 97–2003 (.doc)
Microsoft Word 2003 XML (.xml)
Rich Text Format (.rtf)
Text (.txt)
Text Encoded (.txt)
Unified Office Format text (.uot, .uof)
HTML Document (.html and .htm)
DocBook (.xml)
Notes
Encryption support within the Microsoft Word 97/2000/XP filter allows password
protected Microsoft Word documents to be saved.
The .rtf format is a common format for transferring text files between applications,
but there is a loss of formatting and images. For this reason, it is preferable to use
other formats.
Spreadsheets
In addition to the ODF spreadsheet format (.ods, .ots, and .fods), Calc can save in the following
formats:
Presentations
In addition to the ODF presentation format (.odp, .otp, .fodp, and .odg), Impress can save in the
following formats. Impress can also export to graphics formats listed as compatible with Draw.
Microsoft PowerPoint 2007–365 (.pptx, .potm)
Microsoft PowerPoint 2007–365 AutoPlay (.ppsx)
Microsoft PowerPoint 97–2003 (.ppt)
Microsoft PowerPoint 97–2003 Template (.pot)
Microsoft PowerPoint 97–2003 AutoPlay (.pps)
Office Open XML Presentation (.pptx, .potm, .ppsx)
Unified Office Format presentation (.uop)
Drawings
Draw can save in the ODF Drawing format (.odg, .otg, and .fodg). Draw can also export to any of
the graphics formats BMP, EMF, EPS, GIF, JPEG, PNG, SVG, TIFF, and WMF.
Note
Adobe [Macromedia] Flash (.swf) export has been removed from LibreOffice 7.
Flash Player reached end-of-life in December 2020.
Writer/Web documents
Writer/Web can save to the following formats:
HTML document (.html and .htm), as HTML 4.0 Transitional
Text and Text Encoded (LibreOffice Writer/Web) (.txt)
Exporting files
LibreOffice uses the term “export” for file operations where there is a change of file type. If the file
type cannot be found in File > Save As on the Menu bar, check File > Export on the Menu bar
(not available in Math) for additional file types.
LibreOffice can export in PDF format for Writer, Calc, Impress, and Draw, or EPUB for Writer
only. Also, LibreOffice can export files in HTML and XHTML formats. Draw and Impress can also
export in several image and graphic formats.
PDF format is a standard file format ideal for sending a file that can be viewed using Adobe
Reader, or other PDF viewing applications. The process of PDF export and the dialogs used are
similar for Writer, Calc, Impress, and Draw.
Note
By default, a file in PDF format is not protected against contents tampering, or
editing. Contents of a PDF file can be edited by specialized software tools,
including LibreOffice Draw.
Note
Encapsulated PostScript (EPS) images with embedded previews are exported
only as previews. EPS images without embedded previews are exported as
empty placeholders.
Watermark
Add a centered, vertical, light green watermark text to the page background. The
watermark is not part of the source document.
Sign with watermark
Insert the required text for the watermark signature. When this option is selected, a
watermark signature appears on the PDF pages.
General
Sets general PDF export options.
Hybrid PDF (embed ODF file)
Use this setting to export the document as a PDF containing two file formats: PDF and
ODF. In PDF viewers it behaves like a normal PDF file, but remains fully editable in
LibreOffice.
Archive (PDF/A, ISO 19005)
Converts to the PDF/A-1b, PDF/A-2b, or PDF/A-3b format. All fonts used in the source
document are embedded in the generated PDF file, and PDF tags are created. The
primary purpose is to create an electronic document whose appearance is independent
of device and application, making it suitable for long term preservation.
PDF/A-2b is recommended for most users, because it allows for layers and
transparency with shapes and images. It also compresses better (JPEG 2000) than
PDF/A-1b, usually producing smaller files. PDF/A-3b is identical to PDF/A-2b, but also
accepts embedding of other file formats.
Note
The document permission restrictions set by a password are observed only by
PDF readers compliant with the version 1.5 of the PDF format. For older PDF
readers, these restrictions may have no effect.
Notes
If the key store password has already been entered in the Select Certificate
dialog box, the key store may already be unlocked and not require the password
again. But to be on the safe side, enter the password.
When using a smart card, enter the PIN here. Some smart card software prompts
for the PIN again before signing. This is cumbersome, but that is how smart cards
work.
Tip
Other ways to export to EPUB from Writer (.odt) files include Calibre, an open
source e-book manager that runs on Windows, macOS, and Linux. Calibre
provides many e-book conversion facilities (including PDF to EPUB) and allows
editing of the conversion. See https://calibre-ebook.com/ for more information.
Text documents
Note
The use of styles in the text document is strongly recommended when saving, or
exporting to HTML, or XHTML format.
Saving a text document as HTML is limited by the HTML 4.0 Transitional
specification. Text documents in office suites normally use a richer set of
resources that do not appear in HTML, for example page formatting. Do not
expect the same layout when saving a file in HTML format.
Saving as HTML
A text document can be saved in HTML format so that it can be viewed in a web browser. If
required, associate a page break with a specific heading paragraph style to generate a separate
HTML page each time the style appears in the document. LibreOffice Writer automatically
creates a page containing hyperlinks to each of these pages.
Saving a text document in HTML format, any graphics in the document are saved into the HTML
document as embedded data streams. For graphics, JPEG, or SVG formats are saved as HTML
and all other graphic formats are saved as PNG.
LibreOffice generates the image files and the HTML file necessary to create an HTML page in a
browser. The number of files generated by the format conversion depends on the number of
images and objects in the original text document. Refer to Table 10 for the file types created and
file content when saving HTML format.
Table 10: File types created saving in HTML format
File Contents
The text contents, page layout, text attributes, meta
Myfile.html
tags, and styles.
Export as HTML
When exporting a text document as a HTML file, LibreOffice generates an XHTML file for each
text document. Image files are also embedded in the XHTML file. XHTML files created by
exporting a text document using LibreOffice have better layout rendering, but fail to render
objects other than images.
1) If necessary, create a new folder as a location for the HTML file and images.
2) Go to File > Export on the Menu bar to open the Export dialog (Figure 310 on page 435).
3) Navigate to the location of the new folder in the Export dialog.
4) Enter a file name for the HTML file in the File name: text box.
5) In File type:, select XHTML (Extensible Hypertext Markup Language) as the file type.
6) Click on Export to save the file as XHTML and close the Export dialog.
Notes
Writer does not replace multiple spaces in the original document with the HTML
code for non-breaking spaces. To create extra spaces in a HTML file or web
page, insert non-breaking spaces in LibreOffice. To enter non-breaking spaces,
use the keyboard shortcut Ctrl+Spacebar (macOS ⌘+Shift+Spacebar).
Spreadsheets
Calc can save spreadsheet files as HTML documents as follows. If the file contains more than
one sheet, the additional sheets follow each other in the HTML file. Links to each sheet are
placed at the top of the HTML document.
1) If necessary, create a new folder as a location for the HTML file.
2) Go to File > Save As on the Menu bar to open the Save As dialog.
3) Navigate to the required location in the Save As dialog.
4) Enter a file name for the HTML file in the File name: text box.
5) In File type:, select HTML Document (Calc) (.html) as the file type.
6) Click on Save to save the file as HTML and close the Save As dialog.
Note
Calc allows the insertion of links directly into a spreadsheet using the Hyperlink
dialog. See Chapter 4, Working with Styles, Templates and Hyperlinks, for more
information on hyperlinks.
Exporting
Impress presentations and Draw drawings cannot be saved in HTML format, but can be exported
as HTML documents. HTML files are created using the selected options in the HTML Export
dialog.
Notes
Saving in HTML format does not retain any animation, or slide transitions that
have been created in the Impress presentation.
Click on Create on the HTML Export dialog at any stage in the following
procedure to create the HTML file.
If a web page design has not been previously created, the option Existing design
is not available on the Assign Design page of the HTML Export dialog.
Depending on the size of a presentation, or drawing and the number of graphics it
contains, the HTML export function creates several HTML, JPG, and GIF files. It
is recommended to create a folder to hold all the files created for the web version
of a presentation, or drawing. Saving to the desktop and not to a specific folder,
the HTML and graphics files are placed onto the desktop, which could create
difficulties in locating the files.
Display modes
By default, an HTML file opens in Normal view in Writer/Web (Figure 325). To change to Web
view in Writer/Web, go to View > Web on the Menu bar (Figure 326). If necessary, Normal or
Web view are used to add to an HTML document, then edit and format the contents of the HTML
document. The contents in an HTML document are rendered as if displayed in a browser.
Notes
HTML markup language has fewer formatting possibilities than a text document in
ODF format. Writer/Web cannot provide all formatting features for HTML
documents and some formatting dialogs have fewer options available. For
example, a HTML paragraph has no tab settings.
HTML markup content generated by Writer/Web is limited to the production of a
displayable document in a web browser. It does not consider other components of
a website such as external cascading style sheets (CSS), external JavaScript, or
other script languages. It is recommended to only use HTML Source display
mode to manually insert links to any external components into the web page.
Writer/Web options
Go to Tools > Options > LibreOffice Writer/Web (macOS LibreOffice > Preferences >
LibreOffice Writer/Web) on the Menu bar to open the Options LibreOffice Writer/Web dialog
(Figure 328) and define the basic settings for LibreOffice documents in HTML format. For more
information on the options available for Writer/Web, go to the LibreOffice Help website.
Click on a tab in the dialog to access the available options. The tabbed pages are as follows:
View
Defines the default settings for displaying objects in text documents and also the default
settings for the window elements.
Emailing documents
LibreOffice provides several ways to send documents quickly and easily as email attachments in
one of three formats — Open Document Format (LibreOffice default format); Microsoft Office
format; Portable Document Format.
1) Go to File > Send on the Menu bar and use one of the following options:
– Email Document — LibreOffice opens the default email program and the document
is attached to the email message.
– Email as OpenDocument text — LibreOffice opens the default email program and
the document is attached to the email message.
– Email as Microsoft Word — LibreOffice creates a file in Microsoft Word format and
then opens the default email program with the document attached to the email
message.
– Email as PDF — LibreOffice opens the PDF Options dialog. Select the required
settings required and click OK. LibreOffice opens the default email program with the
PDF file attached to the email message.
Note
The above procedure is for sending text documents as an attachment to an email.
When sending spreadsheets, presentations, or drawings, the email options
change to reflect the type of document being attached to an email message.
Digital signatures
A digital signature is a mathematical scheme for verifying the authenticity of digital versions of
drawings or documents.
To sign a drawing digitally, a personal key, also known as a certificate, is required. This personal
key is stored on the computer being used as a combination of a private key, which must be kept
secret, and a public key. These keys are added to a drawing when a digital signature is applied. A
certificate is obtained from a certification authority, which may be a private company or a
government institution.
When a digital signature is applied to a document, a checksum is computed from the document
content, plus the personal key being used. The checksum and public key are stored together with
the document.
When the document is opened on another computer with a recent version of LibreOffice, the
program computes the checksum again and compares it with the stored checksum. If both
checksums are the same, the program opens the original, unchanged document.
In addition, the program can display the public key information from the certificate. This
information can then be compared with the public key that is published on the web site of the
certificate authority. Whenever a document is changed, this change breaks the digital signature.
For a more information on digital signatures, see “About Digital Signatures” and “Applying Digital
Signatures” on the LibreOffice Help website.
Notes
A signed document displays a Digital Signature icon in the Status Bar.
Double-click on this Digital Signature icon to view the certificate. More than one
digital signature can be added to a document.
Changing an existing description invalidates a digital signature. However, multiple
digital signatures from the same author are allowed, because each digital
signature can have a different description.
Signature line
Graphic boxes, that includes a signature line, can also be added to a document. This allows the
user to optionally sign a document with their signature. This option is only available for Writer and
Calc documents.
Add a graphic signature box to a Writer, or Calc document as follows:
1) Go to Insert > Signature Line on the Menu bar to open the Signature Line dialog
(Figure 333).
2) Enter the necessary details and select the required options.
3) Click OK to close the Signature Line dialog and a graphic box with a signature line is
inserted into the document. An example is shown in Figure 334.
Document properties
To open the Properties dialog (Figure 336) for a document, go to File > Properties on the Menu
bar. The tabbed pages in the Properties dialog provides information about the document and
allows properties to be changed.
Note
After printing, a document must be saved to preserve the Last printed data. No
warning message is displayed if an unsaved document is closed.
Description
Contains optional editable descriptive information about the document, which may be exported
as metadata to other file formats.
Title
Enter a title for the document.
Subject
Enter a subject for the document. A subject can be used to group documents with similar
contents.
Keywords
Enter the words that required to index the content of the document. Keywords must be
separated by commas. A keyword can contain white space characters, or semicolons.
Comments
Enter comments to help identify the document.
Tip
Title, Subject and Keywords are exported to PDF files as PDF Document
Properties. Entered values are exported and appear in the corresponding fields in
the PDF Document Properties Description.
Custom Properties
Allows custom information fields to be added to a document. In a new document, this page may
be blank. If the new document is based on a template, this page may contain custom properties.
Properties
Enter the Name, Type and Value for each custom property required. The custom
properties are exported as metadata to other file formats.
Add
Click to add a new row to the custom property list.
Security
Sets the password options for the current document.
Open file read-only
Select to allow this document to be opened in read-only mode only.
Record changes
Select to enable recording changes. This is the same as Edit > Track Changes >
Record on the Menu bar.
Tip
To protect the recording state with a password, select Protect and enter a
password. Other users of this document can apply changes, but cannot disable
change recording without knowing the password.
Protect/Unprotect
Protects the change recording state with a password. If change recording is protected for
the current document, the button is named Unprotect. Click Unprotect and type the
correct password to disable the protection.
Font
When Embed fonts in the document is selected, any fonts used in the document will be
embedded into the document when it is saved. This may be useful if you are creating a PDF and
want to control how it will look on other computer systems.
Only embed fonts that are used in documents – If fonts have been defined for the document (for
example, in the template), but have not been used, select this option to not embed them.
Font scripts to embed – You can choose which types of fonts are embedded: Latin, Asian,
Complex.
Font Embedding
Select this option to embed document fonts into the document file and allow portability
between different computer systems. The document with embedded fonts has a larger
size and the fonts are used on the target computer for better rendering of the document
layout.
Consider embedding fonts when a document use rare, or custom fonts not generally
available in other computers.
Note
Font licenses may restrict embedding fonts in documents. Font files contain flags
that indicate if and how they can be embedded within a document file. LibreOffice
parses these flags and determines if and how it may be embedded in a document
file. When opening a document containing embedded fonts, LibreOffice looks at
these flags to determine if and how a document can be viewed or edited.
Statistics
Displays statistics for the current file, for example number of pages, words, and characters.
BAF Categories
The default BAF categories for LibreOffice are listed below.
Intellectual Property
Intellectual property is a generic term for the nature of the contents of the document.
Select this category for general purpose document classification.
Tip
Only the Intellectual Properties category modifies the layout of a document with
a watermark, fields in the header and footer and an information bar on top of the
document area. Each item inserted in the document is controlled by the
classification configuration file.
National Security
Selects the category of a document for the national security policy type. The selected
category is saved together with the document as BAILS metadata in the file properties
and no modifications are carried in the document layout or the user interface.
Export Control
Selects the category of a document for the export control policy type. The selected
category is saved together with the document as BAILS metadata in the file properties
and no modifications are carried in the document layout or the user interface.
Note
Refer to the corporate data security policy and information security officers for
support in document classification.
Pasting contents
Pasting contents in documents with different levels of classification prevents a breach in the
security policy, contents with high classification level pasted to documents with lower
classification level are not allowed. LibreOffice displays a warning message wherever it detects
that the contents of the clipboard have higher security classification than the target document.
Removing data
To make sure that any user or personal data, versions, notes, hidden information, or recorded
changes are removed from files before sending them to other users, or create PDF files, is as
follows:
1) Go to Tools > Options > LibreOffice > Security (macOS LibreOffice > Preferences >
LibreOffice > Security) on the Menu bar to open the Security page of the Options
LibreOffice dialog.
2) Click Options to open the Security Options and Warnings dialog (Figure 337).
3) Select the required options to display warnings and/or set security options. See “Security
options and warnings” on page 469 for more information.
4) Click OK to close the Security Options and Warnings dialog.
5) Go to File > Properties on the Menu bar to open the Properties dialog (Figure 336 on
page 463) and click on General to open the General page.
Redaction
Documents can be redacted to remove, or hide, any sensitive information allowing selective
disclosure of information in a document while keeping other parts of the document secret. When
a redacted document is redacted, it is exported as a new PDF file with all the redacted portions
removed and replaced by redaction blocks of pixels preventing any attempt to restore or copy the
original contents. A redacted document is exported in PDF format for publication, or sharing.
Any documents redacted in LibreOffice Writer, Calc, or Impress are automatically transferred as a
copy to LibreOffice Draw where the redaction is carried out.
Redaction tools
The tools available on the Redaction toolbar (Figure 338) are as follows:
Rectangle Redaction
Used to mark the content for redaction by drawing transparent rectangles covering the
content. Use the handles to resize the redaction rectangle.
Freeform Redaction
Allows the user to mark the content for redaction by drawing free-form lines, or polygons
covering the content.
Redacted Export (Black)
Converts the semi-transparent redaction shape to opaque black and exports as pixels in
the PDF file.
Redacted Export (White)
Converts the semi-transparent redaction shapes to opaque white shapes and exports as
pixels in the PDF file.
Export Preview PDF
Makes a copy of the presentation as a PDF file to preview the redaction areas before
making a redacted PDF file of the presentation.
Redaction | 421
Documents, spreadsheets, or presentations
A copy of a document, spreadsheet, or presentation is automatically transferred to LibreOffice
Draw where the redaction is carried out.
1) Open the document to be redacted in LibreOffice Writer, Calc or Impress, then go to
Tools > Redact on the Menu bar and the following happens:
– The document is copied, prepared and transferred to LibreOffice Draw as an untitled
file.
– LibreOffice Draw opens with the untitled document displayed.
– The Redaction toolbar automatically opens. If the Redaction toolbar is not displayed,
go to View > Toolbars on the Menu bar in LibreOffice Draw and select Redaction.
2) Go to Tools > Redact on the Menu bar and click on Rectangle Redaction or Freeform
Redaction in the Redaction toolbar.
3) Draw the required shapes to redact the sensitive areas in the document. The redaction
shape is gray allowing the sensitive areas in the document to be visible before they are
redacted.
4) If necessary, click on Export Preview PDF to create a preview copy of the PDF file to
review the redaction areas before the redaction is finalized.
5) If necessary, delete the PDF copy after reviewing the redaction areas in the file.
6) Click on Redacted Export (White), or Redacted Export (Black) in the Redaction toolbar
to export the presentation file as a redacted PDF file.
7) Navigate to the folder in the file browser window that opens where the redact PDF file is
going to be saved and enter a name for the file.
8) Click on Save to create the redacted PDF file. The gray redaction shapes are converted
to white, or black shapes and the document is exported as a PDF
Drawings
Open a drawing file in Draw, then use Steps 2) thru 8) in “Documents, spreadsheets, or
presentations” on page 471 to create a redacted PDF copy of the drawing file.
Note
When a redacted document is exported as a new PDF file. Any redacted areas
are removed from the new document and replaced by redaction blocks of pixels.
This prevents any attempt to restore, or copying the original contents that have
been redacted.
Automatic redaction
Automatic redaction is used to define words and patterns that are automatically marked for
redaction. Automatic redaction is useful for documents that have multiple occurrences of names
and other personal information (for example credit cards, phone numbers, and so on). Manually
redacting this type information in a document would require significant effort, but automatic
redaction makes redaction of a document easier and more efficient.
Creating targets
Targets are rules and patterns used by automatic redaction to find words and information in a
document that are to be marked for automatic redaction.
1) Open a document and go to Tools > Auto-Redact on the Menu bar to open the
Automatic Redaction dialog (Figure 339).
2) Click on Add Target to open the Add Target dialog (Figure 340).
3) Enter a target name in the Name text box.
4) Select a target type from the available options in the Type drop-down list.
– Text — automatic redaction looks for all occurrences of the specified text and marks
them for redaction.
– Regular expression — define a regular expression for searching in a document. All
matches are marked for redaction.
– Predefined — select predefined regular expressions for automatic redaction, such as
credit card numbers, email addresses and so on.
5) Enter the content in the Content text box.
6) If necessary, select the options Match case and Whole words only to help define which
targets are auto-redacted.
Redaction | 423
7) Click OK to close the Add Target dialog and the target is added to the Redaction Targets
list in the Automatic Redaction dialog.
8) Repeat Steps 2 thru 7 above until all targets required have been added to the document.
9) Click OK to close the Automatic Redaction dialog. This opens the document as a drawing
in LibreOffice Draw with all targets automatically redacted using Rectangle Redaction.
10) Print the document, or export the document as a PDF file.
Exporting targets
1) Open a document where targets for automatic redaction have been added.
2) Go to Tools > Auto-Redact on the Menu bar to open the Automatic Redaction dialog.
3) Select the targets for export in the Redaction Targets list.
4) Click on Save Targets to open the Save Targets dialog and navigate to the location
where the JSON file is going to be saved.
5) Enter a file name for the JSON file in the File name text box.
6) Click on Save to save the JSON file and close the Save Targets dialog.
7) Click OK to close the Automatic Redaction dialog.
Importing targets
1) Open a document where targets for automatic redaction are going to be used.
2) Go to Tools > Auto-Redact on the Menu bar to open the Automatic Redaction dialog.
3) Click on Load Targets to open the Load Targets dialog and navigate to the location of the
JSON file.
4) Select the required file and click on Open to import the targets into the document and
close the Load Targets dialog.
5) Click OK to close the Automatic Redaction dialog. This opens the document as a drawing
in LibreOffice Draw with all targets automatically redacted using Rectangle Redaction.
6) Print the document, or export the document as a PDF file.
Note
The automatic redaction targets are saved in a document. The targets are
available after the document is saved and closed.
Adding passwords
1) Go to File > Save As on the Menu bar to open the Save as dialog (Figure 341).
2) Navigate to the folder where the file is going to be saved.
3) If necessary, enter a file name in the File name text box and select the file type from the
available options in the File type drop-down list.
4) Select the Save with password option, then click on Save to open the Set Password
dialog (Figure 342).
5) In File Encryption Password, enter a password to open the document and then enter
the same password as confirmation. Passwords are case sensitive.
6) Click on Options to open File Sharing Password.
7) Select Open file read-only to prevent any editing being carried out on the document.
8) To allow editing of the document, enter a password in Enter password to allow editing
and repeat the password as confirmation.
9) Click OK and the Set Password dialog closes and the file is saved with password
protection.
Notes
If the passwords match, the document is saved password protected. If either the
passwords do not match, an error message is displayed.
LibreOffice uses a very strong encryption mechanism that makes it almost
impossible to recover the contents of a document if the password is lost or
forgotten.
Changing passwords
When a document is password protected, the password can be changed while the document is
open.
1) Go to File > Properties > General on the Menu bar to open the Properties dialog.
2) Click on Change Password to open the Set Password dialog.
3) Enter a new password to open the file and to allow editing of the document.
4) Click OK to close the Set Password dialog.
5) Click OK again to close the Properties dialog.
Note
Keep this option selected to allow decryption of documents that have been
encrypted for other people.
3) Go to File > Save As on the Menu bar to open the Save as dialog.
4) Navigate to the required location for the file, then enter a file name and file type in the
Save as dialog.
5) Select Encrypt with GPG key option and click on Save to open the Select X.509
Certificate dialog.
6) Select the public key for the recipient. Multiple keys can be selected.
7) Click Encrypt to close the dialog and save the file encrypted with the selected public
keys.
Chapter 11,
Getting Started with Macros
Using the Macro Recorder … and Beyond
Introduction
A macro is a set of commands or keystrokes that are stored for later use. An example of a simple
macro is one that enters your address into an open document. You can use macros to automate
both simple and complex tasks. Macros are very useful when you have to repeat the same task
in the same way.
The simplest way to create a macro is to record a series of actions through LibreOffice’s user
interface. LibreOffice saves recorded macros using the open source LibreOffice Basic scripting
language, which is an implementation of the well-known BASIC programming language. Such
macros can be edited and enhanced after recording using the built-in LibreOffice Basic
Integrated Development Environment (IDE).
The most powerful macros in LibreOffice are created by writing code using one of the four
supported scripting languages (LibreOffice Basic, Python, JavaScript, and BeanShell). This
chapter provides an overview of LibreOffice’s macro facilities, mostly focused on its default macro
scripting language, LibreOffice Basic. Some introductory examples are included for the
BeanShell, JavaScript, and Python scripting languages. However, an in-depth discussion of how
to use these languages for scripting is beyond the scope of this chapter.
Adding a macro
The first step in learning macro programming is to find and use existing macros. This section
assumes that you have a macro that you want to use, which you may have found in a book or on
the internet. For this example, the macro in Listing 1 is used. You should create a library and
module to contain your macro; see “Macro organization” on page 495 for more information.
Listing 1: Simple macro that says hello
Sub HelloMacro
Print "Hello"
End Sub
Use the following steps to create a library that will contain your macro:
1) Open any LibreOffice application.
2) Go to Tools > Macros > Organize Macros > Basic to open the Basic Macros dialog
(Figure 343).
3) Click Organizer to open the Basic Macro Organizer dialog (Figure 344) and select the
Libraries tab.
4) Set the Location drop-down to My Macros & Dialogs, which is the default location.
5) Click New to open the New Library dialog (not shown here).
6) Enter a library name, for example TestLibrary, and click OK.
7) On the Basic Macro Organizer dialog, select the Modules tab (Figure 345).
8) In the Module list, expand My Macros and select your library (in the example,
TestLibrary). A module named Module1 already exists and can contain your macro. If you
wish, you can click New to create another module in the library.
9) Select Module1, or the new module that you created, and click Edit to open the
Integrated Development Environment (IDE) (Figure 346). The IDE is a text editor and
associated facilities that are built into LibreOffice and allow you to create, edit, run, and
debug macros.
Sub HelloMacro
Print "Hello"
End Sub
Sub Main
End Sub
Tip
If you prefer, you can remove the Sub Main … End Sub code from the Module and
leave only the HelloMacro subroutine.
12) (Optional) To check if the macro is written as expected by the programming language,
click the Compile icon on the Macro toolbar.
13) Double-click the HelloMacro subroutine in the Object Catalog window under
TestLibrary > Module 1 and click the Run icon on the Macro toolbar, or press the F5 key,
to run the HelloMacro subroutine in the module. A small dialog will open with the word
“Hello” displayed (see below).
Note
For some cases when you want to repeatedly enter information into a document,
it may be more convenient to create an AutoText. See Chapter 2, Working with
Text: Basics, in the Writer Guide for more information.
Make sure macro recording is enabled by going to Tools > Options > LibreOffice > Advanced
and selecting the option Enable macro recording under Optional Features. By default, this
feature is turned off in LibreOffice.
1) Go to Tools > Macros > Record Macro to start recording a macro. A small dialog with a
Stop Recording button is displayed indicating that LibreOffice is recording a macro.
2) Type the desired text you want to be entered when this macro is run. As an example, type
your name.
3) Click Stop Recording on the small dialog. This will cause Basic Macros dialog to open
(similar to Figure 343 on page 482, but with different action buttons).
4) Open the library container My Macros.
5) Find the library named Standard in My Macros. Note that every library container has a
library named Standard.
6) Select the Standard library and then choose an existing module in which to save the
macro. Alternatively you can click New Module to create a new module to contain the
newly recorded macro.
7) In the Macro Name text box at the top left section of the dialog, type a name for the
macro you have just recorded, for example EnterMyName.
8) Click Save to save the macro and close the Basic Macros dialog.
If you followed all of the above steps, a macro named EnterMyName will have been created
inside the selected module.
Note
Whenever you create a new module in LibreOffice, a subroutine named Main is
automatically added to the module.
Running a macro
1) Go to Tools > Macros > Run Macro to open the Macro Selector dialog (Figure 349).
2) For example, select your newly created macro EnterMyName and click Run.
3) Alternatively, go to Tools > Macros > Organize Macros > Basic to open the Basic
Macros dialog (Figure 343), select your macro and click Run.
Tip
As a shortcut, you can use the single quote character (') to start a comment.
LibreOffice Basic is not case-sensitive for keywords, so REM, Rem, and rem can all start a
comment. If you use symbolic constants defined by the Application Programming Interface (API),
it is safer to assume that the names are case-sensitive. Symbolic constants are an advanced
topic not covered by this user guide and are not required when using the macro recorder in
LibreOffice.
Note
Sometimes the word service is used. A service is supplied by a type of object
which are distinguished in order to point out how they are used.
Creating a macro
When creating a macro, it is important to ask two questions before recording:
1) Can the task be written as a simple set of commands?
2) Can the steps be arranged so that the last command leaves the cursor ready for the next
command or entering text or data into the document?
rem (3) Press Ctrl+Right Arrow to move the cursor to the start of “specifies”.
dispatcher.executeDispatch(document, ".uno:GoToNextWord", "", 0, Array())
rem (4) Press Backspace twice to remove the tab and the space.
dispatcher.executeDispatch(document, ".uno:SwBackspace", "", 0, Array())
rem (5) Press Tab to add the tab without the space after the constant name.
dim args4(0) as new com.sun.star.beans.PropertyValue
args4(0).Name = "Text"
args4(0).Value = CHR$(9)
rem (6) ... and then press Shift+S to add an upper case S.
dim args6(0) as new com.sun.star.beans.PropertyValue
args6(0).Name = "Text"
args6(0).Value = "S"
rem (7) Press Ctrl+Right Arrow twice to move the cursor to the number.
dispatcher.executeDispatch(document, ".uno:GoToNextWord", "", 0, Array())
rem -------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:GoToNextWord", "", 0, Array())
rem (9) Press Ctrl+C to copy the selected text to the clipboard.
dispatcher.executeDispatch(document, ".uno:Copy", "", 0, Array())
rem (10) Press End to move the cursor to the end of the line.
dispatcher.executeDispatch(document, ".uno:GoToEndOfLine", "", 0, Array())
rem (11) Press Backspace twice to remove the two trailing spaces.
dispatcher.executeDispatch(document, ".uno:SwBackspace", "", 0, Array())
rem -------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:SwBackspace", "", 0, Array())
rem (12) Press Home to move the cursor to the start of the line.
dispatcher.executeDispatch(document, ".uno:GoToStartOfLine", "", 0, Array())
rem (13) Press Ctrl+V to paste the selected number to the start of the line.
dispatcher.executeDispatch(document, ".uno:Paste", "", 0, Array())
rem (15) Press Tab to insert a tab between the number and the name.
dim args17(0) as new com.sun.star.beans.PropertyValue
args17(0).Name = "Text"
args17(0).Value = CHR$(9)
Figure 352: Result of using the macro in a line with a different structure
Dispatch framework
The purpose of the dispatch framework is to provide uniform access to components (documents)
for commands that usually correspond to menu items. Using File > Save, the shortcut keys
Ctrl+S, or clicking the Save icon on the Standard toolbar are all commands that are translated
into the same “dispatch command”.
The dispatch framework can also be used to send “commands” back to the user interface (UI).
For example, after saving a new document, the list of recent files is updated.
Other options
When the macro recorder is not able to solve a specific problem, the usual solution is to write
code using the LibreOffice objects. Unfortunately, there is a steep learning curve for these
LibreOffice objects. It is usually best to start with simple examples and then increase the scope of
macros as you learn more. Learning to read generated macros is a good place to start.
Macro organization
In LibreOffice, macros are grouped in modules, modules are grouped in libraries, and libraries
are grouped in library containers. A library is usually used as a major grouping for either an entire
category of macros, or for an entire application. Modules usually split functionality, such as user
interaction and calculations. Individual macros are subroutines and functions. Figure 354 shows
an example of the hierarchical structure of macro libraries in LibreOffice.
Caution
LibreOffice allows you to import libraries into a library container, but it will not
allow you to overwrite the library named Standard. Therefore, if you store your
macros in the Standard library, you cannot import them into another library
container.
Just as it makes good sense to give your libraries meaningful names, it is prudent to use
meaningful names for your modules. By default, LibreOffice uses names such as Module1,
Module2, and so on.
As you create your macros, you must decide where to store them. Storing a macro in a document
is useful if the document will be shared and you want the macro to be included with the
document. Macros stored in the application library container named My Macros, however, are
globally available to all documents.
Exporting macros
The LibreOffice Basic Macro Organizer dialog allows you to export macro libraries so that they
can be reused and shared with other people. To export a macro library:
1) Go to Tools > Macros > Organize Macros > Basic and the click the Organizer button.
2) Click the Libraries tab and choose which library you want to export.
3) Click Export and then select Export as BASIC Library (note that you cannot export the
Standard library).
4) Choose where you want to save the library and click Save.
When a library is exported, LibreOffice creates a folder containing all files related to the library.
Figure 355 shows an example of how a library named TestLibrary with a single module called
Module1 would be exported.
Importing macros
The LibreOffice Basic Macro Organizer dialog allows you to import macro libraries into your
document as well as creating, deleting, and renaming libraries, modules, and dialogs.
1) On the Libraries tab, select the library container to use and then click Import to import
macro libraries.
Note
You cannot export/import the library named Standard.
Tip
On Linux, LibreOffice-specific files are stored in the user’s home directory inside
the .config folder. Directories and files with names beginning with a dot may be
hidden and not shown in a normal file selection dialog. When using LibreOffice
dialogs, rather than the operating system’s specific dialogs, type the name of the
desired directory in the Name field.
Events
Whenever something happens in LibreOffice, it is called an event. For example, opening a
document, changing status of modified, or moving the mouse cursor are all events. LibreOffice
allows events to trigger the execution of a macro; the macro is then called an event handler. Full
coverage of event handlers is well beyond the scope of this chapter, but a little knowledge can
accomplish much.
Caution
Be careful when you configure an event handler. For example, assume that you
write an event handler that is called every time that a document is modified, but
you make a mistake so the event is not properly handled. One possible result is
that your event handler will force you to kill LibreOffice.
1) Go to Tools > Customize to open the Customize dialog and select the Events tab (Figure
358). The events in the Customize dialog are related to the entire application and specific
documents.
2) In the Save In drop-down, select LibreOffice, or a specific document from the menu to
save your event.
3) A common use is to assign the Open Document event to call a specific macro. The macro
then performs certain setup tasks for the document. Select the desired event and click
Macro to open the Macro Selector dialog (similar to Figure 349 on page 487 but with
different action buttons).
4) Select the desired macro and click OK to assign the macro to the event. The Events tab
will show that the event has been assigned to a macro.
Many objects in a document can be set to call macros when events occur. The most common
use is to add a control, such as a button, into a document. Even double-clicking on a graphic
opens a dialog with a Macros tab that allows you to assign a macro to an event.
Using extensions
An extension is a package that can be installed into LibreOffice to add new functionality.
Extensions can be written in almost any programming language and may be simple or
sophisticated. Extensions can be grouped into types, for example:
• Calc add-ins, which provide new functionality for Calc, including new functions that act
like normal built-in functions.
• New components and functionality, which normally include some level of User Interface
(UI) integration such as new menus or toolbars.
• Chart add-ins with new chart types.
• Linguistic components such as spelling checkers.
• Document templates and images.
Although individual extensions can be found in several places, there is currently an extension
repository at: https://extensions.libreoffice.org/ and some documentation at
https://libreplanet.org/wiki/Group:OpenOfficeExtensions/List.
For more about obtaining and installing extensions, see Chapter 13, Customizing LibreOffice.
Tip
To learn more about the ScriptForge library, visit LibreOffice’s online Help at
https://help.libreoffice.org/7.4/en-US/text/sbasic/shared/03/lib_ScriptForge.html?
DbPAR=BASIC. Each of the 26 supported services have been extensively
documented and examples are provided for both Basic and Python programming
languages.
The left portion of the Object Inspector consists of the Document Object Model (DOM) navigator,
which allows the user to navigate through all the objects in the document. When an object is
selected, information about the object are shown in the right portion of the Object Inspector
window:
• The names of all implemented interfaces.
• The names of all services supported by the object.
• The names and types of all properties available in the object.
Tip
If you want to learn more about the LibreOffice API as well as UNO objects, refer
to the official API documentation at https://api.libreoffice.org/
def HelloWorld():
doc = XSCRIPTCONTEXT.getDocument()
cell = doc.Sheets[0]['A1']
cell.setString('Hello World from Python')
return
Tip
The Alternative Python Script Organizer (APSO) extension makes it easier to edit
and organize Python scripts, in particular when embedded in a document. Using
APSO you can configure your preferred source code editor, start the integrated
Python shell and debug Python scripts. Visit https://gitlab.com/jmzambon/apso to
download APSO and learn more about how to use it.
BeanShell macros
BeanShell is a Java-like scripting language that was first released in 1999.
When you select Tools > Macros > Organize Macros > BeanShell, LibreOffice displays the
BeanShell Macros dialog (Figure 365).
Click the Edit button on the BeanShell Macros dialog to access the BeanShell Debug Window
(Figure 366).
controller = model.getCurrentController();
sheet = view.getActiveSheet();
textCursor = cellText.createTextCursor();
return 0;
JavaScript macros
JavaScript is a high-level scripting language that was first released in 1995.
When you select Tools > Macros > Organize Macros > JavaScript, LibreOffice displays the
JavaScript Macros dialog (Figure 367).
documentRef = XSCRIPTCONTEXT.getDocument();
spreadsheetInterface = UnoRuntime.queryInterface(XSpreadsheetDocument, documentRef);
allSheets = UnoRuntime.queryInterface(XIndexAccess,
spreadsheetInterface.getSheets());
theSheet = allSheets.getByIndex(0);
Cells = UnoRuntime.queryInterface(XCellRange,theSheet);
cellA1 = Cells.getCellByPosition(0,0);
theCell = UnoRuntime.queryInterface(XCell,cellA1);
theCell.setFormula("Hello World from JavaScript");
Included material
Many excellent macros are included with LibreOffice. Use Tools > Macros > Organize Macros >
Basic to open the LibreOffice Basic Macros dialog. Expand the Tools library in the LibreOffice
library container. Inspect the Debug module; some good examples include WritedbgInfo
(document) and printdbgInfo (sheet).
Chapter 12,
Configuring LibreOffice
Choosing options to suit the way of working
Introduction
This chapter describes some of the setup options found in Tools > Options (macOS LibreOffice
> Preferences) on the Menu bar. Additional options, and more details about the options in this
user guide, are covered in LibreOffice Help.
Tip
Many options are intended for power users and programmers. If understanding is
difficult on what an option does, it is usually best to leave the option on its default
setting unless instructions in this user guide recommend changing the setting.
LibreOffice options
This section covers some of the options and settings that apply to all the components of
LibreOffice. For information on options or settings that are not discussed in this section, see the
LibreOffice Help.
To open the Options LibreOffice dialog for LibreOffice (Figure 369), go to Tools > Options
(macOS LibreOffice > Preferences) on the Menu bar. The list in the left-hand box of the Options
LibreOffice dialog varies depending on which LibreOffice module is open. The figures in this
chapter show this list in the left-hand box as it appears when a Writer document is open. Click
the chevron > next to LibreOffice to select a category from the drop-down list and display the
relevant page on the right-hand side of the dialog.
User data
On the User Data page of the Options LibreOffice dialog (Figure 369), the details of a LibreOffice
user can be entered and stored. These user details are used for several things within LibreOffice;
for example created by or last edited by for document properties, author of comments or
changes, sender address in mailing lists, and so on.
It is necessary to make sure that the correct user information appears here. Fill in the necessary
information if these details are blank, or amend and/or delete any existing information not
required.
If user data is not going to be used for document’s properties, deselect the option Apply user
data in Properties dialog for the LibreOffice file that is open. Go to File > Properties on the Menu
bar to open the Properties dialog for a file.
In Cryptography on the User Data page, set the preferred public keys for OpenPGP encryption
and digital signature. These keys are pre-selected in the text boxes for OpenPGP signing key
and OpenPGP encryption key when a document is digitally signed or encrypted (for more
information, see Chapter 10, Working with File Formats, Security, and Exporting).
General
The options available on the Options LibreOffice dialog — General page (Figure 370) are
described as follows.
Help
Extended tips
When Extended tips is active, a brief description of the function of an icon, menu
command, or a field on a dialog appears when the cursor is held over the item.
Warn if local help is not installed
Deselect this option to disable a warning when selecting Help, if offline help is not
installed.
Show “Tip of the Day” dialog on start-up
Deselect to disable the Tip of the Day dialog.
Open/Save Dialogs
Use LibreOffice dialogs
Select this option to use the Open and Save dialogs supplied with LibreOffice. Deselect
to use the standard Open and Save dialogs of the computer operating system. This
guide uses the LibreOffice Open and Save dialogs in illustrations.
Document Status
Printing sets “document modified” status
If this option is selected, the next time the document is closed after printing, the print
date is recorded in the document properties as a change. There will be prompt to save
the document again, even if any other changes have not been made.
View
The options available in the View page of the Options LibreOffice dialog (Figure 371) affect how
the document window looks and behaves. Set these options to suit user personal preferences.
Some options vary with the computer operating system.
Icon style
Choose the icon style for use in toolbars and dialogs. The Automatic option uses an icon
set compatible with the operating system and choice of desktop. Several icon sets are
available; for example Breeze, Breeze Dark, Colibre, Elementary, Karasa Jaga, Sifr, Sifr
Dark, Sakapura, and so on. Other icon sets can be added using extensions (for more
information, see Chapter 13, Customizing LibreOffice). Use the Extensions Manager to
display installed extensions and locate extensions for installation into LibreOffice.
Icon size
Toolbar, Notebookbar, Sidebar
Choose the display size of toolbar icons: Automatic, Small, Large, Extra Large
(toolbars only). The Automatic icon size option uses the setting for the computer
operating system. The Toolbar, Notebookbar and Sidebar can have different settings.
Visibility
Menu icons, Shortcuts
Select the visibility mode (Automatic, Hide, Show) to hide or show icons as well as text
on the Menu bar and in shortcut items.
Mouse
Positioning
Specifies if and how the cursor is positioned in newly opened dialogs (Default button,
Dialog center, No automatic positioning).
Middle button
Defines the function of the middle mouse button (if available)
No function
Automatic scrolling — dragging while pressing the middle mouse button shifts the view.
Paste clipboard — pressing the middle mouse button inserts the contents of the
Selection clipboard at the cursor position.
Graphics Output
Use hardware acceleration
Directly accesses hardware features of the graphical display adapter to improve the
screen display.
Use anti-aliasing
Enables and disables anti-aliasing, which makes the display of most graphical objects
look smoother and with fewer artifacts.
Tip
Use Ctrl+Shift+R (macOS ⌘+Shift+R) to restore or refresh the view of the
current document after changing the anti-aliasing settings to see the effect.
Print
After installing a printer on a computer, the general printing options for LibreOffice can be
selected to suit the most common printing method that is going to be used in the Print page of the
Options LibreOffice dialog (Figure 372).
Settings for
Specifies whether the print settings apply to direct printing or to printing to a file.
Defaults
PDF as standard print job format
Linux and macOS only — select this option to change the internal print job format from
Postscript format to a PDF format. Using PDF format has a number of advantages over
Postscript. For more information, see the following link:
https://www.linuxfoundation.org/collaborate/workgroups/openprinting/
pdf_as_standard_print_job_format.
Convert colors to grayscale
Specifies that all colors in a document are printed only as greyscale.
Include transparent objects
If selected, the reduction in print quality for bitmaps also applies to the transparent
areas of objects.
Reduce bitmaps
Specifies that bitmaps are printed with reduced quality. The resolution can only be
reduced and not increased.
Resolution
Specifies the maximum print quality in DPI. The resolution can only be reduced and not
increased.
High print quality
High print quality corresponds to a resolution of 300dpi.
Normal print quality
Normal print quality corresponds to a resolution of 200dpi.
Reduce transparency
If selected, transparent objects are printed like normal, non-transparent objects,
depending on your selection in the following two option buttons.
Automatically
Specifies that the transparency is only printed if the transparent area covers less than a
quarter of the entire page.
No transparency
When selected, a transparency does not print.
Note
Transparencies cannot be sent directly to a printer. Transparencies must be
visible to be calculated as bitmaps and sent to the printer. Depending on bitmap
size and the print resolution, a large amount of data may result.
Warnings
Defines which warnings appear before printing begins.
Paper size
Select this option if a certain paper size is required for printing the current document. If
the paper size used in the document is not provided by the current printer, an error
message opens.
Paper orientation
Select this option if a certain paper orientation is required for printing the current
document. If the format used by the current document is not available from the printer,
an error message opens.
Transparency
Select this option if a warning is required if transparent objects are contained in the
document. When printing a document with transparencies, a dialog opens to enable
selection if the transparency is to be printed.
Reduce gradient
If selected, gradients are printed with reduced quality.
Gradient stripes
Specifies the maximum number of gradient stripes for printing.
Intermediate color
Specifies that gradients are only printed in a single intermediate color.
Paths
On Paths page in the Options LibreOffice dialog (Figure 373), the location of files associated
with, or used by, LibreOffice can be changed to suit the working situation. For example, there
may be a requirement to store documents by default somewhere other than in My Documents.
Tip
Use the entries on the Paths page of the Options LibreOffice dialog to compile a
list of files, such as those containing AutoText, that are required to create a back
up or copy to another computer.
Fonts
The Fonts page on the Options LibreOffice dialog (Figure 374) allows the definition of any
replacements for any fonts that might appear in documents. If a document is received from
another source it may contain fonts that that are not installed on the computer system being
used. LibreOffice can substitute any fonts it cannot locate using the fonts listed on the Fonts
page when required. However, this font replacement does not change the font specified in the
document.
Replacement table
Lists the original font and the font that replaces it. Select Always to replace both the
screen font and the printer font, even if the original font is installed on a computer system.
Select Screen only to replace the screen font only and never replace the font for printing.
See Table 14 below for more information
Apply replacement table
Enables the font replacement settings that have been defined.
Font
Enter, or select, the name of the font that for replacement.
Replace with
Enter or select the name of the replacement font.
Apply
Clicking on the icon applies the selected font replacement.
Delete
Clicking on the icon deletes the selected font replacement.
Font settings for HTML, Basic and SQL Sources
Select the font and font size for the display of HTML and Basic source code.
Fonts
Select the font for the display of HTML and Basic source code. Select Automatic to
detect a suitable font automatically.
Non-proportional fonts only
Mark this check box to display only non-proportional fonts in the Fonts list box.
Security
On the Security page of the Options LibreOffice dialog (Figure 375), the security options for
saving documents and for opening documents that contain macros can be selected.
Security Options and Warnings
Click on Options to open the Security and Warning Options dialog giving access to
options for restricting what information can be changed or seen in a document. For more
information on Security Options and Warnings, see the LibreOffice Help:
https://help.libreoffice.org/7.4/en-GB/text/shared/optionen/securityoptionsdialog.html.
Security Warnings
Warns if a restricted document contains any recorded changes, versions, hidden
information, or notes when saving, sending, signing, printing, or creating PDF files.
Security Options
Provides options for removing personal information, password protection, how
hyperlinks are opened, and to block any links from documents that are not trusted.
Passwords for Web Connections
Enter a master password to enable easy access to websites that require a user name and
password.
Persistently save web passwords for web connections
LibreOffice will securely store all passwords used to access files from web servers.
Protected by a master password
Retrieve passwords from a password list after entering the master password.
Macro Security
Click on Macro Security to open the Macro Security dialog where the security level for
executing macros and specified trusted sources can be adjusted.
Personalization
On the Personalization page of the Options LibreOffice dialog (Figure 376), the overall
appearance of LibreOffice can be changed using themes.
• Select Default look, do not use Themes and LibreOffice uses the default in all modules.
• Select Preinstalled Theme, then click on a theme thumbnail and click Apply. After a
brief pause the appearance of LibreOffice refreshes and reflects the selected theme.
Application colors
On the Application Colors page of the Options LibreOffice dialog (Figure 377), the overall
appearance of LibreOffice can be changed by setting the colors used for the LibreOffice user
interface. Current settings of a color scheme being used can be saved and reloaded reloaded at
a later time.
Changing colors can make using LibreOffice easier, for example when writing, editing, creating
page layouts and page margins, inserting page breaks or graphics, and so on. Also, users may
prefer different colors from those used as LibreOffice defaults.
Notes
Some user interface elements cannot be hidden.
To enhance cursor visibility, set the Application background to between 40% and
60% grey. If the Application background is set to Automatic, 40% grey is used.
Accessibility
On the Accessibility page of the Options LibreOffice dialog (Figure 378), select accessibility
options including, for example, whether to allow animated graphics or text, some options for high
contrast display, and a way to change the font for the LibreOffice user interface.
Miscellaneous options
Sets the accessibility options for LibreOffice.
Support assistive technology tools (program restart required)
Windows only — allows use of assistive tools, such as external screen readers, Braille
devices, or speech recognition input devices. The Java Runtime Environment (JRE)
must be installed on a computer before enabling assistive support.
Use text selection cursor in read-only text document
Displays cursor in read-only documents.
Allow animated images
Previews animated graphics, such as GIF images, in LibreOffice.
Allow animated text
Previews animated text, such as blinking and scrolling, in LibreOffice.
Options for High Contrast Appearance
High-contrast is an operating system setting that changes the system color scheme to
improve readability. Users decide how LibreOffice uses the high-contrast settings of the
operating system.
Cell borders and shadows are always shown in text color when high-contrast mode is
active. The cell background color is ignored then.
Advanced
On the Advanced page of the Options LibreOffice dialog (Figure 379), the support options are
specified for Java applications in LibreOffice, including which Java Runtime Environment (JRE)
to use. It also specifies whether to use experimental (unstable) features such as macro
recording.
Notes
Users of Windows have a suitable Java Runtime Environment (JRE) already
installed on their machines. Linux users may need to get a JRE from the
distribution software repository if it is not already installed. Users of macOS need
to install Oracle Java Development Kit (JDK), not just JRE. To get the required
JDK, select the macOS option at
https://www.oracle.com/java/technologies/downloads/.
Some options cannot be reset once edited. Either undo the changes manually, or
click Cancel and reopen the Options LibreOffice dialog.
Make sure to install a JRE that is compatible with the LibreOffice architecture
being used. That is 64-bit JRE for 64-bit LibreOffice and 32-bit JRE for 32-bit
LibreOffice.
Note
The Expert Configuration dialog lets a user access, edit, and save configuration
preferences that can make the user profile of LibreOffice unstable, inconsistent,
or even unusable. If there is no knowledge what an option does, it is best to leave
the option at its default setting.
Online update
On the Online Update page of the Options LibreOffice dialog (Figure 380), options are specified
for the automatic notification and downloading of online updates to LibreOffice.
Online Update Options
Check for updates automatically
Mark to check for online updates periodically, then select the time interval how often
LibreOffice checks for online updates. LibreOffice will check Every day, Every week, or
Every month, as soon as a working Internet connection is detected. Also, click on
Check Now to immediately check for an update.
Connecting to the Internet by a proxy server, set the proxy in Tools > Options >
Internet > Proxy (macOS LibreOffice > Preferences > Internet > Proxy).
Download Destination
Displays the selected folder to store the downloaded files.
Download updates automatically
Enable the automatic download of updates to the specified folder.
Change
Click to select the destination folder for downloaded files.
User Agent
Select this option to send information about the LibreOffice version, operating system and
basic hardware. This information is used to optimize the download.
OpenCL
OpenCL™ is an open, royalty-free standard for cross-platform, parallel programming of modern
processors found in personal computers, servers and hand-held/embedded devices. OpenCL
(Open Computing Language) greatly improves speed and responsiveness for a wide spectrum of
applications in numerous market categories from gaming and entertainment to scientific and
medical software. For more information on OpenCL, visit https://www.khronos.org/opencl/.
General
On the General page of the Options Load/Save dialog (Figure 381), the default settings for
saving documents and default file formats can be selected.
Load
Load user-specific settings with the document
A LibreOffice document contains settings that are read from a computer system. When
saving a document, these settings are saved with it. Select this option so that when a
document loads, it ignores the stored settings in favor of the settings on the computer.
If this option is not selected, the following user-specific settings still apply:
Settings in File > Print > Options.
Spacing options for paragraphs before text tables.
Information about automatic updating for links, field functions, and charts.
Information about working with Asian character formats.
The data source linked to the document and its view are always loaded with the
document, whether or not this option is selected.
Load printer settings with the document
If enabled, the printer settings are loaded with the document. This can cause a
document to be printed on a distant printer (perhaps in an office setting). To prevent
this happening, manually change the printer in the Print dialog. If disabled, the default
printer will be used to print the document. The current printer settings are stored with
the document whether or not this option is selected.
Save
Save AutoRecovery information every __ minutes
Select AutoRecovery and the time period for how often the information used by the
AutoRecovery process is saved. AutoRecovery saves information required to restore all
open documents if LibreOffice crashes. Setting this option makes recovering a
document after a system crash easier.
Edit document properties before saving
Specifies that the Properties dialog opens when a file is saved for the first time and
every time that Save As is selected.
Always create backup copy
Saves the previous version of a document as a backup copy whenever a document is
saved. Every time LibreOffice creates a backup copy, the previous backup copy is
replaced. A backup copy uses the extension BAK.
To change the location of the backup copy, go to Tools > Options > LibreOffice >
Paths (macOS LibreOffice > Preferences > LibreOffice > Paths) and then enter a
new path for the backup file.
VBA properties
On the VBA Properties page of the Options Load/Save dialog (Figure 382), the general
properties for loading and saving Microsoft Office documents with VBA (Visual Basic for
Applications) code are specified.
Microsoft Word
Select the settings for Microsoft Word documents.
Load Basic code
Loads and saves the Basic code from a Microsoft document as a special LibreOffice
Basic module with the document. When saving the document in OpenDocument
format, the Basic code is saved as well. When saving in another format, the Basic code
from the LibreOffice Basic IDE is not saved.
Executable code
If selected, the Visual Basic for Applications (VBA) code is loaded ready to be
executed. If not selected, the VBA code is commented out so it can be inspected, but
not run.
Note
After loading the VBA code, LibreOffice inserts the statement Option VBASupport
1 in every Basic module to enable a limited support for VBA statements, functions
and objects.
Microsoft Office
On the Microsoft Office page of the Options Load/Save dialog (Figure 383), the settings for
importing and exporting Microsoft Office and other documents are specified.
Embedded Objects
Embedded Objects specify how Microsoft Office objects, or other OLE objects, are
imported and exported. These settings are valid when no Microsoft, or other OLE, server
exists (for example, in UNIX), or when there is no LibreOffice OLE server ready for editing
the OLE objects.
If an OLE server is active for the embedded object, then the OLE server is used to handle
the object.
If no OLE server is active for MathType objects, then embedded MathType objects are
converted to LibreOffice Math objects. For this conversion, the embedded MathType
objects must not exceed the MathType 3.1 specifications.
Tip
The compatibility filter in the Character Highlighting Color dialog provides the
Microsoft Office highlighting colors. Use those colors and choose Highlighting if
both color fidelity and ease of editing is required for Microsoft Office users.
Lock files
Select Lock files to generate a Microsoft Office lock file in addition to the LibreOffice lock
file. Lock files signal to applications that a resource or file should not be used until the
lock is released. LibreOffice can read lock files generated by Microsoft Office.
HTML compatibility
On the HTML compatibility page of the Options Load/Save dialog (Figure 384), define the
settings for HTML pages.
Font sizes
Use Size 1 to Size 7 to define the respective font sizes for the HTML <font size=1> to
<font size=7> tags.
Import
Defines the settings for importing HTML documents.
Note
Some options cannot be reset once edited. Either undo the changes manually, or
click Cancel and reopen the Options dialog.
Language settings
Go to Tools > Options > Language Settings (macOS LibreOffice > Preferences > Language
Settings) on the Menu bar to open dialogs where the properties for languages, writing aids,
language tools can be defined.
Note
Searching in Japanese and Asian Layout pages are only visible if the Asian
language support option in the Languages page is activated. Complex Text
Layout page is only visible if the CTL support is activated.
Languages
On the Languages page of the Options Language Settings dialog (Figure 385), define the default
languages and locale settings for documents.
Language of
User interface
Select the language used for the user interface, for example menus, dialogs, and help
files. There must be at least one additional language pack installed, or a multi-language
version of LibreOffice installed.
The Default entry selects the language of the user interface used by the computer
operating system. If this language is not available in the LibreOffice installation, the
language of the LibreOffice installation is the default language.
Formats
Locale setting
Specifies the locale setting of the country setting. This influences settings for
numbering, currency and units of measure.
The Default entry selects the locale used by the operating system. A change in this field
is immediately applicable.
Default currency
Specifies the default currency used by the currency format and the currency fields. If
the locale setting is changed, the default currency changes automatically.
Note
The spell check for the selected language only functions when the corresponding
language module is installed. A language entry has a check mark in front of it if
spell checking is activated for the selected language.
Note
Some options cannot be reset once edited. Either undo the changes manually, or
click Cancel and reopen the Options dialog.
Writing Aids
On the Writing Aids page of the Options Language Settings dialog (Figure 386) the properties of
spelling, thesaurus and hyphenation can be specified.
Available Language Modules
Lists the installed language modules in LibreOffice. A language module can contain one,
two or three sub-modules: spelling, hyphenation and thesaurus. Each sub-module is
available in one or more languages. Selecting a module name activates all available
sub-modules simultaneously. Deselecting a module name, deactivates all available
sub-modules simultaneously. To activate or deactivate individual sub-modules, click on
Edit to open the Edit Modules dialog.
Note
The configuration allows two folders: one folder where a user has write
permissions, and one folder without write permissions. A user can only edit and
delete the user dictionaries that are located in the writeable path. Other
dictionaries can be read only.
Edit
To edit a language module, click on Edit to open the Edit Modules dialog. Select, or
deselect, each sub-module as required.
User-defined dictionaries
Lists the available user dictionaries. Select the user dictionaries required for spelling and
hyphenation.
New
Opens the New Dictionary dialog where the details of a new user-defined dictionary are
added and the language specified. Click on Help for more information on the options
available for the New Dictionary dialog.
Note
Some options cannot be reset once edited. Either undo the changes manually, or
click Cancel and reopen the Options dialog.
Asian layout
Defines the typographic default settings for Asian text after support for Asian languages has been
enabled. To enable these options, go to Tools > Options > Language Settings > Languages
(macOS LibreOffice > Preferences > Language Settings > Languages) on the Menu bar.
On the Asian Layout page of the Options Language Settings dialog (Figure 388), the properties
for Asian Layout can be specified.
Kerning
Defines the default settings for kerning between individual characters.
Western text only
Specifies that kerning is only applied to Western text.
Western text and Asian punctuation
Specifies that kerning is applied to both Western text and Asian punctuation.
Character spacing
Defines the default settings for character spacing in Asian texts, cells, and drawing
objects.
No compression
Specifies that no compression occurs.
Compress only punctuation
Specifies that only the punctuation is compressed.
Figure 389: Options Language Settings dialog — Complex Text Layout page
In multicolumn pages, sections, or frames that are formatted with text flow from right to left, the
first column is the right column and the last column is the left column.
Sequence Checking
In languages, for example Thai, rules specify that certain characters are not allowed next
to other characters. If Sequence Input Checking (SIC) is enabled, LibreOffice will not
allow a character next to character if this is forbidden by a rule.
Use sequence checking
Enables sequence input checking for languages.
Restricted
Prevents the use and the printing of illegal character combinations.
Type and replace
When selected, allows typing and replacement of characters.
Cursor control
Select the type of cursor movement and text selection for mixed text (right-to-left mixed
with left-to-right text direction).
Logical
Using the Right Arrow key moves the text cursor towards the end of the current text.
Using the Left Arrow key moves the text cursor towards the beginning of the current
text.
Visual
Using the Right Arrow key moves the text cursor in the right-hand direction. Using
the Left Arrow key moves the text cursor in the left-hand direction.
General Options
General Options setting is not saved in the document but in the LibreOffice
configuration.
Figure 390: Options Language Settings dialog — Language Tool Server page
Figure 391: Options Language Settings dialog — English Sentence Checking page
Internet options
In the Options Internet dialog (Figure 393) the following Internet settings are located on separate
dialog pages, depending on the computer operating system.
• Proxy page — enter the proxy settings for use with LibreOffice.
• Email page — enter the email program to be used when sending documents as email
attachments — Linux and macOS only. On a Windows operating system, the default
email program is used.
AutoCorrect functions
The AutoCorrect functions in LibreOffice automatically detect and replace common symbols,
spelling mistakes, and grammar mistakes. Occasionally, AutoCorrect changes something that
should have been kept. If unexplained changes appear in a document, the AutoCorrect settings
are often the cause. For more information on AutoCorrect, refer to the relevant user guides for
each module.
Chapter 13,
Customizing LibreOffice
Introduction
This chapter describes some common customization that can be carried out, as follows:
• Menus, toolbars, keyboard shortcuts, and the tabbed interface in LibreOffice can be
customized.
• New menus and toolbars, assign macros to events can be added.
• Different user interface variants can be selected and used.
Customizations can also be carried out by adding extensions that can be installed from the
LibreOffice website or from other providers. For more information, see “Adding extensions” on
page 568.
Note
Customized menus and toolbars can be saved in a template. The customized
menus and toolbars are created in a document and the document is then saved
as a template. For more information, see Chapter 4, Working with Styles,
Templates, and Hyperlinks.
Menu customization
Menus and commands on the Menu bar or context menus can be added, rearranged, removed,
or other changes made. To customize menus, go to Tools > Customize on the Menu bar and
select the Menus page (Figure 395), or the Context Menus page, from the context menu. The
Context Menus page is similar to the Menus page.
Adding commands
4) Go to Tools > Customize on the Menu bar to open the Customize dialog.
5) Click on Menus to open the Menus page (Figure 395). In the Scope drop-down list,
LibreOffice Writer appears as the selected module.
6) In Target, select the menu for customization from the drop-down list. This drop-down list
also includes the submenus available in the selected menu.
7) In Assigned Commands, check that the required command is not already listed for the
selected menu. This may require scrolling through the list of commands.
8) If necessary, enter a command name in the Search text box to locate the command in the
Available Commands list.
9) If necessary, select a command category from the Category drop-down list. By default,
All commands is displayed as the category.
10) Select the required command in the Available Commands list. This may require scrolling
through the list of commands.
11) Click on the right arrow to add the required command to the Assigned Commands list.
Note
When assigning a character as a keyboard shortcut, make sure the character
used is NOT already assigned to another menu command.
Note
When customizing or creating toolbars in LibreOffice, make sure that there is a
LibreOffice module open, for example Writer, and at least one document open. If
there is no LibreOffice module, or document, open, then toolbar customization or
creation cannot be carried out.
Adding tools
1) Open the Customize dialog and click on Toolbars to open the Toolbars page.
2) In the Scope drop-down list, select the LibreOffice module displayed, or one of the listed
documents.
Note
If a listed document is selected in the Scope drop-down list, then any
customization to a toolbar is only available for that selected document.
3) In the Target drop-down list, select the toolbar for customization. The tools on the
selected toolbar are displayed in the Assigned Commands list.
4) Select a tool in the Available Commands list. By default, all available tools are displayed
in the Available Commands list.
5) Alternatively, and to reduce the number of tools listed in Available Commands, use one
of the following methods:
– Enter a search term in the Search box
– Select a category in the Category drop-down list.
6) Select the required tool and click on the right arrow to add the selected tool at the bottom
of the Assigned Commands list for the toolbar.
7) Use the up and down arrows in Assigned Commands to position the tool in its required
position on the selected toolbar.
8) If necessary, insert a separator bar above the newly inserted tool as follows:
a) Select the newly inserted tool in the Available Commands list.
b) Click on Insert and select Insert Separator from the drop-down list.
9) If necessary, to remove a separator bar, right-click on the separator bar and select
Remove from the drop-down list.
10) If necessary, rename the newly inserted tool as follows:
a) Select the newly inserted tool in the Available Commands list.
b) Click on Modify and select Rename from the drop-down list.
c) Enter a new name for the tool in the Rename Menu dialog that opens.
d) Click OK to rename the tool and close the dialog.
11) Click OK to save the changes to the toolbar and close the Customize dialog.
Removing tools
1) Open the Customize dialog and click on Toolbars to open the Toolbars page.
2) In the Scope drop-down list, the LibreOffice module that is open appears as the selected
module.
3) In the Target drop-down list, select the toolbar that has the tool that is going to be
removed.
Keyboard shortcuts
Note
Some of the keyboard shortcuts available may be assigned as functions or
commands for use by the computer system. These keyboard shortcuts assigned
to the computer system should not used as a custom keyboard shortcut within
LibreOffice. It is possible to change keyboard shortcuts already assigned to the
computer system, but is definitely NOT recommended. Changing the keyboard
shortcuts used by the computer system may create problems in the operation of a
computer system.
Assigning macros
Macros can be assigned to events in LibreOffice. The assigned macro automatically runs each
time the associated event occurs. For example, an event could be when a document is opened, a
key is pressed, or the cursor is moved. To associate a macro with an event, the Events page in
the Customize dialog is used. For more information on assigning events to macros, see
Chapter 11, Getting Started with Macros.
Adding extensions
An extension is a program that can be installed into LibreOffice to increase the functionality of
LibreOffice. For example, templates, dictionaries, clip-art galleries, macros, and dialog libraries
can be added to LibreOffice as extensions.
Several extensions are installed when LibreOffice is installed onto a computer. More extensions
can be downloaded free of charge from the official extension repository located at
https://extensions.libreoffice.org/.
Extensions can also be downloaded from other sources. Some of these extensions are free of
charge; other extensions are available for a fee. Check the descriptions to see what licenses and
fees apply to extensions from other sources.
Note
To install an extension that is not listed in the official extension repository,
download the extension from its source, then continue from Step 7 above to
install the extension.
Updating extensions
It is necessary to check for updates to extensions on a regular basis. Checking for extension
updates is as follows:
1) Go to Tools > Extension Manager on the Menu bar to open the Extension Manager
dialog.
2) Click on Check for Updates to open the Extension Update dialog.
3) Select any extension that is listed in Available extension updates and click on Install to
update the extension.
4) Close the Extension Update and Extension Manager dialogs.
5) If necessary, restart LibreOffice for the extension update to become effective.
Removing extensions
To remove and completely uninstall an extension no longer required is as follows:
1) Go to Tools > Extension Manager on the Menu bar to open the Extension Manager
dialog.
2) Select the extension for removal in the Extension Manager dialog.
3) Click on Remove and confirm the removal of the extension.
4) Close the Extension Manager dialog.
Disabling extensions
To disable an extension without removing the extension from LibreOffice is as follows:
1) Go to Tools > Extension Manager on the Menu bar to open the Extension Manager
dialog.
2) Select the extension being disabled in the Extension Manager dialog.
3) Click on Disable. The Disable button changes to Enable.
4) When necessary, click on Enable and the extension can be used again in LibreOffice.
5) Close the Extension Manager dialog.
Note
If Remove and Disable are grayed out in the Extension Manager dialog, the
extension cannot be removed or disabled. For example, when an extension is
part of the LibreOffice installation, it must not be removed or disabled.
Note
The color notations are linked and changing the value in one notification set
automatically changes the values in the other notification sets.
Adding fonts
LibreOffice supports PostScript (.pfb), TrueType (.ttf), and OpenType (.otf) font file formats.
Other font formats are available and may be supported by the computer operating system.
However, these font formats may be limited in character selection and quality.
Administration privileges are required to install additional fonts. After installation onto a computer
operating system, any additional fonts are available for use by all modules in LibreOffice.
In addition to proprietary fonts from sources like Adobe, hundreds of free license fonts are
available. Most free license fonts are available at no cost and can be used, shared, and edited.
Many of these fonts are clones, or close variations of classic fonts, but several fonts are original
fonts.
Many Linux distributions include some free license fonts in their package repositories. There are
several places where free license fonts are available, for example, The League of Movable Type
(https://www.theleagueofmoveabletype.com), Open Font Library (https://fontlibrary.org).
Appendix A,
Keyboard Shortcuts
Introduction
LibreOffice can be used without requiring a pointing device, such as a mouse or trackball, by
using the keyboard shortcuts that are available in Draw. Tasks as varied and complex as docking
and un-docking toolbars and windows, or changing the size or position of objects can all be
accomplished with using keyboard shortcuts. Although LibreOffice has an extensive set of
keyboard shortcuts, each LibreOffice module has keyboard shortcuts that are specific to that
module.
This appendix lists some of the more common keyboard shortcuts that apply to multiple
components of LibreOffice. For shortcuts specific to Writer, Calc, Impress, Draw, Math, or Base,
refer to the relevant user guide for each module, or search the LibreOffice Help.
To assist a user with identifying keyboard shortcuts, shortcuts are indicated by text next to menu
items and in tooltips for some tools on toolbars. In Writer, for example, some commonly used
keyboard shortcuts, for example, are as follows:
• File > Open on the Menu bar includes text indicating that Ctrl+O (macOS ⌘+O) is a
keyboard shortcut.
• Align Left tool in the Formatting toolbar has a tooltip indicating that Ctrl+L
(macOS ⌘+L) is a keyboard shortcut.
A list of the available keyboard shortcuts in LibreOffice can be found on the Keyboard page of the
Customize dialog. Go to Tools > Customize on the Menu bar and click on Keyboard to open the
Keyboard page. Examples of keyboard shortcuts for Linux/Windows see Figure 407 and for
macOS see Figure 408.
Note
Some keyboard shortcuts listed may not be available if the computer operating
system uses the same shortcuts as LibreOffice for other tasks. To resolve any
conflicts, assign different keys to these shortcuts by reconfiguring either
LibreOffice (see Chapter 13, Customizing LibreOffice), or the computer operating
system (see operating system documentation or help).
Note
Actual keys available on a macOS keyboard depend on the type of keyboard
being used. For example, a macOS laptop keyboard does not have a Delete
key, but a macOS keyboard with a numeric keypad does have a Delete key.
Keyboard shortcuts
Note
In computers using macOS, some keyboard shortcuts are not available and these
unavailable keyboard shortcuts are indicated in the following tables with a blank
cell.
Note
If a tool on a toolbar has an editable text field, for example Load URL or Line
Width, the Tab or Shift+Tab keys are then used to move the selection right or
left onto the next tool on the toolbar.
Navigation
Navigate through a document using keyboard shortcuts as shown in Table 21.
Table 21: Keyboard shortcuts for navigation
Windows
macOS Effect
Linux
Left Arrow Left Arrow Moves the cursor one character to the left.
Shift+Left Shift+Left Moves the cursor one character to the left
Arrow Arrow and selects the character.
Ctrl+Left Arrow ⌥+Left Arrow Moves the cursor to the beginning of the
previous word.
Right Arrow Right Arrow Moves the cursor one character to the right.
Controlling dialogs
When opening any dialog, one element or option is highlighted indicating that the element or
option has focus on it. For example, a button, option field, entry in a list box, or checkbox. How
the element or option is highlighted depends on the computer operating system and how the
computer is setup.
Table 22: Keyboard shortcuts for controlling dialogs
Shortcut Keys Result
Activates selected button. When no button is selected,
Enter
Enter is equivalent to clicking OK.
Closes dialog without saving any changes made while the
dialog was open. Esc is also equivalent to clicking Cancel.
Esc
When a drop-down list is open and selected, Esc closes the
list.
Spacebar Checks or clears an empty checkbox.
Moves focus up or down a list. Increases or decreases value
Up or Down Arrow of a variable. Moves focus vertically within a section of
dialog.
Left or Right Arrow Moves focus horizontally within a section of a dialog.
Tab Advances focus to the next section or element of a dialog.
Shift+Tab Returns focus to the previous section or element in a dialog.
Alt+Down Arrow
Shows items in a drop-down list.
(macOS ⌥+Down Arrow)
General
The general keyboard shortcuts for using the Sidebar in LibreOffice are shown in Table 25.
Table 25: General keyboard shortcuts for Sidebar
Windows
macOS Effect
Linux
Tab Tab Moves the focus in the Sidebar.
Shift+Tab Shift+Tab Moves the focus in the reverse direction in the
Sidebar.
Shift+F10 Shift+F10 Opens a context menu for the selected element in the
Sidebar.
Fn+Left
Home Moves focus to first entry.
Arrow
Fn+Right
End Moves focus to last entry.
Arrow
Up or Down Up or Down Moves the selection up or down and opens the
Arrow Arrow panels in the selected deck.
Right Arrow Right Arrow Opens any sub-elements in the selected element.
Left Arrow Left Arrow Closes any sub-elements in the selected element.
Ctrl+Enter ⌘+Enter Opens the Properties dialog for the selected element.
Gallery
The keyboard shortcuts for the Gallery on the Sidebar in LibreOffice are shown in Table 26.
Table 26: Keyboard shortcuts for the Gallery
Windows
macOS Effect
Linux
Opens the Enter Title dialog. Only themes added to
Ctrl+R LibreOffice can be renamed. Themes installed with
LibreOffice cannot be renamed.
Deletes themes that have been added to LibreOffice.
Ctrl+D ⌘+D
Themes installed with LibreOffice cannot be deleted.
Insert Inserts a new theme into the Gallery and opens the
Insert of New Theme dialog.
Ctrl+Shift+ ⌘+Shift+ Inserts the selected object as a linked object into the
Insert Insert current document.
Ctrl+I Ctrl+I Inserts a copy of the selected object into the current
document.
Controlling macros
Keyboard shortcuts for controlling macros in LibreOffice are shown in Table 28. For more
information on macros, see Chapter 11, Getting Started with Macros.
Table 28: Keyboard shortcuts for controlling macros
Windows
macOS Effect
Linux
Runs a macro field. The multiplication sign is only
Ctrl+* ⌘+*
available on a numeric keypad.
Shift+Ctrl+
⌘+Ctrl+Q Stops a running macro.
Q
Note
Unicode hexadecimal numbers in the range U+0000 to U+0020 are not converted
into characters using the keyboard shortcut Ctrl+Alt+X (mac OS ⌘+⌥+X).
Further reading
For help with keyboard shortcuts, or using LibreOffice with a keyboard only, search LibreOffice
Help using the keywords “shortcut keys” or “accessibility”.
Tip
https://www.iso.org/standard/66363.html,
https://www.iso.org/standard/66375.html, and
https://www.iso.org/standard/66376.htmll.
Unlike other file formats, ODF (ISO/IEC 26300:2015) is an open standard. It is publicly available,
royalty-free, and without legal or other restrictions; therefore ODF files are not tied to a specific
office suite and anybody can build a program that interprets these files. For this reason ODF is
quickly becoming the preferred file format for government agencies, schools and other
companies who prefer not to be too dependent on any one software supplier.
LibreOffice 7.5 saves documents in ODF 1.3 Extended by default. LibreOffice can also open and
save in earlier versions of the ODF standard, as well as many other file formats, as summarized
below.
For a full list of file formats that LibreOffice can read and write, see this Help page:
https://help.libreoffice.org/latest/en-US/text/shared/guide/convertfilters.html