WG75 WriterGuide
WG75 WriterGuide
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.
Contributors
To this edition
Jean Hollis Weber Kees Kriek Tsvetelina Georgieva
Antonio Fernández Olivier Hallot
To previous editions
Jean Hollis Weber Toni Blackwelder Kees Kriek
Rafael Lima Randolph Gamo Jenna Sargent
Dante Legaspi Felipe Viggiano Pulkit Krishna
Colleen Hayes John A Smith Peter Schofield
Bruce Byfield Gillian Polack Cathy Crumbley
Hazel Russman Leo Moons David Blymire
Jeremy Cartwright John M. Długosz Barbara Duprey
Jamie Eby Ron Faile Jr. Gary Schnabl
Klaus-Jürgen Weghorn Rafael Atias Shravani Bellapukonda
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]. Emails sent to the
forum are moderated.
Note
Everything you send to a 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 book for?
LibreOffice is a feature-rich, free, and open source office suite. It includes several powerful
applications for word processing, spreadsheets, presentations, graphics, databases, and formula
editing. Writer is the word-processing application. It is compatible with a wide range of document
formats including Microsoft Word (.doc, .docx), and you can export your work in several formats
including PDF.
Anyone who wants to get up to speed quickly with Writer will find this book valuable. You may be
new to word processing software, or you may be familiar with another office suite.
Tip
Many settings are intended for power users and programmers. If you do not
understand what an option does, we recommend leaving it on the default setting
unless instructions in this book recommend changing the setting.
You can customize menus, toolbars, and keyboard shortcuts in LibreOffice, add new menus and
toolbars, and assign macros to events. See Chapter 20, Customizing Writer, for details.
Help system
LibreOffice comes with an extensive online Help system. This is your 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; the offline Help is installed with the program on macOS.
To display the Help system, press F1 or select Help > LibreOffice Help on the Menu bar. If you
do not have the offline help installed on your computer and you are connected to the Internet,
your default browser will open the online Help pages on the LibreOffice website.
The Help menu includes links to other LibreOffice information and support resources. Notice that
options marked with a ‡ sign are only accessible if your computer is connected to the Internet.
• What's This? For quick tips when a toolbar is visible, place the mouse pointer over any of
the icons to see a small box (“tooltip”) with a brief explanation of the icon’s function. For a
more detailed explanation, select Help > What's This? and hold the pointer over the
icon. In addition, you can choose whether to activate Extended Tips using Tools >
Options > LibreOffice > General. (macOS: LibreOffice > Preferences > LibreOffice >
General) on the Menu bar.
Preface | 11
• User Guides ‡ Opens your default browser at the Documentation page of the LibreOffice
website https://documentation.libreoffice.org/en/. There you will find user guides (to
download as free PDFs or buy as printed copies) and other information.
• Show Tip of the Day Opens a small window with a random tip on how to use LibreOffice.
• Search Commands Opens a window where you can type a few letters or the name of a
Menu bar command, to quickly find 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 your default browser at the Ask LibreOffice forum of questions
and answers from the LibreOffice community https://ask.libreoffice.org/en/questions/.
• Send Feedback ‡ Opens your default browser at the Feedback page of the LibreOffice
website https://www.libreoffice.org/get-help/feedback/. From there you can report bugs,
suggest new features and communicate with others in the LibreOffice community.
• Restart in Safe Mode Opens a dialog where you can restart LibreOffice and reset the
software to its default settings.
• Get Involved ‡ Opens your default browser at the Get Involved page of the LibreOffice
website, https://www.libreoffice.org/community/get-involved/. There you can choose a
topic of interest to help improve the program.
• Donate to LibreOffice ‡ Opens your default browser at the Donation page of the
LibreOffice website https://donate.libreoffice.org/.
• 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
your version of the software.
• About LibreOffice Opens a dialog and displays information about the version of
LibreOffice and the operating system you are using. This information will often be
requested if you ask the community for help or assistance with the software. (On macOS,
this option is found under LibreOffice on the Menu bar.)
Icons
The LibreOffice community has created icons for several icon sets: Breeze, Colibre, Elementary,
Karasa Jaga, Sifr, and Sukapura; some are also available in a dark version. As a user, you can
can select your preferred set. The icons in this guide have been taken from a variety of
LibreOffice installations that use different sets of icons. The icons for some of the many tools
available in LibreOffice may differ from the ones used in this guide.
To change the icon set used, go to Tools > Options > LibreOffice > View. In the Icon Style
section, choose from the drop-down list.
Note
Some Linux distributions include LibreOffice as part of the installation and may not
include all the icon sets mentioned above. You should be able to download other
icon sets from the software repository for your Linux distribution.
The Galaxy, Oxygen, and Tango icon sets are no longer included as part of the
standard installation package for Windows, macOS, or Linux. You can download and
install them as extensions from https://extensions.libreoffice.org/en/extensions/.
Preface | 13
Note
Some of the previously included gallery sets are now available only as extensions;
see https://extensions.libreoffice.org/?Tags%5B%5D=49 or search for specific ones.
For example, the People Gallery is available from
https://extensions.libreoffice.org/en/extensions/show/people-gallery
Preface | 15
Writer Guide 7.5
Chapter 1,
Introducing Writer
What is Writer?
Writer is the word processor component of LibreOffice, a freely available, fully-featured office
productivity suite. In addition to the usual features of a word processor (text entry, editing, and
formatting; spelling checker, thesaurus, hyphenation, and autocorrect; find and replace; and
others), Writer provides these important features:
• Change tracking during revisions (Chapter 4)
• Page layout methods, including styles, frames, columns, and tables (Chapters 5 and 6)
• Export to PDF and ePub (Chapter 7)
• Document digital signatures (Chapter 7)
• Templates and styles (Chapters 8, 9, and 10)
• Built-in drawing tools (Chapter 11)
• Lists (Chapter 12)
• Tables (Chapter 13)
• Mail merge (Chapter 14)
• Automated tables of contents and indexes (Chapter 15)
• Master documents, to group several documents into a single document (Chapter 16)
• Fields and forms (Chapters 17 and 18)
• Database integration, including a bibliography database (Chapters 14, 15, and 18)
• Embedding or linking of spreadsheets, equations, and other objects (Chapter 19)
• And many more
Note
By default, LibreOffice Writer’s commands are grouped in menus and toolbars, as
described in this section. In addition, Writer provides other user interface variations,
displaying contextual groups of commands and contents. For more information, see
the Help and Chapter 20, Customizing Writer.
Title bar
The Title bar is located at the top of the Writer window. It shows the file name of the current
document. When the document is not yet named, the document name will appear as 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 just below the Title bar in Windows and Linux and at the top of the
screen in macOS. When you select one of the menus, a submenu drops down to show further
options, including:
• Commands that directly cause an action, such as Close or Save in the File menu.
• Commands that open dialogs. These are indicated by three dots following a command,
such as Find and Replace... in the Edit menu.
Sidebar
The Sidebar is normally open by default on the right side of the Writer window, as shown in
Figure 1. If necessary, select View > Sidebar on the Menu bar to display it. The Sidebar also has
a Hide/Show icon, as shown in Figure 2. When the Sidebar is closed, this icon is on the far right
of the window; click it to open the Sidebar.
The Writer Sidebar contains seven decks by default: Properties, Styles (also shown as Styles
and Formatting in some installations), Gallery, Navigator, Page, Style Inspector, and Manage
Changes. Each deck can be opened by clicking its corresponding icon on the Tab bar to the right
of the sidebar.
Each deck consists of a title bar and one or more content panels. A panel is like a combination of
toolbar and dialog. Toolbars and Sidebar panels share many functions. For example, the icons
for making text bold or italic exist in both the Formatting toolbar in the main Writer window and
the Character panel of the Properties deck.
Some panels contain a More Options button, which opens a dialog with additional editing
controls. When the dialog is open, the document is locked for other editing.
To adjust the width of the Sidebar, place the mouse pointer on its left edge. When a double-
headed arrow appears, click and drag to right or left. You cannot make the Sidebar smaller than a
certain width, which varies depending on which deck is open.
To undock the Sidebar and make it floating, and to dock a floating Sidebar, use the drop-down list
in the Sidebar Settings located above the Tab bar (see Figure 3). In the same list, you can use
the Customization menu to choose which tabs you want to include in the Sidebar.
Note
Changing the options on the Page deck modifies the page style in use, affecting not
only the current page but all pages using the same page style in this document.
Style Inspector deck: Displays all the attributes of paragraph styles, character styles, and
manual (direct) formatting for selected text. For more information, see Chapter 7, Working with
Styles.
Manage Changes deck: Lists tracked changes that have not yet been accepted or rejected. For
more information, see Chapter 3, Working with Text: Advanced.
Most-used toolbars
In a default LibreOffice installation (Figure 1), the top toolbar, just under the Menu bar, is called
the Standard toolbar.
The second toolbar at the top is the Formatting toolbar. It is context-sensitive; that is, it shows the
tools relevant to the current position of the cursor or the selected object. For example, when the
cursor is in text, the Formatting toolbar provides tools for formatting text. When the cursor is on a
graphic (image), the tools are for formatting images.
Other toolbars are discussed in the relevant chapters of this book.
To free more space for the document, you can choose a single-toolbar alternative containing the
most-used commands. To activate it, select View > User Interface > Single Toolbar.
Tip
If you cannot see the dots at the top of the tool palette, you need to unlock the
toolbar before you can float the palette. See “Locking and unlocking toolbars” below.
Moving toolbars
Docked toolbars are indicated by dotted handles on the left end (Figure 5). They can be
undocked and moved to a new docked position or left as a floating toolbar.
To undock a toolbar:
1) Move the mouse pointer over the toolbar handle, which is the small vertical bar to the left
of a docked toolbar, as shown in Figure 5.
2) Click and hold down the left mouse button and drag the toolbar to a new location.
3) Release the mouse button.
To move a floating toolbar, click and hold down its title bar and drag it to a new floating location or
dock the toolbar at the top or bottom of the main window.
To dock a floating toolbar, hold down the Ctrl key and double-click in the title bar of the toolbar.
Tip
If the toolbar handle is not displayed, its position is locked. To unlock the toolbar,
right-click it and then deselect the option Lock Toolbar Position.
Floating toolbars
Writer includes several toolbars, whose default settings correspond to the current position of the
cursor or selection (when toolbars are made active). For example, when the cursor is in a table,
the Table toolbar appears, and when the cursor is in a numbered or bulleted list, the Bullets and
Numbering toolbar appears. You can reposition or dock these toolbars as described in “Moving
toolbars” above.
To position a toolbar, do any of the following:
• Right-click somewhere in the floating toolbar and click Dock Toolbar in the context
menu. You can reposition the toolbar to a different docked position. See “Moving
toolbars” on page 26.
• Click Dock All Toolbars to dock all floating toolbars.
• Click Lock Toolbar Position to lock a docked toolbar into its position. Locking maintains
the toolbar’s position even when other toolbars on the same bar change location.
• Click Close Toolbar to close the selected toolbar.
Rulers
The horizontal ruler across the top of the workspace is visible by default but the vertical ruler on
the left is hidden by default. To enable the vertical ruler, choose View > Rulers > Vertical Ruler
on the Menu bar, or choose Tools > Options > LibreOffice Writer > View (macOS: LibreOffice
> Preferences > LibreOffice Writer > View). To quickly show or hide both rulers, use the key
combination Ctrl+Shift+R.
Status bar
The Writer Status bar is located at the bottom of the workspace. It provides information about the
document and convenient ways to quickly change some document features. It can be hidden by
deselecting it in the View menu.
Text Language
Shows the language and localization used for spelling, hyphenation, and the thesaurus. It
is based on the position of the cursor or the selected text.
Click to open a menu where you can choose another language/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 Reset to default
language. Choosing More... opens the Character dialog. See Chapter 3, Working with
Text: Basics, for more information.
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. You cannot
switch modes when Edit > Track Changes > Record is active.
Selection mode
Click to display a list of the selection modes (Standard, Extending, Adding, and Block),
then click on one to activate it. The icon changes to indicate the mode, and a tooltip
shows which mode is active. See Chapter 3, Working with text: Basics, for more
information.
Digital signature
If the document has been digitally signed, an icon is displayed here; otherwise, it is blank.
Click here to sign the document or to view the existing certificate. See Chapter 7, Printing,
Exporting, Emailing, Signing, for more information.
Section or object information
When the cursor is in a section, heading, or list item, or when an object (such as a picture
or table) is selected, information about that item appears in this field. Clicking in this area
opens a relevant dialog.
Table 2: Section or object information in Status bar
Object Information shown Dialog opened
Image Size and position Image
List item Level and list style Bullets and Numbering1
Heading Outline numbering level Bullets and Numbering1
Table Name or number and cell reference of cursor Table Format
Section Name of section Edit Sections
Other (Blank) Fields
View layout
Click the corresponding icon to change between single-page, multiple-page, and book
layout views (Figure 9). You can edit the document in any view. Zoom settings interact
with the selected view layout and the window width to determine how many pages are
visible in the document window.
1 If a list style was used with a list item or heading, no dialog appears.
Dialogs
A dialog is a special type of window. Its purpose is to inform you of something, or request input
from you, or both. It provides controls for you to specify how to carry out an action.
In most cases, you can interact only with the dialog (not the document itself) as long as the dialog
remains open. When you close the dialog (usually, clicking OK or a similar button saves your
changes and closes the dialog; clicking Cancel closes the dialog without saving any changes),
then you can again work with the document.
Some dialogs can be left open as you work, so you can switch back and forth between the dialog
and your document. An example of this type is the Find & Replace dialog.
Document views
Writer has three ways to view and edit a document: Normal, Web, and Full Screen. To change
the view, go to the View menu and select the required view.
Normal view
Normal view is the default view in Writer. It shows how the document will look when you
print it or create a PDF. In this view, you can use the Zoom slider and the View Layout
icons on the Status bar to change the magnification. You can also hide or show the
headers and footers and the gap between pages, by selecting View > Show Whitespace
on the Menu bar. This works only when single-page view is active on the Status bar.
Hiding whitespace also works in Full Screen view.
Tip
You can also view a document using File > Print Preview, or press Ctrl+Shift+O,
but this view does not allow editing. See Chapter 7, Printing, Exporting, Emailing,
Signing.
From a template
A template is a set of predefined styles and settings that is used to create a new document.
Templates enable the easy creation of multiple documents with the same default settings. For
example, all the chapters of the Writer Guide are based on the same template. As a result, all the
chapters look alike; they have the same headers and footers, use the same fonts, and so on.
A new LibreOffice installation may contain only a few templates, but you can create your own or
download more from https://extensions.libreoffice.org/ and other websites. See Chapter 10,
Working with Templates.
To open the Template dialog, where you can choose the template you want to use for creating
your document, do one of the following:
• Press the Ctrl+Shift+N keys.
• Choose File > Templates > Manage Templates on the Menu bar.
• Choose File > New > Templates on the Menu bar.
• Click the arrow next to the New icon on the Standard toolbar and select Templates in the
drop-down list.
The example shown in Figure 11 highlights a template in the Documents folder. Double-click the
desired template to create a new document based on that template. You can also right-click one
of the templates and then click Open. For more about the Templates dialog, see Chapter 10,
Working with Templates.
Note
Renamed or relocated documents can still be listed in the Start Center. Selecting
one gives an error message that the file does not exist. To remove the thumbnail
from the Start Center, hover the mouse pointer over the thumbnail until an X appears
in the upper right corner, and then click on the X.
Saving a document
You can save a document using any of the following commands:
• Save – use if you are keeping the document, its current filename and location.
• Save As – use to create a new document, or change the filename and/or file format, or
save the file in a different location on your computer.
• Save Remote – use if your document is already stored in a remote server or will be
stored in a remote server.
• Save a Copy – use to save a copy of your current document and keep the current
document open for more editing.
• Save All – use to save all the files open in your current session.
Save commands
Save a new file or a previously-saved file
Do one of the following:
• Press Ctrl+S.
• Choose File > Save on the Menu bar.
• Click the Save icon on the Standard toolbar.
If the file has not been saved previously, a Save As dialog appears after selecting one of the
above options. Enter the file name, verify the file type and location, and click Save.
If a previously-saved file is being saved with the same file name, file type, and location, nothing
else needs to be done.
Save a copy
Use this command if you want to keep the document open for more editing and also save
a separate copy of the current version.
Choose File > Save a Copy. When the Save As dialog appears, enter or verify the
name, type, and location, then click Save. The copy is not opened and the original file
remains open and active.
Save all
Use this command to save all files open in the current session.
Choose File > Save All. All open files will be saved without changes to name, type, or location.
Save As command
Use this command if you want to save the current version as a new document by changing the
file name or file type, or by saving the file in a different location on your computer.
Choose File > Save As, or use Ctrl+Shift+S to open a Save As dialog where you can change the
file name, type, or location, and click Save.
If you want to preserve the original file, first save a copy as described above.
Note
LibreOffice uses the term “export” for some file operations involving a change of file
type, such as PDF and ePub. See Chapter 7, Printing, Exporting, E-mailing, for more
information.
Tip
To have Writer save documents by default in a Microsoft Word file format, go to
Tools > Options > Load/Save > General (macOS: LibreOffice > Preferences >
Load/Save > General). In the section named Default File Format and ODF Settings,
next to Document type, select Text document, then under Always save as, select
your preferred file format.
Password protection
LibreOffice provides two levels of password protection: read-protect (file cannot be viewed
without a password) and write-protect (file can be viewed in read-only mode but cannot be
changed without a password). Thus you can make the content available for reading by one group
of people and for reading and editing by a different group. This behavior is compatible with
Microsoft Word file protection.
To protect a document with passwords:
1) Use File > Save As when saving the document. (You can also use File > Save the first
time you save a new document.)
2) On the Save As dialog, select the Save with password option in the lower left corner
(Figure 12), and then click Save.
Caution
LibreOffice uses a very strong encryption mechanism that makes it almost
impossible to recover the contents of a document if you lose the password.
Using Go to Page
You can jump to a specific page in the document in these ways:
• Use the Go to Page field on the top right of the Navigator (see below).
• Use the Go to Page dialog (Figure 14), which shows the current page number and the
number of pages in the document. Type the number of the destination page in the text
box and click OK.
Note
In a master document, the Navigator has different functions. See Chapter 16, Master
Documents.
The Navigator provides several convenient ways to move around a document and find items in it:
• To jump to a specific page in the document, type its sequence number in the box at the
top of the Navigator and press Enter. The sequence number may be different from the
page number if you have restarted numbering at any point.
• When a category is opened to show the list of items in it, double-click an item to jump
directly to that item’s location in the document. For example, you can jump directly to a
selected heading, graphic, or comment by using this method.
• To see the contents in only one category, highlight that category and click the Content
Navigation View icon. Click the icon again to display all the categories. You can also
change the number of heading levels shown when viewing Headings.
• Use the Previous and Next icons to jump to other objects of the type selected in the
Navigate By drop-down list.
• In the top left of the Navigator is a Navigate By drop-down list. You can pick a type of
object (such as a bookmark, table, or index entry) and then use the Previous (^) and Next
(v) buttons to jump from one to the next (Figures 15 and 16).
Note
A hidden section (or other hidden object) in a document appears gray in the
Navigator, and displays the word “hidden” as a tooltip. For more about hidden
sections, see Chapter 6, Formatting Pages: Advanced.
Tip
Objects are much easier to find if you give them identifying names when creating
them. By default, LibreOffice gives objects names such as Image1, Image2, Table1,
Table2, and so on. These names are assigned in the order in which the objects are
added to the document, which may not correspond to the location of the object in the
document.
You can rename objects after inserting them. For example, to rename an image,
right-click its name in the Navigator, choose Image in the context menu, then choose
Image > Rename. The view jumps to the image (to show which one it is) and a small
dialog pops up. Type a new name for the image and click OK to save.
You can also right-click the image and select Properties. In the Image dialog, go to
the Options page, edit the name, and click OK.
Setting reminders
Reminders let you mark places in your document that you want to return to later on, for example
to add or correct information or simply mark where you finished editing.
To set a reminder at the cursor’s current location, click the Set Reminder icon in the Navigator.
You can set up to 5 reminders in a document; setting a sixth causes the first to be deleted.
Reloading a document
Reloading is useful in two situations.
• To discard all the changes made in an editing session after the last document save.
• To show any formatting changes that do not show until the document has been closed
and reopened; saving and then reloading has the same result.
To reload a document, go to File > Reload on the Menu bar. If you have made changes to a file
since the last save, a confirmation dialog will warn you that reloading will discard your last
changes. Choose whether to save or discard the changes.
Closing a document
To close a document, go to File > Close on the Menu bar or click the X on the right or left end of
the Menu bar (in Windows and Linux) or the Title bar (in macOS). When you close the last
document in Windows or Linux, the LibreOffice Start Center opens. In macOS, only the Menu bar
remains at the top of the screen.
If the document has not been saved since the last change, a message box is displayed. Choose
whether to save or discard your changes.
Chapter 2,
Working with Text: Basics
Introduction
This chapter covers the basics of working with text in Writer. It assumes that you are familiar with
the use of a mouse and keyboard and that you have read about Writer’s menus and toolbars and
other topics covered in Chapter 1, Introducing Writer.
We recommend that you also display formatting aids, such as end-of-paragraph marks, tabs,
breaks, and other items in Tools > Options > LibreOffice Writer > Formatting Aids (macOS:
LibreOffice > Preferences > LibreOffice Writer > Formatting Aids). You can hide or display
these markers by going to View > Formatting Marks. See Chapter 20, Setting up Writer, for
more information.
This chapter covers the following topics:
• Selecting, cutting, copying, pasting, and moving text.
• Finding and replacing text.
• Inserting special characters.
• Checking spelling and grammar, using the thesaurus, and choosing hyphenation options.
• Using the AutoCorrect, Word Completion, AutoText, and case-changing features.
See also Chapter 3, Working with Text: Advanced, and Chapter 4, Formatting Text.
Selecting text
Selecting text in Writer is similar to selecting text in other applications. You can swipe the mouse
pointer over text or use multiple clicks to select a word (double-click), sentence (triple-click), or
paragraph (quadruple-click).
You can also click in the text, press F8 to enter Extending selection mode, and then use the
arrow keys on your keyboard to select a contiguous block of text. Press F8 again after you have
finished selecting the block of text.
In addition, you can select non-contiguous items and vertical blocks of text.
One way to change the selection mode is to use the icon on the Status bar (see Figure 19).
When you right-click the icon, a context menu displays the options: Standard selection,
Extending selection (F8), Adding selection (Shift+F8), and Block selection (Ctrl+Shift+F8).
Click on an option to activate it.
Tip
If you click Find All, Writer selects all instances of the search text in the document.
Similarly, if you click Replace All, Writer replaces all matches, without stopping for
you to accept each instance.
Note
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.
Tips
To view details of a character, single-click it; details are shown on the right, along
with its numerical code.
To insert a character and leave the dialog open, double-click the character. To insert
a character and close the dialog, click it and then click the Insert button.
Different fonts include different special characters. If you do not find a special character you
want, try changing the Font selection.
Another way to insert en and em dashes is through the Insert > Special Characters menu.
Select the U+2013 or U+2014 character (found in the General punctuation subset), respectively.
A third method uses keyboard shortcuts. These shortcuts vary depending on your operating
system, as described below.
Tip
You can also record macros to insert en and em dashes and assign those macros to
unused key combinations, for example Ctrl+Shift+N and Ctrl+Shift+M. For
more information about key combinations, see Chapter 20, Customizing Writer.
macOS
For an en dash, hold down the Option (Alt) key and type a hyphen. For an em dash, the
combination is Shift+Option+Hyphen.
Windows
On most non-Asian installations of Windows, hold down the left Alt key and type on the
numeric keypad: 0150 for an en dash or 0151 for an em dash. The dash appears when
you release the Alt key.
Tip
On a keyboard with no numeric keypad, use a Fn (Function) key combination to
type the numbers. (The Fn key is usually next to the right of the left-hand Ctrl key
on the keyboard.) For example, on a US keyboard layout, the combination for an en
dash should be Alt+Fn+mjim and for an em dash it should be Alt+Fn+mjij.
Linux
Hold down the Compose key and type two hyphens and a period for an en dash, or three
hyphens for an em dash. The dash appears when you release the Compose key.
Tip
The key that operates as a Compose key varies with the Linux distribution. It is
usually one of the Alt or Win keys, but may be another key, and should be user-
selectable.
Spelling
To enable automatic checking of spelling, go to Tools on the Menu bar and select Automatic
Spell Checking, or click the Automatic Spell Checking icon (which may not be displayed by
default) on the Standard Toolbar, or go to Tools > Options > Language Settings > Writing Aids
(macOS: LibreOffice > Preferences > Language Settings > Writing Aids) and select Check
spelling as you type in the Options list.
Automatic Spell Checking checks each word as it is typed and displays a wavy red line under
any unrecognized words. Right-click an unrecognized word to open a context menu (Figure 28).
You can click one of the suggested words to replace the underlined word with the one selected. If
the list does not contain the word you want, click Spelling to open a dialog. When the word is
corrected, the line disappears. If the word is correct but not in the dictionary, you can chose Add
to dictionary to add it.
Grammar
By default, Check grammar as you type is enabled in Tools > Options > Language Settings >
Writing Aids > Options. Automatic Spell Checking must be enabled for this to work. You can
also check grammar at any time using the Spelling tool, and you can disable grammar checking
as you type.
When grammar checking as you type is enabled, any errors detected are shown underlined by a
wavy blue line. Right-clicking on this line opens a context menu (Figure 30).
Figure 31: Spelling dialog showing the URL for expanded explanation
Tip
You can select a different color for the wavy underline for grammar mistakes in Tools
> Options > LibreOffice > Application Colors. See Chapter 20, Customizing
Writer.
Grammar checking
Possible mistakes
Checks for errors such as with it's, he don't, this things and so on.
Capitalization
Checks for the capitalization of sentences.
Word duplication
Checks for all word duplication, rather than just the default words 'and', 'or', 'for' and 'the'.
Parentheses
Checks for correct pairing of parentheses and quotation marks.
Punctuation
Word spacing
This option is selected by default. It checks for single spaces between words, indicating
instances of double or triple spaces. To find and correct longer groups of spaces, you
need to run the checker more than once.
Quotation marks
This checks that double quotation marks are typographically correct, that is, beginning [“]
and ending [”] quotation marks curve in the correct directions.
Sentence spacing
Checks for a single space between sentences, indicating when one or two extra spaces
are found.
Apostrophe
Replaces an apostrophe with the correct (curved) typographical character.
More spaces
Checks word and sentence spacing for more than two extra spaces.
Em dash; En dash
These options force a non-spaced em dash to replace a spaced en dash, or force a
spaced en dash to replace a non-spaced em dash, respectively. This feature provides for
different punctuation conventions.
Multiplication sign
This option is selected by default. It replaces an 'x' used as a multiplication symbol with
the correct typographical symbol.
Others
Convert to metric; Convert to non-metric
Converts quantities in a given type of unit to quantities in the other type of unit.
Thousands separation of large numbers
Depending on the locale setting for the document, converts a number with five or more
significant digits to either use a comma as a thousands separator or the ISO format,
which uses a narrow space as a separator.
Note
If the current language does not have a thesaurus installed, this feature is disabled.
Automatic hyphenation
This option uses styles and over-rides the Tools > Options choices described on the next page.
To turn automatic hyphenation of words on or off:
1) Click the Styles tab on the Sidebar to open the Styles deck. On the Paragraph Styles list,
right-click Default Paragraph Style and select Modify.
2) On the Paragraph Style dialog (Figure 35), go to the Text Flow tab.
3) Under Hyphenation, select or deselect Automatically. When automatic hyphenation is
on, you can also set the criteria for when it should occur.
4) Click OK to save.
Note
Turning on hyphenation for the Default Paragraph Style affects all other paragraph
styles that are based on the 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 that are not based on the Default Paragraph
Style are not affected. For more information, see Chapters 8 and 9 in this book.
Hyphenation options
When automatic hyphenation is enabled, the following options can be set:
Don't hyphenate words in CAPS
Don't insert hyphens in words written entirely in capital letters.
Don't hyphenate the last word
Don't insert hyphens in the last word of a paragraph.
Manual hyphenation
To manually hyphenate words, 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 and press
Ctrl+hyphen (minus sign) or use Insert > Formatting Mark > Insert soft Hyphen. The
word will be hyphenated at this position when it is at the end of the line, even if automatic
hyphenation for this paragraph is switched off.
Tip
LibreOffice has an extensive list of emojis and other special characters accessible
with AutoCorrect. For example, type :smiling: and AutoCorrect will replace it with ☺.
Or, (c) will be changed to ©. You also can add your own special characters.
Using AutoText
Use AutoText to store text, tables, fields, graphics, 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.
AutoText is especially powerful when assigned to fields. See Chapter 17, Fields.
Creating AutoText
To store some text as AutoText:
1) Type the text into your document.
2) Select the text.
3) Go to Tools > AutoText on the Menu bar (or press Ctrl+F3).
4) In the AutoText dialog (Figure 39), type a name for the AutoText in the Name box. Writer
will suggest a one-letter shortcut, which you can change.
Inserting AutoText
To insert AutoText, type the shortcut and press F3.
Chapter 3,
Working with Text: Advanced
Introduction
This chapter covers the more advanced tools for working with text in Writer:
• The built-in language tools
• Advanced find-and-replace techniques, including wildcards
• Track changes and insert comments
• Footnotes and endnotes
• Linking to other parts of a document
• Outline folding (hiding and showing contents)
• Inserting material from other documents
• Line numbering
This chapter assumes that you are familiar with the basic text techniques described in Chapter 2,
Working with Text: Basics. We recommend that you also display formatting aids, such as end-of-
paragraph marks, tabs, breaks, and other items in Tools > Options > LibreOffice Writer >
Formatting Aids. For information on formatting text, see Chapter 4.
Figure 42: Options available through Tools > Language on the Menu bar
Caution
A change in the default language from the Options dialog is a general change of
settings of LibreOffice and will therefore apply to all the documents created in the
future. If you want to change the language for the current document only, be sure to
select the For the current document only option (Figure 43).
Note
The spelling checker works only for those languages in the list that have a
checkmark symbol next to them. If you do not see this symbol next to your preferred
language, you can install the dictionary using Tools > Language > More
Dictionaries Online.
Similarity search
This option finds terms that are similar to the Find: text. For example, a similarity search can find
words that differ by two characters.
Select Similarity search and click the Similarities button to open a dialog where you can modify
the text search by length and number of characters different from the search term (Figure 47).
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.
Recording changes
To begin recording (tracking) changes, click Record Track Changes on the Track Changes
toolbar or select Edit > Track Changes > Record on the Menu bar. To show or hide the display
of changes, click Show Track Changes on the Track Changes toolbar or select Edit > Track
Changes > Show on the Menu bar.
To enter a comment on a tracked change, place the cursor in the area of the change and then
click Edit > Track Changes > Comment or click the Insert Track Change Comment button (not
the Insert Comment button) on the Track Changes toolbar.
To stop recording changes, click Edit > Track Changes > Record again.
Outline tracking
Outline tracking uses the Navigator to track changes in the sequence of entire portions of a
document: a heading and any material between it and the next heading of the same level. With
Track Changes enabled, using the Move Chapter Up and Move Chapter Down buttons on the
Navigator causes the moved material to be marked and tracked in the same way as material
moved using drag-and-drop or cut-and-paste.
Outline tracking is enabled by default. To disable it, right-click on any heading in the Navigator
and choose Off from the context menu.
Comparing documents
Sometimes reviewers may forget to track the changes they make. You can find the changes if
you compare the original document and the one that is edited. To compare them:
1) Open the edited document. Select Edit > Track Changes > Compare Document or click
the Compare Non-Track Changed Document icon on the Track Changes toolbar.
2) A file browser dialog opens. Select the original document and click Open.
Writer finds and marks the changes and displays the Manage Changes dialog. From this point,
you can go through and accept or reject changes as described earlier.
To set the level of detail used by this feature, go to Tools > Options > LibreOffice Writer >
Comparison. See Chapter 20, Customizing Writer.
Using cross-references
To ensure that the text of cross-references update if you reword a heading, caption, or other
linked item, use automatic cross-references. For details, see Chapter 17, Fields.
Using bookmarks
Bookmarks are listed in the Navigator and can be accessed directly from there with a single
mouse click. In HTML documents, bookmarks are converted to anchors that you can jump to by
hyperlink. You can also cross-reference to a bookmark. For more information, see Chapter 17.
Editing hyperlinks
To edit a hyperlink, click anywhere in the link text and then open the Hyperlink dialog by right-
clicking and choosing Edit Hyperlink in the context menu, or clicking the Hyperlink icon on the
Standard Toolbar, or choosing Edit > Hyperlink on the Menu bar. Make your changes and click
Apply. If you need to edit several hyperlinks, you can leave the Hyperlink dialog open until you
have edited all of them. Be sure to click Apply after each one. When you are finished, click
Close.
To change the color of hyperlinks, go to Tools > Options > LibreOffice > Application Colors,
scroll to Unvisited links and/or Visited links in the General section, select those options, pick
the new colors, and click OK. This will change the color for all hyperlinks in all components of
LibreOffice, which may not be what you want.
Tip
The names Promote Chapter and Demote Chapter might be better described as
Move Up or Move Down (within the document, without changing the heading level) to
distinguish them more clearly from Promote Level and Demote Level, which
change the heading level—from Level 1 to Level 2, for example.
Outline folding
Using outline folding, you can hide and show all content under headings, including text, images,
tables, frames, shapes, and text boxes. In large documents, this feature can help you quickly
scroll to the right position for editing and reading.
Note
To enable this feature, go to Tools > Options > LibreOffice Writer > View (macOS:
LibreOffice > Preferences > LibreOffice Writer > View) and select Show outline-
folding buttons. Optionally select Include sub levels.
Note
Hidden (folded) contents will not be printed or exported to PDF. To print or export the
full document, be sure to toggle off outline folding.
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 also add a separator between line
numbers. Figure 58 shows an example with numbering on every line.
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. In addition, a text separator (any
text you choose) can be set on a different numbering scheme (one every 12 lines, for example).
Chapter 4,
Formatting Text
Introduction
This chapter covers the basics of formatting text in Writer, the word-processing component of
LibreOffice:
• Formatting paragraphs and characters
• Using autoformatting
• Creating unordered, ordered, and outline lists
It assumes that you are familiar with the text techniques described in Chapter 2, Working with
Text: Basics and Chapter 3, Working with Text: Advanced.
We recommend that you also follow the suggestions in Chapter 20, Customizing Writer, about
displaying formatting aids, such as end-of-paragraph marks, and selecting other setup options.
Page formatting is covered in Chapters 5 and 6.
Note
Manual formatting overrides styles, and you cannot get rid of the manual formatting
by applying a style to it.
To remove manual formatting, select the text and choose Format > Clear Direct Formatting on
the Menu bar, or right-click and choose Clear Direct Formatting on the context menu, or click
the Clear Direct Formatting icon on the Formatting toolbar, or press Ctrl+M on the keyboard.
Formatting toolbar
On the Formatting toolbar, the icons and formats include:
• Set Paragraph Style (drop-down list)
• Align Left, Align Center, Align Right, Justified
• Align Top, Center Vertically, Align Bottom
• Toggle Unordered List (with a palette of bullet types)
• Toggle Ordered List (with a palette of numbering types)
• Select Outline Format (with a palette of outline types)
• Increase Paragraph Spacing, Decrease Paragraph Spacing
• Increase Indent, Decrease Indent, Hanging Indent
• Paragraph (to open the Paragraph dialog)
• Set Line Spacing (choose from 1, 1.15, 1.5, 2, or custom spacing)
Not all toolbar icons are visible in a standard installation, but you can customize the toolbar to
include those you use regularly; see Chapter 1, Introducing Writer.
Alignment options
You can use the icons labelled 1–4 in Figure 62 to choose the alignment of a paragraph: Left,
Right, Centered, or Justified. Figure 63 shows examples of the alignment options applied to text.
Figure 64: Examples of choices for the last line of a justified paragraph
These options are controlled in the Alignment tab of the Paragraph dialog (Figure 65), reached
by choosing Format > Paragraph on the Menu bar, or by right-clicking in the paragraph and
selecting Paragraph in the context menu, or by clicking the More Options button on the
Paragraph panel in the Properties deck of the Sidebar.
Note
All options except Fixed or At Least use the font’s default. These two options allow
you to set your own spacing, which is especially useful at small font sizes to increase
readability.
Tip
Paragraph spacing is often used in computer documentation, such as this book.
Paragraph indentation (see next topic) is more commonly used in other documents.
For good design, use paragraph spacing or paragraph indentation, never both.
Paragraph indentation
You can use the icons labelled 11, 12, and 32 in Figure 62 to increase the amount of space to
leave between the left and right page margins and the paragraph.
The distances are determined by settings 16 (Before Text Indent; that is, from the left margin), 17
(After Text Indent; that is, from the right margin), and 18 (First Line Indent, which indents the first
line from the left margin, or from the specified indentation from the margin).
Button 13, Hanging Indent, leaves the first line at the left margin (or the specified indentation from
the margin) and indents all the other lines of the paragraph by the amount specified by button 18
or in the Paragraph dialog.
Note
In right-to-left languages, the behavior of the Before Text and After Text indents is the
opposite: “before” is on the right margin; “after” is on the left margin.
Note
If the paragraph has been indented from the right or left margin, the background
color is not applied to the area of the indent. To extend the color to the margin, use a
frame, table, or other method; see Chapter 6, Formatting Pages: Advanced.
Borders
Borders are useful for setting a paragraph off from the surrounding text, to include digressions
from the main topic. For example, the Tips, Notes, and Cautions in this book use a border below
the text.
Drop caps
Drop capitals are enlarged letters that mark the start of a new chapter or section. To improve
consistency, they are best set up in a paragraph style that you apply to the relevant paragraphs.
See Chapter 9, Working with Styles, for details.
Area
Area (also called “fill” and “background” in some parts of LibreOffice) includes five types of fill
(background): color, gradient, image, pattern, and hatching. Select a fill type to display the
choices available for that type. These choices are covered in more detail in Chapter 5,
Formatting Pages: Basics. You can also create your own fills.
Transparency
Transparency affects the paragraph’s background. It is useful for creating watermarks and
making colors or images more pale (for more contrast with the text). The available choices are
shown in Chapter 5, Formatting Pages: Basics, and are covered in detail in the Draw Guide.
Text Flow
The Text Flow tab (Figure 71) has several sections. Hyphenation is covered in Chapter 2,
Working with Text: Basics, and breaks are covered in Chapter 5, Formatting Pages: Basics.
In the Options section, you can specify how paragraphs are treated at the bottom of a page. Do
not split paragraph and Keep with next paragraph should be self-explanatory. The other options
allow you to avoid a single line at the bottom of a page (called an orphan) or a single line at the
top of a page (a widow).
Figure 72: Selecting outline level, paragraph numbering, and line numbering
Tip
Many indents, for example at the beginning of a paragraph, can be set in the
paragraph style, so you don’t need to use the Tab key to activate them.
Using the default tab spacing can cause formatting problems if you share documents with other
people. If you use the default tab spacing and then send the document to someone else who has
chosen a different default tab spacing, tabbed material will change to use the other person’s
settings. Instead of using the defaults, define your own tab settings, as described in this section.
To define indents and tab settings for one or more selected paragraphs, right-click a paragraph
and choose Paragraph to open the Paragraph dialog; then select either the Tabs tab (Figure 73)
or the Indents & Spacing tab of the dialog. Alternatively, you can double-click the horizontal ruler
to open the Indents & Spacing tab of the Paragraph dialog. A better strategy is to define tabs for
the paragraph style. Refer to Chapters 8 and 9 for more about paragraph styles.
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 is usually 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 measurement unit and the spacing of default tab stop intervals, go to Tools > Options
> LibreOffice Writer > General.
Note
Just as direct paragraph formatting overrides the current paragraph style, applying
direct character formatting to characters overrides the current character style
formatting.
Position
The Position tab (Figure 83) collects the options that affect the position of text on the page. This
tab is divided into three sections: Position, Rotation/Scaling, and Spacing.
The Position section controls the appearance of superscripts and subscripts.
The Rotation/Scaling section controls the rotation of the characters. The Scale width box controls
the percentage of the font width by which to compress or stretch the rotated text.
The Spacing section controls the spacing between individual characters. The Pair Kerning option
(selected by default) automatically adjusts the character spacing for specific letter combinations.
Pair Kerning is only available for certain font types and, for printed documents, works only if your
printer supports it.
Hyperlink
The Hyperlink tab of the Character dialog is an alternative to using the Hyperlink dialog (Insert >
Hyperlink). It includes fewer choices and is specifically for text (not button) links. Hyperlinks can
be to other parts of the same document, to other documents, or to web pages.
Highlighting
The Highlighting tab controls the background color for selected characters. It is similar to the
Highlighting drop-down palette.
Borders
The Borders tab is the same as the Borders tab on the Paragraph dialog; see page 104.
Tip
It is a matter of personal preference whether you type your information first, then
apply numbering/bullets or apply these as you type.
Note
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 with Clear Direct Formatting in the context menu, or
by using Ctrl+M. Rather, they are turned off or removed from selected text by
toggling the relevant icons on the Formatting toolbar or on the Sidebar Properties
deck.
Tip
You can use keyboard shortcuts to move paragraphs up or down the outline levels.
Place the cursor at the beginning of the numbered paragraph and press:
Tab: Down a level or Shift+Tab: Up a level
If you create a nested list using the icons on the Bullets and Numbering toolbar, all the levels of
the list (up to 10) initially apply the same numbering (or bullet) format. To use a combination of
numbering formats and bullets when creating nested lists, you can:
• Click in each list item and then select one of the choices in the drop-down palettes under
the Toggle Unordered List and Toggle Ordered List icons on the Formatting toolbar or the
Properties deck of the Sidebar.
• Use the Bullets and Numbering dialog.
A much better strategy is to define and apply a list style, as discussed in Chapter 12, Lists.
Figure 86: Bullets and Numbering choices on the Properties deck of the Sidebar
Autoformatting
You can set Writer to automatically format parts of a document according to the choices made on
the Options and Localized Options tabs of the AutoCorrect dialog (Tools > AutoCorrect >
AutoCorrect Options). The Help describes each of these choices and how to activate the
autoformats.
To automatically format the file according to the options you have set, choose Tools >
AutoCorrect and select or deselect the items on the submenu.
While Typing
Automatically formats the document while you type.
Apply
Automatically formats the document.
Apply and Edit Changes
Automatically formats the file and then opens a dialog where you can accept or reject the
changes.
AutoCorrect Options
Opens the AutoCorrect dialog (Figures 89 and 90), where you can choose the
autoformatting you want.
The Localized Options tab (Figure 89) 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
'' "" ‘’ “”
Chapter 5,
Formatting Pages: Basics
Page styles and related features
Introduction
Writer provides several ways for you to control page layouts. This chapter describes the use of
page styles and some associated functions:
• Margins
• Page breaks
• Headers and footers
• Page numbering
• Title pages
• Footnotes and endnotes
Chapter 6, Formatting Pages: Advanced covers the use of columns, frames, tables, and sections;
changing page orientation within a document; and the use of borders and backgrounds. Some
other uses of page styles are discussed in Chapter 8, Introduction to Styles. The Page Style
dialog is covered in detail in Chapter 9, Working with Styles.
Note
All pages in a Writer document are based on page styles. The other layout methods
(described in Chapter 6) build upon the underlying page style.
Tip
Page layout is usually easier if you select the options to show text, object, table, and
section boundaries in Tools > Options > LibreOffice > Application Colors and the
options for paragraph ends, tabs, breaks, and other items in Tools > Options >
LibreOffice Writer > Formatting Aids.
Note
For some documents, all layout changes (such as the position of page numbers and
other elements in a header or footer on facing pages) can be defined in a single
page style.
Tip
Any modifications of page styles, including the Default Page Style, apply only to the
document you are working on. If you want the changes to be the default for all
documents, you need to put the changes into a template and make that template the
default template. See Chapter 10, Working with Templates, for details.
Note
If you change the margins using any of these methods, the new margins are
recorded in the page style and affect all pages that use that style. The new margins
will be shown in the Page Style dialog the next time you open it.
If you want to change the margins on some pages, but not others, you must use
different page styles and switch between them; see “Inserting page breaks” on page
126.
Note
The small arrows on the ruler are used for indenting paragraphs. They are often in
the same place as the page margins, so you need to be careful to move the margin
marker, not the arrows. The double-headed arrows shown in Figure 91 are the
mouse pointers placed in the correct position.
Tip
After making a change, passing the mouse pointer over the new margin will show its
new measurement.
Caution
Do not try to change a page style for a single page without inserting a page break. If
you do, the page style of some or all of the other pages may also change.
Tip
See “Numbering the first page something other than 1“ on page 134 for information
on the use of the page number field in these dialogs.
Terminology
A heading is a paragraph that introduces a chapter or section of a document; for
example, “Creating headers and footers” above. A header (also known as a running
header) appears in the top margin of each page and typically displays information
about the document; it is similar to a footer at the bottom of pages.
There are two ways to insert a header. The simplest method is to click above the top of the text
area, then when the Header marker appears, click the +. (To insert a footer, click below the
bottom of the text area to display the Footer marker, and then click the +.)
Tip
Writer provides paragraph styles for headers and footers, which you can modify and
use in the same way as other paragraph styles. See Chapter 8, Introduction to
Styles, and Chapter 9, Working with Styles.
Note
You must use a field for the page number so it changes from one page to the next.
See “Numbering pages” below.
Tip
If you wish to turn off the gray background, choose View > Field Shadings (or press
Ctrl+F8). If you see the words “Page number” instead of a number, press Ctrl+F9.
This toggles Writer between displaying the field name and the contents of the field.
This section describes some techniques to insert page numbers and related information in
headers or footers of a document:
• Simple page numbering
• Defining the number format
• Restarting page numbering and changing numbering format
• Numbering the first page something other than 1
• Combining header text and page number
• Numbering pages by chapter
Caution
Any change in the number format affects the page numbers on all pages using that
page style, regardless of the method used to change the format. To change the
format of page numbers on some pages but not all, you need to use different page
styles; see “Restarting page numbering and changing numbering format” below.
Note
If you set a starting page number that is an even number, you will end up with a
blank page before the first page. LibreOffice adheres to the convention that odd page
numbers go on right-hand pages and even page numbers on left-hand pages.
However, you can suppress this blank page when you print the file or export it as a
PDF. See Chapter 7, Printing, Exporting, Emailing, Signing for more information.
Figure 107: Specifying paragraph style and numbering for chapter titles
3) Insert the chapter number in the document:
a) Place the cursor in the header or footer just before the page number you inserted
earlier, and choose Insert > Field > More Fields on the Menu bar.
b) On the Fields dialog (Figure 108), go to the Document tab. Select Chapter in the
Type list, Chapter number in the Format list, and 1 in the Level box. Click Insert.
c) Type a hyphen or other punctuation between the chapter number and the page
number.
Figure 109: Letterhead with different headers for first and following pages
Column breaks
Manual column breaks are available only in a multi-column document or section. To insert a
manual column break:
1) Position the cursor at the point you want to start the new column. Select Insert > More
Breaks > Manual Break on the Menu bar.
2) In the Type section of the Insert Break dialog (Figure 95), select Column break. Click
OK.
You can also use the Breaks section in the Paragraph dialog (Figure 96).
Line breaks
You can use line breaks to manually format text in several ways:
• Continue on the next line (the default).
• Continue on the next full line, below all anchored objects that intersect with the current
line.
• Continue on the next line that is unblocked on the left-hand side.
• Continue on the next line that is unblocked on the right-hand side.
To insert a default line break, press Shift+Enter.
To insert other line break types:
1) Position the cursor at the point you want to break the text to a new line. Select Insert >
More Breaks > Manual Break on the Menu bar.
2) In the Type section of the Insert Break dialog (Figure 115), select Line break.
3) Select the type of line break required. Click OK.
Chapter 6,
Formatting Pages: Advanced
Using columns, frames, tables, and sections
Introduction
Writer provides several ways to control page layouts. Chapter 5, Formatting Pages: Basics,
described the use of page styles and some associated functions. This chapter covers the use of:
• Columns
• Frames
• Tables
• Sections
• Changing page orientation within a document
• Borders and backgrounds
• Using page line-spacing for printing
Note
All pages in a Writer document are based on page styles. The other layout methods
described in this chapter build upon the underlying page style.
Tip
Page layout is usually easier if you select the options to show text, object, table, and
section boundaries in Tools > Options > LibreOffice > Application Colors and the
options for paragraph ends, tabs, breaks, and other items in Tools > Options >
LibreOffice Writer > Formatting Aids.
Tip
For a document to be published in HTML, EPUB, or another format that is not fixed,
use minimal layout techniques. Some methods (columns, frames, wide tables) often
do not export well to those formats.
Note
If you wish to combine different numbers of columns on a single page, you must use
sections, as described in “Using sections for page layout” starting on page 155.
Tip
Choose View > Formatting Marks (or press Ctrl+F10) to display end of paragraph
markers (¶). Often, unexpected behavior of columns is due to extra paragraphs that
are normally invisible but are taking up space.
Note
The menu item Insert > Frame > Floating Frame is for use with HTML documents.
Frame toolbar
When you create or select a frame, the Frame toolbar (Figure 118) is displayed. By default, it
replaces the Formatting toolbar. You can also display it by using View > Toolbars > Frame.
Tip
You might want to use the mouse for gross layout and the dialog for fine-tuning.
Note
Do not confuse a frame’s border with the text boundaries that are made visible using
the View menu (by selecting View > Text Boundaries).
Anchoring frames
To anchor a frame, click on it, then right-click and point to Anchor, or click the Anchor button on
the Frame toolbar and select the type of anchor, or open the Frame dialog to the Type tab.
To Page (available only on Frame dialog, not the toolbar or context menu)
The frame keeps the same position in relation to the page margins. It does not move as
you add or delete text. This method is useful when the frame does not need to be visually
associated with a particular piece of text. It is often used when producing newsletters or
other documents that are very layout-intensive, or to center text vertically on a page.
The To Page anchor is deprecated. You are advised to chose another type of anchor.
To Paragraph
The frame is associated with a paragraph and moves with the paragraph. It may be
placed in the margin or another location. It is also used to center text on a page in
documents which will be used in a master document (frames anchored to pages will
disappear from the master document).
To Character
The frame is associated with a character but is not in the text sequence. It moves with the
paragraph but may be placed in the margin or another location. This method is similar to
anchoring to a paragraph.
As Character
The frame is placed in the document like any other character and, therefore, affects the
height of the text line and the line break. The frame moves with the text as you add or
delete text. This method is useful for adding a small icon in sequence in a sentence. It is
also the best method for anchoring an image to an empty paragraph so it does not move
around the page in unexpected ways.
Linking frames
You can link frames to each other even when they are on different pages of a document. The
contents will automatically flow from one to the next. This technique is very useful when
designing newsletters, where articles may need to be continued on a different page.
Note
Sideheads can also be created by placing text in a frame using the Marginalia frame
style, as described in Chapter 9, Working with Styles.
Example
To create a table for use with a sidehead:
1) Place the cursor where you want the table to appear and choose Table > Insert Table
(Ctrl+F12).
2) In the Insert Table dialog (Figure 123), define a two-column, one-row table with no
heading. Choose None under Styles so the table will have no border. Click Insert.
3) Right-click the table and choose Table Properties in the context menu. On the Columns
tab of the Table Properties dialog (Figure 124), set the column widths.
4) On the Table tab of the Table Properties dialog (Figure 125), in the Spacing section, make
the Above and Below values the same as the Top and Bottom spacing you have defined
for ordinary paragraphs of text. In the Properties section, optionally give this table a
name. Click OK to save your settings.
Figure 124: Defining a two-column table to line up with text offset at 3.3cm
Tip
If you use this table format often, you may want to save it as a table style, using
Table > AutoFormat Styles. See Chapter 13, Tables.
Naming sections
Writer automatically enters a name for the section in the name box of the New Section list. To
change the name, select it and type over it. The name is displayed in the Sections category of
the Navigator window. Navigation is easier if you give your sections meaningful names.
Note
If you want to insert only a part of the other document, be sure that part exists as a
section in the document.
Write-protecting sections
To write-protect the section so that its contents cannot be edited, select Protect in the Write
protection area (Figure 129).
Note
Write-protection protects only the section’s contents, not its attributes or format.
Password-protecting sections
Caution
Be very careful to remember or safely store the password, because it cannot be
retrieved without advanced tools.
To prevent others from editing the section’s attributes or format, you can additionally protect the
section with a password, as follows:
1) Select Protect and With password.
Hiding sections
You can hide the section so that it will not be displayed on the screen or printed. You can also
specify conditions for hiding the section. For example, you can hide the section only from certain
users. Hiding is very useful for creating a single source document containing students’ and
teachers’ copies of a document such as a test.
Note
You cannot hide a section if it is the only content on the page or if the section is in a
header, footer, footnote, endnote, frame, or table cell.
To hide a section, select the Hide option in the Hide section of the dialog.
To hide the section only under certain conditions, enter the desired conditions in the With
Condition field. The syntax and operators that you use to enter conditions are the same ones that
you use to enter formulas. For syntax and a list of operators, see the Help and Chapter 17,
Fields.
If the section is write-protected with a password, the password must be entered to hide or reveal
the text.
Tip
You cannot select text on a multi-column formatted page and change it to a single
column using this method. Instead, you need to define a single-column page style
and then select the text you want to be in a two-column section on that page.
Use the Columns tab of the Insert Section dialog (Figure 130) to format the section into columns.
Customizing footnotes
To number the section’s footnotes separately from the other footnotes in the document, and
format the numbering, follow these steps:
1) In the Footnotes section of the page, make sure that Collect at end of text is selected.
2) Select Restart numbering.
3) To start the section’s footnotes at a number other than 1, enter the desired starting
number in the Start at box.
4) Select the Custom format option. In the drop-down list, select a numbering format for the
footnotes.
To add text to the selected numbering format, use the Before and After boxes. For example, if
you want the footnote numbers to be preceded by the word Note and followed by a colon, fill the
Before and After boxes as shown in Figure 133.
Customizing endnotes
If you want the section’s endnotes to appear at the end of the section rather than at the end of
the document, select the Collect at end of section option in the Endnotes area.
To number the current section’s endnotes separately from the other endnotes in the document,
and format the numbering, apply the procedures described above to the Endnotes settings.
Removing sections
To remove the selected section, click the Remove button. This does not delete the contents of
the section; the contents become part of the main document. If the contents were linked, they are
now embedded.
Updating links
You can set Writer to update linked sections automatically, and you can also update links
manually.
Removing links
To remove a link to a file and embed its contents, go to the Edit Links dialog, select the file that
corresponds to the link you want to remove, and click the Break Link button. This action does
not delete the text in the Section; it just breaks the link. If desired, the text must be removed
manually.
2) Insert a manual page break where you want a landscape page to appear (Insert > More
Breaks > Manual Break) and choose Landscape for the page style.
3) Copy and paste all the content from the footer of the portrait page and paste it into a
blank paragraph on the landscape page. Be sure this text has the Footer paragraph style
so the font settings will match.
Figure 142: Defining the size and position of the footer frame
9) If the footer has a line above the text, on the Borders tab, select a right border and specify
the line width and spacing to the frame’s contents.
10) Click OK to save these settings. The footer will now appear in the required position and
orientation on any page using the Landscape style.
11) Since rotated text does not allow tabs, click in the frame at the end of the text where the
tab was, and type as many spaces as you need for the layout to match the portrait page.
Tip
You can choose to have page backgrounds fill the entire page (sheet of paper) or
only the area within the margins; see the section on page styles in Chapter 9,
Working with Styles. Page borders surround only the area within the margins,
including the header or footer (if any exist).
Tables, indexes, tables of contents, and bibliographies can also have borders and
backgrounds, although the choices for background are limited to Color or Image.
Tip
For selected words or other characters (right-click, Character > Character), the
“background” is called highlighting. The only choices are Color or None.
Note
The Reference Style sets an invisible vertical (typographical) grid, using the line
distance specified in the style. All paragraphs that have Page line-spacing activated
will use that line distance, aligning the bottom of a text line to the next grid line,
regardless of font size or presence of graphics. Each line is thus the same height.
Writer will align the base lines of text printed on adjacent columns, opposite pages,
and both sides of a sheet of paper to this invisible grid.
All paragraphs with the selected Reference Style (or that inherit the Reference Style)
will be activated automatically for Page line-spacing.
Chapter 7,
Printing, Exporting, Emailing,
Signing
Quick printing
If the Print Directly icon is visible on the Standard toolbar, you can click it to print the entire
document using the current default print settings. If the icon is not visible, you can make it visible
by right-clicking on the toolbar, pointing to Visible Buttons, and selecting Print Directly.
Printing a brochure
In Writer, you can print a document with two pages on each side of a sheet of paper, arranged so
that when the printed pages are folded in half, the pages are in the correct order to form a
booklet or brochure.
Tip
Plan your document so it will look good when printed half size; choose appropriate
margins, font sizes, and so on. You may need to experiment.
The process for printing a brochure is the same for all operating systems, but the settings are
found in different places.
To print a brochure on a single-sided printer:
1) [Windows and Linux] In the Page Layout section of the General tab of the Print dialog,
click more and select Brochure near the bottom.
[macOS] On the LibreOffice page of the Print dialog, select Brochure near the bottom.
2) The preview on the left changes to show the sequence in which the pages will be printed.
(Figure 157.)
3) If you have Asian or CTL selected in your language settings3, the Print dialog will include
a drop-down menu adjacent to the Brochure button (not shown in Figure 157). This list
provides Left-to-right script and Right-to-left script options. Select the required setting.
4) [Windows and Linux] In the Range and Copies section of the General tab of the Print
dialog, select Even pages.
[macOS] On the Paper Handling page of the Print dialog (Figure 158), in the Pages to
Print drop-down list, select Even pages.
5) Click Print. Take the printed pages out of the printer and put them back into the printer in
the correct orientation to print on the blank side. You may need to experiment to find the
correct arrangement for your printer.
6) [Windows and Linux] In the Range and Copies section of the General tab of the Print
dialog, select Odd pages.
[macOS] On the Paper Handling page of the Print dialog (Figure 158), in the Pages to
Print drop-down list, select Odd pages.
7) Click Print.
3 Tools > Options > Language Settings > Languages on Windows or Linux; LibreOffice >
Preferences > Language Settings > Languages on macOS.
Note
Some color printers may print in color regardless of the settings you choose.
Printing labels
Labels are commonly used for printing address lists (where each label shows a different
address), but they can also be used to make multiple copies of one label, for example return-
address stickers, labels for CDs/DVDs, or other items.
Printing labels, like printing envelopes, has two steps: setup and printing. This topic is covered in
detail in Chapter 14, Mail Merge.
Exporting to PDF
LibreOffice can export documents to PDF (Portable Document Format). This standard file format
is ideal for sending the file to someone else to view using Adobe Reader or other PDF viewers.
Warning
A document in PDF format is not protected against contents tampering or editing by
default. The PDF document contents can be edited by specialized software tools,
including LibreOffice Draw.
Tip
Unlike Save As, the Export command writes a copy of the current document in a new
file with the chosen format, but keeps the current document and format open in your
session.
Note
You can also export to PDF with File > Export. On the Export dialog, select the PDF
file format, the file name and location, and click Save or Export. The PDF Options
dialog then opens. Select the appropriate settings and then click Export. The only
difference between the two export methods is the sequence in which steps occur.
Note
EPS (Encapsulated PostScript) images with embedded previews are exported only
as previews. EPS images without embedded previews are exported as empty
placeholders.
Watermark section
• Sign with Watermark: When this option is selected, a transparent overlay of the text you
enter into the watermark text box will appear on each page of the PDF.
General section
• 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, and it remains fully editable in LibreOffice.
• Archive (PDF/A, ISO 19005): PDF/A is an ISO standard for long-term preservation of
documents, by embedding all the information necessary for faithful reproduction (such as
fonts) while forbidding other elements (including forms, security, and encryption). PDF
tags are written. PDF/A-1b refers to the minimum compliance level with PDF/A-1.
PDF/A-2b is recommended for most users, because it allows layers and transparency
with shapes and images. It also compresses better, usually producing smaller files.
PDF/A-3b is identical to PDF/A-2b, but also accepts embedding of other file formats.
• Universal Accessibility (PDF/UA): Creates a universal accessibility-complaint PDF file
that follows the requirements of PDF/UA (ISO 14289) specifications. See the Help for
more information.
• Tagged PDF: Tagged PDF contains information about the structure of the document’s
contents. This can help to display the document on devices with different screens, and
when using screen reader software. Some tags that are exported are table of contents,
hyperlinks, and controls. This option can increase file sizes significantly.
• Create PDF form – Submit format: Choose the format of submitting forms from within
the PDF file. This setting overrides the control’s URL property that you set in the
document. There is only one common setting valid for the whole PDF document: PDF
(sends the whole document), FDF (sends the control contents), HTML, and XML. Most
often you will choose the PDF format.
• Allow duplicate field names: If enabled, the same field name can be used for multiple
fields in the generated PDF file. You can enter data in the first occurrence of the named
field in the PDF document and all fields with the same name will carry your entry. If
disabled, field names will be exported using generated unique names.
Figure 168: Security tab of PDF Options dialog with passwords set
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 and allows editing of the result.
https://calibre-ebook.com/
Redaction
You can redact documents to remove or hide sensitive information, to allow the selective
disclosure of information in a document while keeping other parts of the document secret. For
example, when a document is subpoenaed in a court case, information not specifically relevant to
the case at hand is often redacted.
To redact a document:
1) Open the document in Writer.
2) Click Tools > Redact on the Menu bar, and wait for the document to be prepared for
redaction and transferred to Draw. The Redaction toolbar (Figure 177) opens.
Auto-redaction
To partially automate the redaction process, you can define certain words (such as names) to be
redacted wherever they are found in the document. To do this, choose Tools > Auto-Redact on
the Menu bar to open the Automatic Redaction dialog (Figure 178). Here you can load a list of
terms (targets), add targets, delete targets, edit targets, and save a list of targets.
Chapter 8,
Introduction to Styles
What are styles?
Most people are used to writing documents according to physical attributes. For example, you
might specify the font family, font size, and weight (for example: Helvetica 12pt, bold). In contrast,
styles are logical attributes. For example, you can define a set of font characteristics and call it
Title or Heading 1. In other words, styles mean that you shift the emphasis from what the text
looks like to what the text is.
Style categories
LibreOffice Writer has six style categories:
• Paragraph styles affect entire paragraphs and are also used for purposes such as
compiling a table of contents.
• Character styles affect a block of text inside a paragraph; they provide exceptions to
paragraph styles.
• Page styles affect page formatting (page size, margin, and the like).
• Frame styles affect frames and images.
• List styles affect outlines, ordered (numbered) lists, and unordered (bulleted) lists.
• Table styles affect the appearance of tables of data.
Paragraphs are the building blocks of every document: headings are paragraphs; headers,
footers, and items in numbered lists are also paragraphs. Paragraph styles are, therefore, the
most frequently used styles and are the ones treated in most detail in this chapter.
Note
Manual formatting (also called direct formatting) overrides styles. You cannot get rid
of manual formatting by applying a style to it.
To remove manual formatting, select the text and choose Format > Clear Direct
Formatting on the Menu bar, or right-click and choose Clear Direct Formatting in
the context menu, or press Ctrl+M.
Figure 179: The Styles deck, showing paragraph styles and filter
Applying styles
Styles can be applied easily using the Styles deck on the Sidebar. In addition, you can apply
certain styles using other methods, as explained in this section.
Tip
If the Sidebar Styles deck is not open, you can select Manage Styles at the bottom
of the list to open it.
Tip
You may need to remove direct formatting before applying character styles. Select
the text, then choose Format > Clear Direct Formatting on the Menu bar, or right-
click and choose Clear Direct Formatting from the context menu, or press Ctrl+M.
Note
To apply a character style to more than a single word, you need to select all of the
text to be changed. To apply the style to a single word, you only have to place the
cursor in the word. In contrast, paragraph styles are applied to the whole of the
paragraph in which the cursor is placed.
Figure 185: The current page style is displayed on the status bar
To apply a different page style:
• Right-click on the style on the status bar and select a style from the context menu, or
• Open the Styles deck on the Sidebar, select the Page Styles icon at the top (fourth icon),
and then double-click the desired page style.
Caution
Changing a page style may also cause the style of subsequent pages to change.
The results may not be what you want. To change the style of only one page, you
may need to insert a manual page break, as described below.
As discussed in Chapter 9, Working with Styles, a correctly set up page style will, in most cases,
contain information on what the page style of the next page should be. For example, when you
apply a Left Page style to a page, you can indicate in the page style settings that the next page
must have a Right Page style; a First Page style could be followed by either a Left Page style or
a Default Page Style; or any sequence you prefer.
Another way to change the page style is to insert a manual page break and specify the style of
the subsequent page. The idea is simple: you break a sequence of page styles and start a new
sequence. To insert a page break, choose Insert > More Breaks > Manual Break. This section
illustrates two common scenarios where page breaks are useful.
At some point, you will want to start a new chapter. Follow these steps:
1) Put the cursor at the end of the chapter, on a blank line (empty paragraph) of its own.
2) Choose Insert > More Breaks > Manual Break. The Insert Break dialog (Figure 187)
opens.
3) Under Type, choose Page break and under Style, select First Page.
Tip
You can automate these breaks by defining the paragraph style of the chapter’s title
(usually Heading 1) to include a page break.
Figure 189 illustrates the transitions from the First Page to Default Page Style, with the change of
header between left and right pages shown by the # symbol.
Figure 190: Specifying the next style after the first page of a chapter
4) On the Page tab, specify either a gutter margin or a larger left margin for binding, and a
larger top margin to move the chapter title down the page. See Chapter 9, Working with
Styles, for more information about using gutter margins. This example does not use one.
Figure 191: Setting page margins and layout for the First Page style
5) On the Header and Footer tabs, be sure the Header on and Footer on options are not
selected. Click OK to save your changes.
Step 2. Set up the Default Page Style.
1) On the Styles deck, in the list of page styles, right-click Default Page Style and select
Modify in the context menu.
2) On the Organizer tab of the Page Style: Default Page Style dialog, be sure Next Style is
set to Default Page Style.
Figure 192: Setting page margins and layout for the Default Page Style
4) On the Header tab of the Page Style: Default Page Style dialog (Figure 193), select
Header on and Same content on first page. Deselect Same content on left and right
pages. Click OK to save your changes.
Figure 193: Setting up the header properties for the Default Page Style
Step 5. Set up the page numbers in the page headers.
1) Insert two page breaks in the document. You should now have one page with the First
Page style, followed by two page of Default Page Style.
2) On the first (left hand) page with Default Page Style, place the cursor in the header and
insert a page number field (Insert > Page Number). Keep the paragraph alignment set to
left aligned.
Note
By default, the Heading 1 paragraph style is assigned to Outline Level 1. The
assignment of paragraph styles to outline levels is done through Tools > Chapter
Numbering.
Note
New styles you create or changes you make to an existing style are available only
within the document they belong to. Styles always stay with a document.
If you want to reuse modified or new styles in other documents, either save the
styles in a template (see Chapter 10, Working with Templates) or copy the styles into
the other documents, as described in “Load Styles (from a template or document)”
on page 220.
Writer provides these methods to modify both predefined and custom (user-created) styles:
• Create or update a style from a selection
• Load or copy styles from another document or template
• Change a style using the Style dialog
• Use AutoUpdate (paragraph and frame styles only)
• Use AutoFormat (table styles only); see Chapter 13, Tables
Note
Make sure that the properties in this paragraph are uniform. For example, if there are
two different font sizes in the paragraph, that property will not be updated.
If the styles you want are contained in a text document rather than a template:
1) Select the type of styles you want to copy.
2) Click the From File button to open a file browser, where you can select the required
document.
3) Click Open to copy the styles to the open document.
Note
You cannot use the drag-and-drop method to create a new page style or table style.
Caution
If you are in the habit of manually overriding styles in your document, be sure that
AutoUpdate is not enabled, or you may suddenly find whole sections of your
document reformatting unexpectedly.
Deleting styles
It is not possible to delete LibreOffice’s predefined styles from a document or template, even if
they are not in use. However, custom styles can be deleted.
To delete any unwanted styles using the Styles deck of the Sidebar, select each one to be
deleted (hold Ctrl while selecting multiple styles), and then right-click and select Delete in the
context menu. If the style is in use, a message appears warning you that the style is in use and
asking you to verify that you really want to delete the style.
If the style is not in use, it is deleted immediately without confirmation.
Note
If you delete a style that is in use, all objects with that style will return to the style it
was based on (inherited from) but may retain some of the deleted style’s formatting
as manual formatting.
Tip
If an unwanted paragraph style is in use, you can use Find and Replace to replace it
with a substitute style before deleting it. See Chapter 3, Working with Text:
Advanced, for more information.
Note
You may have noticed this behavior already. After you enter a heading using a
Heading paragraph style and press Enter, the next style switches to Text body.
Do not select AutoUpdate. After making these changes, the dialog should look like Figure 198.
Figure 198: Initial configuration for the Poem style. Set the first three entries as shown.
Sample poem
It is a good idea to test out your new styles and see if you are happy with them. Typing a poem
using the styles we have just defined should produce the results in Figure 200.
Use the Numbering tab of the Chapter Numbering dialog to define the numbering scheme and its
appearance. Figure 205 shows the default settings.
1) In the Level list, choose 1. In the Number list, choose 1, 2, 3, …. The result is shown in
the preview box on the right in Figure 206.
Chapter 9,
Working with Styles
Introduction
Chapter 8, Introduction to Styles, describes the basics of how to use, apply, and manage styles.
This chapter gives a more detailed description of how to create or modify some styles, using the
many options available on the various tabs of the Style dialog. It explains how these options
affect the appearance of the style and how to use them efficiently.
The Style dialogs share many of the same tabs as the manual formatting dialogs, so this chapter
can also help you apply manual formatting (though you do not need that if you use styles).
Note
Table styles are created in a different way; see Chapter 13, Tables.
Style dialog
Open the Styles deck on the Sidebar. Select the category of style you want to create by clicking
on the appropriate icon on the top part of the Styles deck.
Right-click in the window and select New in the context menu. The dialog that is displayed
depends on the type of style you selected.
Tip
The dialogs used to create a new style and to modify an existing style are mostly the
same, but with one exception: conditional styles have a different dialog. See “Using
conditional paragraph styles” on page 248.
Organizer tab
The Organizer tab, shown in Figure 214, is common to all style categories (except Table styles),
with only small differences between them. Therefore, it is described only once.
Depending on the style you are creating, you will find the following fields on this tab:
• Name: present on all the categories. Use this field to name the style you are creating.
• AutoUpdate: only present for paragraph and frame styles. If this option is selected, then
Writer will apply any manual modification to a paragraph or frame formatted with that
style to the style itself.
Caution
If you are in the habit of manually overriding styles in your document, be sure that
AutoUpdate is not enabled, or you may suddenly find whole sections of your
document reformatted unexpectedly.
• Next Style: only available for paragraph and page styles. Use it to specify which style will
be applied to the next element of the same type. For example, a left page style is usually
followed by a right page style, a first page style followed by a left page style, a heading
followed by a text body, and so on.
• Inherit from: available for paragraph, character, and frame styles; it determines the
position of the style in the hierarchy. All the starting properties of the new style are
inherited (copied) from the style specified here; see below for more information.
• Category: available for all styles; use it to associate the new style with one of the
categories. You cannot change the category of the predefined styles. Setting this field is
useful when filtering the contents of the Styles deck.
• Contains: shows a summary of the properties of the style.
Style inheritance
When creating a new paragraph style or a new character style, you
can use an existing style as a starting point for its settings. In this
sense, LibreOffice links the styles together.
When style settings are inherited, a change in the parent style
affects every style inherited from it. To see the connections between
styles, switch to the Hierarchical view on the Styles deck filter. For
example, every Heading style (such as Heading 1, Heading 2) is
inherited from a style called Heading. This relationship is illustrated
in Figure 215. Figure 215: Hierarchical
view of inheritance in styles
Inheritance is a method to create “families” of styles in which you can change their properties
simultaneously. For example, if you decide that all the headings should be green (such as in this
guide), you only need to change the font color of the parent style to achieve the desired result.
However, changes made to a parameter of the parent style do not override changes previously
made to the same parameter in the child styles. For example, if you change the Heading 2 font
color to green, a change of the font color of the Heading style (the parent style) to red will not
affect the Heading 2 font color.
You can easily check which properties are specific to a style by looking at the Contains section of
the Organizer tab. If you want to reset the properties of a child style to that of the parent style,
click the Reset to Parent button located at the bottom of each Paragraph and Character style
dialog.
Figure 217: Settings on the Indents and Spacing tab of a paragraph style dialog
Note
An option in Tools > Options > LibreOffice Writer > Compatibility controls
whether space above and space below are added together (the default) or if the
larger space is the only one that applies. See Chapter 20, Customizing Writer, for
more information.
The spacing between paragraphs does not affect the spacing between lines within a paragraph,
which is controlled in the Line spacing section. You can select one of the following values:
• Single: the default setting—applies a single line spacing to the paragraph. This is
calculated automatically based on the font size.
• 1.15 lines: sets the line spacing to 1.15 lines. This small increase often improves the
appearance of text without using a lot of vertical space.
• 1.5 lines: sets the line spacing to 1.5 lines.
• Double: sets the line spacing to 2 lines.
• Proportional: activates the edit box next to the drop-down list where you can enter a
percentage value. 100% means a single line spacing, 200% double line spacing, and so
on.
• At least: this choice activates the edit box next to the drop-down list, where you can
enter the minimum value (in your selected unit of measurement) to be used for the line
spacing.
• Leading: if this is selected, you can control the height of the vertical space between the
base lines of two successive lines of text, by entering a value, which is summed with the
value of single line spacing, into the edit box.
• Fixed: this choice activates the edit box next to the drop-down list, where you can enter
the exact value of the line spacing.
The last option on this tab is Activate page line-spacing. It works with the Use page line-
spacing option for a page style (see page 253). See the Help and Chapter 6, Formatting Pages:
Advanced, for more information on the use of these options.
Alignment tab
Use the Alignment tab to modify the horizontal alignment of the text, choosing between Left,
Right, Center, and Justified. The results of the selection are shown in a preview window on the
right-hand side of the tab.
When selecting Justified alignment, you can also decide how Writer should treat the last line of
the paragraph. By default, Writer aligns the last line to the left (Start), but you can choose to align
it to the center or to justify it (meaning that the words on the last line will be spaced in order to
occupy it fully). If you have selected to justify the last line and select the Expand single word
option, then when the last line of a justified paragraph consists of a single word, this word is
stretched by inserting spaces between characters so that it occupies the full length of the line.
The Alignment tab is also used to control the Text to Text vertical alignment, useful when you
have mixed font sizes on the same row. Choose the element of the fonts on the line that will be
aligned between Automatic, Base line, Top, Middle, Bottom. Refer to Figure 218 for a visual
representation of these reference points.
Figure 218: Text to text vertical alignment: Base line, Top, Middle, Bottom
Hyphenation options
When Automatically is selected under Hyphenation, these options are available:
Don't hyphenate words in CAPS
Don't insert hyphens in words written entirely in capital letters.
Don't hyphenate the last word
Don't insert hyphens in the last word of a paragraph.
Characters at line end
Controls the minimum number of characters to be left at the end of a line.
Characters at line begin
Controls the minimum number of characters that must appear at the beginning of the line
following a hyphen.
Figure 219: The Text Flow tab of the Paragraph Style dialog
Breaks options
In the Breaks section, you can require a paragraph to start on a new page or column and specify
the position of the break, the style of the new page, and the page number. A typical use for this
option is to start the first page of a new chapter on a new (usually right-hand) page.
To always start a new page with a particular style, choose the following settings:
• In the Breaks section, select Insert. Make sure that Type is set to Page and Position is
set to Before.
• Select With Page Style and choose the page style from the list.
• To continue page numbering from the previous chapter, do not select the Page number
option. To restart each chapter’s page numbering at 1 (a style used in some technical
documents), select Page number and set it to 1.
Other options
The Options section of the Text Flow tab provides settings to control what happens when a
paragraph does not fit on the bottom of a page:
• Do not split paragraph: If a paragraph does not fit on the bottom of one page, the entire
paragraph moves to the top of the next page. This could cause a large blank space at the
bottom on the page.
• Keep with next paragraph: Use for headings or the lead-in sentence to a list, to ensure
that it is not the last paragraph on a page.
• Orphan control and Widow control: Widows and orphans are typographic terms. An
orphan is the first line of a paragraph alone at the bottom of a page or column. A widow is
the last line of a paragraph that appears alone at the top of the next page or column. Use
these options to allow paragraphs to split across pages or columns but require at least
two or more lines to remain together at the bottom or top of a page or column. You can
specify how many lines must remain together.
Tip
On the Font tab, in the lower right, is a Features button. The configurable features
available in the dialog that opens depend on the selected font and are not described
here. They may include, for example, discretionary ligatures and horizontal kerning.
Use the Position section to control the appearance of superscripts and subscripts (characters
above or below the normal line of type, as in H2O or M2). However, you will normally apply
superscript and subscripts to groups of characters rather than to entire paragraphs. Therefore, it
is strongly recommended to change these parameters only when defining a character style and,
instead, leave the default settings for the paragraph styles.
The second section of the Position tab controls the rotation of the paragraph area. One common
use for rotated paragraphs is to fit headings above narrow table columns (Figure 223). Another
use is to create portrait headers and footers on landscape pages; see Chapter 6, Formatting
Pages: Advanced, for details.
Spacing options
Use the Spacing section of the Position tab to control the spacing between individual characters
in the paragraph. When selecting an option other than default in the drop-down menu, use the
edit box to enter the value in points by which you want to expand or condense the text.
The Pair kerning option (selected by default) increases or decreases the amount of space
between certain pairs of letters to improve the overall appearance of the text (Figure 224).
Kerning automatically adjusts the character spacing for specific letter combinations. Kerning is
only available for certain font types and, for printed documents, only works if your printer
supports it.
Caution
If you need to use tabs, and you will be sending a document to other people, do not
use the default tab stops. If the recipients of the document have defined default tab
stops that are not the same as the ones you are using, the paragraph may look very
different on their machines. Instead, define the tab stops explicitly in the paragraph
or the paragraph style; then you can be sure that everyone will see the same layout.
To define tab stops in your paragraph style, use the Tabs page, shown in Figure 225. Here you
can choose the type of tab: Left, Right, Centered, or Decimal; the character to be used as a
decimal point; and the Fill Character—the characters that appear between the end of the text
before the tab and the beginning of the text after the tab.
You may want to consider the following points when working with the Area tab:
• If you do not find the desired color in the list of predefined ones, you can define your own
as described in Chapter 20, Customizing Writer.
• You can select different backgrounds for the paragraph area and for the text in the
paragraph. Use the Highlighting tab for the text. Figure 228 shows the difference.
• The area treatment is applied only to the paragraph area. If you have defined an indented
paragraph, the space between the paragraph and the margin does not have the
paragraph’s background color.
Note
Predefined styles (other than Text body) such as Default, Heading 1, and Heading 2
cannot be set to be conditional.
Caution
If you want to create a new style and make it conditional, you have to do it while the
Paragraph Style dialog is still open for the first time. After the dialog closes, the
Condition tab no longer appears in the dialog when it is reopened.
Note
When rotating a group of characters, you also need to specify whether the rotated
text should fit in the line or if, instead, it is allowed to expand above and below the
line. This property is active only for character styles.
Tip
There is considerable overlap between the uses of frames and sections for some
page layout purposes. You may find Chapter 6, Formatting Pages: Advanced, useful
for information about the use of frames and sections.
Organizer tab
The Organizer tab is described on page 236.
In the Layout Settings section, choose the desired Page layout in the drop-down list. Decide
whether the page style being defined applies to both left and right pages (default), mirrored
pages, or right or left pages only. Some considerations:
• If you plan to bind the printed pages using this style like a book, select a mirrored layout.
• A common practice in page layouts is to have asymmetrical page margins—both for left
and right margins and for top and bottom margins. The most common scheme follows
these two general rules for printed page layouts: (a) The outer margin (right margin on a
right-hand page) would be wider than the inner margin (left margin on a right-hand page);
(b) The bottom margin would be larger than the top margin.
• If you want the first page of a new chapter to always start on a right page, make sure that
the page style for the first chapter page is set for the right page only in the Layout
settings field. The typical procedure for the rest of a chapter is to define a single
“mirrored” page style (perhaps, Default Page Style) for both left and right pages. A
mirrored page can have different headers and footers. If done this way, every chapter will
use two page styles.
• You can choose to define separate page styles for left and right pages, if you want the
pages to be very different in appearance (for example, different margins or columns;
imagine a book with a full-page photograph on the left pages and two columns of text on
the right pages). In that case, make sure that the Next Style field for the first page style is
set for a left-only page, which, in turn, is set to be followed by a right-only page style. If
done this way, every chapter will use three page styles. A hypothetical case might have
these page style names: First Page, Left Page, and Right Page.
Use the Page numbers drop-down list to specify the page numbering style to apply to this page
style.
The Use page line-spacing option works with the Activate page line-spacing option for
paragraphs and paragraph styles (see page 240). See the Help and Chapter 6, Formatting
Pages: Advanced, for more information on the use of these options.
By default, page backgrounds (colors, images, and so on) fill the entire page, including the area
in the margins. If you want the background to fill only the text area, but not the margin area, then
deselect the Background covers margins option in the lower right of the dialog.
Columns tab
Use the Columns tab to create the column layout for the page style. It has three sections:
Settings, Width and Spacing, and Separator Line. Choose the desired number of columns. If you
select more than one column, the Width and Spacing section and the Separator LIne section
become active. You can use the predefined settings (equally spaced columns) or deselect the
AutoWidth option and enter the parameters manually. When you work with multiple columns per
page, you can also fine tune the position and size of a separator line between the columns.
Footnote tab
Use the Footnote tab to adjust the appearance of the footnotes. See Chapter 5, Formatting
Pages: Basics, for details.
Outline tab
Use the Outline tab to select from eight predefined nested lists. You can also select one and use
it as a starting point for your own style, customizing the list using the Position tab and the
Customize tab, as described below.
Position tab
Use the Position tab (Figure 232) to fine tune the indentation and spacing of the list item symbol
and the text of the list item. This tab is particularly effective when used in combination with the
Customize tab.
Tip
To fully appreciate how the Numbering alignment and other parameters work, try to
create a numbered list with more than ten elements and make sure that enough
room has been made for numbers with two or more digits. You may also wish to
right-align numbers 10 or greater.
Customize tab
Use the Customize tab (Figure 233) to define the style of the outline levels. The options available
on this tab depend on the type of marker selected for the list. First, on the left side, select the
level you want to modify. To modify all ten levels at once, select 1 – 10 as the level. If you started
from a predefined outline, some of the levels will already have settings.
Chapter 10,
Working with Templates
Introduction
A template is a model document that you use to create other documents. For example, you can
create a template for business reports that has your company’s logo on the first page. New
documents created from this template will all have your company’s logo on the first page.
Templates can contain anything that regular documents can contain, such as text, graphics, a set
of styles, and user-specific setup information such as measurement units, language, the default
printer, and toolbar and menu customization.
All documents in LibreOffice are based on templates. You can create, or download and install, as
many templates as you wish, and you can set a default template for each type of document (text,
spreadsheet, drawing, presentation). If you do not choose a template when you start a new
Writer document, then the document is based on the default template for text documents. If you
have not specified a default template, Writer uses the built-in blank template for text documents
that is installed with LibreOffice. See “Setting a default template” on page 270.
In Writer, you can create templates for master documents as well as for ordinary documents. For
more about master documents, see Chapter 16.
This chapter describes the use of LibreOffice’s template management features. You can also use
templates in other ways, but the effects are a bit different. See “Other ways to manage
templates” on page 273 for more information.
Tip
In the Start Center, you can click on the Templates button, or open the drop-down
menu and select a type of template, to view the available templates without opening
the Templates dialog. Click on the required template to create a new document.
Note
The connection between a template and a document remains until the template is
modified and you do not update the document to match the template.
If you copy or move the document to a different computer which does not have a
copy of that template installed, the connection is broken even though it continues to
be listed in the document’s properties. See “Changing the template assigned to a
document” on page 269 for a way to reconnect a template to a document.
Installing templates
You can install templates using either the Templates dialog or the Extension Manager.
To install templates using the Templates dialog:
1) Download the template or package and save it anywhere on your computer.
Tip
You can manually copy new templates into the template folders. The location varies
with your computer’s operating system. To learn where the template folders are
stored on your computer, go to Tools > Options > LibreOffice > Paths. You can
also add new template folders in other locations; for more information, see the
Getting Started Guide.
Editing a template
You cannot edit a template that was supplied with LibreOffice. You can only edit templates that
you created or imported.
You can edit a template’s styles and content and then, if you wish, reapply the template’s styles
to documents that were created from that template. You cannot reapply content.
To edit a template:
1) Open the Templates dialog, as described on page 263.
2) In the Templates dialog, find the template that you want to edit. Right-click on it to open
the context menu (Figure 235), then click Edit. The template opens in Writer.
3) Edit the template as you would edit any other document. To save your changes, choose
File > Save on the Menu bar.
Note
Changing or updating a template affects only the formatting used in styles. It does
not affect any content. You may also need to manually update content, for example a
logo, copyright notice, or the layout of a copyright page.
Organizing templates
LibreOffice can manage only those templates that are in its template categories, although you
can create a document from a template that is not in one of these folders (see “Creating a
document from a template” on page 273). You can create new template categories and use them
to organize your templates. For example, you might have one category for report templates and
another for letter templates. You can also import and export templates.
To begin, choose File > Templates > Manage Templates to open the Templates dialog.
Moving a template
To move a template from one template category to another, select it in the Templates dialog,
right-click on it and select Move in the context menu (Figure 235). In the Select Category dialog
(Figure 245), select the destination category and click OK. The selected template is moved to the
selected category. You can also create a new category into which to move the template.
Renaming a template
You cannot rename templates supplied with LibreOffice. You can only rename a template that
you have created or imported.
Open the Templates dialog, find and select the template you want to rename, then right-click the
template and select Rename in the context menu. In the small dialog that opens, type a name in
the Enter New Name text box and click OK.
This action changes the Title on the Description tab of the template’s document properties. It
does not change the file name of the template.
Deleting a template
You cannot delete templates supplied with LibreOffice. Nor can you delete any templates
installed by the Extension Manager except by removing the extension that installed them.
However, you can delete templates that you have created or imported:
1) (Optional) In the Filter drop-down lists at the top of the Templates dialog, select the
category that contains the template you want to delete.
2) Select the template to delete.
3) Right-click to open the context menu of the template and click Delete. A message box
appears and asks you to confirm the deletion. Click Yes.
Exporting a template
To export a template to another location on your computer or network:
1) In the Templates dialog, select the template that you want to export.
2) Right-click on the template and choose Export in the submenu. A file browser window
opens.
3) Find the location where you want to export the template and select Select Folder or OK.
4) Click OK on the displayed information dialog.
Note
Exporting a template does not remove it from the Templates dialog. The action
places a copy of the template in the location you specify.
Chapter 11,
Images and Graphics
Images, Drawing Tools, Gallery, Fontwork
Introduction
You can add graphic and image files, including photos, drawings, and scanned images, to Writer
documents. Writer can import various vector (line drawing) and raster (bitmap) file formats.
Images in Writer are of these basic types:
• Image files, such as photos, drawings, and scanned images
• Diagrams created using LibreOffice’s drawing tools
• Artwork created using clip art or Fontwork
• Charts created using LibreOffice’s Calc component
This chapter covers images, diagrams, and artwork. Instructions on how to create charts are
given in Chapter 19, Spreadsheets, Charts, other Objects. For more detailed descriptions on
working with drawing tools, see the Draw Guide. For more about charts, see the Calc Guide.
Changing the colors of the circle and the arrow improves the contrast and visibility of the resulting
grayscale image.
Note
If you choose the Link option, a message box appears when you click Open. It asks
if you want to embed the image instead. Choose Keep Link if you want the link, or
Embed Graphic if you do not. To prevent this message from appearing again,
deselect the option Ask when linking a graphic at the bottom of the message.
Caution
If the application from which the image was copied is closed before the image is
pasted into the target, the image stored on the clipboard could be lost.
Note
When inserting the same image several times in a document, LibreOffice embeds
only one copy of the image file.
Figure 248: Rotation tab of Image dialog, showing Link file name
Note
While all the positioning techniques discussed in this section apply equally to frames,
contour wrapping is not possible for frames.
Arranging images
Arranging an image means to determine its position relative to other images or text. Arranging is
only relevant when objects are overlapping. You can choose between four common settings, plus
a fifth special setting for drawing objects:
Bring to Front
Places the image on top of any other images or text.
Forward One
Brings the image one level up in the stack. Depending on the number of overlapping
objects, you may need to apply this option several times to obtain the desired result.
Back One
Sends the image one level down in the object stack.
Send to Back
Sends the image to the bottom of the stack.
To Background / To Foreground
Only available for drawing objects; moves the drawing object behind or in front of the text
respectively.
Tip
To select an object that is covered by other objects, press the Tab key to move
through the objects until you reach the object you want.
Anchoring images
You can anchor images as a character or to a page, paragraph, or character. You can also place
images in a frame and anchor the frame to a page, paragraph, or character. Which method you
choose depends on what you are trying to achieve.
To Page (available only on Image dialog, not the toolbar or context menu)
The image keeps the same position in relation to the page margins. It does not move as
you add or delete text or other images. This method is useful when producing newsletters
or other documents that are very layout intensive, or for placing logos in letterheads. This
anchor type is deprecated; you are advised to use one of the other anchor types.
Tip
You can set a default anchor for images in Tools > Options > LibreOffice Writer >
Formatting Aids (Figure 250).
Aligning images
After you have established the anchor point of an image, you can decide the position of the
image relative to its anchor: this is called aligning the image. Choose from six options: three for
aligning the image horizontally (left, center, right) and three for aligning the image vertically (top,
middle, bottom). Horizontal alignment is not available for images anchored As Character.
For finer control of the alignment, use the Position options on the Position and Size page of the
Image dialog, shown in Figure 251.
For both the horizontal and vertical position, start by picking the reference point in the right hand
side drop-down menu, then select in the first drop-down menu among Left, Right, or Center for
Horizontal or Top, Bottom, Center for vertical. If you select From left or From top, you can
specify the distance. In the example in Figure 251, the image was anchored To Page; the upper-
left corner of the image will be placed at 5 cm from the left edge of the page text area and 10 cm
from the top edge of the entire page.
Note
When anchoring an image as character, you can adjust the distance between the
image and the text, but no wrapping option is available.
Tip
In the Category box, you can type any name you want (for example, Photo) if the
drop-down list does not include it. Writer will create a numbering sequence using that
name, as it does when using the AutoCaption feature.
Use a table
Create a one-column, two-row table. Place the image in one row and type the caption in the other
row—or use two or more rows for the caption and other text. This method can be especially
useful for images with numbered legends.
Modifying images
When you insert a new image, you may need to modify it to suit the document. The placement of
the image relative to the text is discussed in “Positioning images within the text” on page 284.
This section describes the use of the Image toolbar, resizing, cropping, and rotating an image.
Writer provides many tools for working with images. These tools are sufficient for most people’s
everyday requirements. However, for professional results it is generally better to use an image
manipulation program such as GIMP to modify images (for example, to crop, resize, rotate, and
change color values) and then insert the result into Writer.
Image filters
Table 8 provides a short description of the available filters. The best way to understand them is to
see them in action. Experiment with the different filters and filter settings. You can undo all the
changes by pressing Ctrl+Z or Alt+Backspace or by selecting Edit > Undo. See the Draw
Guide for more about image filters.
Table 8: Image filters and their effects
Name Effect
Inverts the color values of a color image or the brightness values of a
Invert
grayscale image.
Smooth Softens the contrast of an image.
Sharpen Increases the contrast of an image.
Remove noise Removes single pixels from an image.
Mimics the effects of too much light in an image. A further dialog opens
Solarization
to adjust the parameters.
Simulates the effects of time on an image. Can be applied several
Aging
times. A further dialog opens to adjust the aging level.
Makes an image appear like a painting by reducing the number of
Posterize
colors used.
Pop Art Modifies the image dramatically.
Charcoal Sketch Displays the image as a charcoal sketch.
A dialog is displayed to adjust the light source that will create the
Relief
shadow and, hence, the relief effect.
Mosaic Joins groups of pixels into a single area of one color.
Image mode
You can change color images to grayscale, to black-and-white, or to a watermark by selecting the
image and then selecting the relevant item from the Image Mode list.
Transparency
Increase the percentage value in the Transparency box on the image toolbar to make the image
more transparent. This is particularly useful when creating a watermark or when placing the
image in the background.
Cropping images
When you are only interested in a section of the image for the purpose of your document, you
may wish to crop (cut off) parts of it. Writer provides two ways to crop an image: the Crop tool
and the Crop tab of the Image dialog. The Crop tool provides a quick and easy way to crop an
image; but for more control, use the Image dialog.
Note
If you crop an image in Writer, the image itself is not changed. Writer hides, not cuts
off, part of the image. If you export the document to HTML, the original image is
exported, not the cropped image. For exporting individual cropped images, see
“Exporting (saving) images” on page 298.
Figure 260: Result of croping using the Keep image size option
Tip
The corner handles resize both the width and the height of the image simultaneously,
while the other four handles resize only one dimension at a time. To retain the
original proportions of the image, hold down the Shift key while dragging one of
these handles.
For more accurate resizing of images, use either the Crop tab (Figure 259) or the Position and
Size tab (Figure 261) of the Image dialog.
On the Crop tab you can adjust the following settings:
• Scale Width and Height: specify in percentages the scaling of the image. The size of the
image changes accordingly. For a symmetrical resizing, both values need to be identical.
• Image size: specify the size of the image in your preferred unit of measurement. The
image enlarges or shrinks accordingly.
• Original size button: when clicked, restores the image to its original size. This will be the
size resulting after any cropping was carried out.
On the Position and Size tab of the Image dialog (Figure 261), in the Size section, toggle the
Relative to option to switch between percentage and actual dimension. For a symmetrical
resizing, select the Keep ratio option. Clicking on the Original Size button restores the original
image size, but the scale dimensions are altered if the image has been cropped.
Figure 263: Use the Rotation tab of the Image dialog to flip, link, or rotate an image
You can rotate images at any required angle, using either of these methods:
• Interactively. Select the image and click the Rotate icon on the Image toolbar or right-
click and select Rotate or Flip > Rotate. Rotation handles appear around the object.
Hover the mouse pointer over a handle; when the pointer changes shape, click and drag
it to the required angle. This method is quick and easy, but not precise.
• Using the Image dialog. For precise rotation angles, right-click the image and select
Properties. On the Image dialog (Figure 263), select the Rotation tab. In the Rotation
Angle section, specify the rotation required in the Angle field.
Deleting an image
To delete an image, click it to show the resizing handles, then press the Delete key.
Compressing images
If you insert a large image in a document and resize it to fit into the layout of the page, the
complete original image is stored in the document file to preserve its content, possibly resulting in
a large document file to store or send by email.
If you can accept some loss of quality of the image rendering, you can compress or resize the
image object to reduce its data volume while preserving its display in the page layout. You
probably do not want to compress something that will be professionally printed.
Right-click to select the image and open the context menu. Then choose Compress to open the
Compress Image dialog (Figure 264). Use the Calculate New Size button to update the image
information on the dialog on each parameter set you change.
Click OK to apply the compression settings. If the resulting image is not acceptable, press
Ctrl+Z to undo and choose another compression setting. For more information, see the Help.
Note
You cannot include an embedded or linked image in a group with drawing objects.
You can edit an individual member of a group without ungrouping or breaking the group. Select
the group and then do one of the following:
• Go to Format > Group > Enter Group on the Menu bar.
• Right-click and select Enter Group in the context menu.
• Click the Enter Group icon on the Drawing Object Properties toolbar.
When you have finished editing an individual member of a group, do one of the following:
• Go to Format > Group > Exit Group on the Menu bar.
• Right-click and select Exit Group in the context menu.
• Click the Exit Group icon on the Drawing Object Properties toolbar.
To ungroup or break apart a group of objects, select the group and then do one of the following:
• Go to Format > Group > Ungroup on the Menu bar.
• Right-click and select Ungroup in the context menu.
• Click the Ungroup icon on the Drawing Object Properties toolbar.
Tip
Of particular interest to Writer is the Text Box drawing object. Ordinary text can only
be rotated to 90, 180, or 270 degrees, as described in Chapter 9, but a Text Box
object can be rotated to any desired angle.
Tip
The value _self for the target frame will work in the vast majority of occasions. It is
therefore not recommended to use the other choices unless absolutely necessary.
Note
The default themes supplied with LibreOffice can not be customized, although new
themes can be added; see “Adding a new theme to the Gallery” below. The locked
themes are easily recognizable by right-clicking on them; the only option in the
context menu is Properties.
Tip
You can also get more gallery themes from the LibreOffice extensions website at
https://extensions.libreoffice.org/, including themes from previous versions of
LibreOffice that are no longer installed with the program. Themes in extensions
install automatically.
Note
Deleting the name of a file from the list in the Gallery does not delete the file from the
hard disk or other location.
To delete a theme from the Gallery, select it from the list of themes, right-click, then click Delete
in the context menu. You cannot delete a theme supplied with LibreOffice.
Note
The locations of Gallery themes distributed through LibreOffice extensions are
determined by the extensions’ settings.
Using Fontwork
With Fontwork you can create graphical text art objects to make your work more attractive. There
are many different settings for text art objects (line, area, position, size, and more), so you have a
large choice.
3) Fontwork Same Letter Heights: Changes the height of characters in the object. Toggles
between normal height (some characters taller than others, for example capital letters, d,
h, l and others) and all letters the same height.
4) Fontwork Alignment: Changes the alignment of characters. Choices are Left Align,
Center, Right Align, Word Justify, and Stretch Justify. The effects of the text alignment
can only be seen if the text spans over two or more lines. Stretch Justify fills all the lines
completely.
Chapter 12,
Lists
Introduction
This chapter expands on information given in Chapter 9, Working with Styles, and provides some
extra examples.
In many word processors, list options are included in paragraph styles, but Writer treats them as
a separate type of style that can be linked to paragraph styles for use.
Writer’s separate list styles have two major advantages:
• The same list style can be used with multiple paragraph styles, avoiding duplication of
design work.
• A paragraph’s associated list style can be changed with a single selection.
Tip
You cannot change the style used by the default toolbar icons for lists. You can
create new toolbar buttons that apply list styles to paragraphs, but a better strategy
is to create paragraph styles for lists and, if you wish, create toolbar icons for them.
See Chapter 20, Customizing Writer, for information on creating toolbar buttons.
Types of list
With list styles, you can create three types of list:
• Unordered (bullet) lists: List items start with a bullet, special character, dingbat, or
graphic.
• Ordered (numbered) lists: List items start with a number, upper or lower case letter, or
upper or lower case Roman numeral.
• Outline lists: Hierarchical summaries of an argument or piece of writing, in which each
level has its own numbering system.
Outline lists
Outline lists summarize the structure of a much longer, typically unwritten document. In finished
technical and legal documents, they are used in headings to make the structure obvious,
although this use is becoming less common than it was a few decades ago.
Writer gives several options for outline lists (Figure 278). List styles create an outline method that
uses a single paragraph style. When such a paragraph style is in use, you change the level and
the numbering by pressing the Tab key to descend a level, and Shift+Tab to ascend a level.
This single style outlining is by far the quickest to apply and learn.
Nesting lists
A nested list – a list within a list – is an ordered or unordered list with subordinate (usually
indented) ordered or unordered lists. Rather than being just a list of numbered items (1, 2, 3...), a
nested list may have item 1, then indented items numbered a, b, c or i, ii, iii or some other
numbering or bulleted method before the main number 2. With list styles, you can achieve any
combination of list formats you want. A nested list may even combine ordered items with
unordered items (Figure 280).
Tip
Using the same name for both the list style and the paragraph style with which it is
linked can make working with different types of styles much easier. If you use a
character style to define the bullet or number, give it the same name, too.
Figure 284: The Position tab is one of two tabs in the List Style dialog for
customizing lists
The reverse is also true. However, to avoid complications, make all the changes on the Position
tab for the list style. Not only is that the logical place to look for changes on the list style, but
adjusting the paragraph settings usually involves negative entries for the First Line field, which
can complicate editing.
Figure 285: Fields on the Position tab for list styles and what they refer to
Figure 286: The dotted line is the margin in this example. If the value of the Numbering
Alignment is 0, then choosing Center or Right can force the numbers into the left margin.
Note
Using the Before, After, and/or Show sublevels fields means that the settings on the
Position tab need to be adjusted so there is enough space between the number and
the text.
Note
You may need to change the text indent if you use a larger font, especially for two- or
three-digit numbers. The line height may also need to be increased.
Caution
If you modify an existing character, list, or paragraph style, the changes will affect all
lists in the document that use those styles.
Tip
People occasionally ask for numbered lists that count down from the starting
number, instead of up, presumably for Top 10 lists and other countdowns.
Unfortunately, LibreOffice will not automatically generate numbers for reverse order
in lists. A reverse order list must be entered manually.
Tip
When you use an unusual character style for bullets, be sure to embed the font used
when you share a file.
If your design includes nested bullet lists – that is, bullet lists within bullet lists – you might want
to create an additional list style with a name like Bullets2.
However, if you do use more than one bullet list style, make sure their designs are compatible. In
fact, indenting the nested bullets and nothing more is enough to distinguish them from the top
level bullets.
Tip
If the image is cut off, either adjust the image size or else change the line spacing to
At Least so the top half of the characters in a line is not chopped off.
• Keep ratio, when selected, ensures that changing either the Width or Height field
changes the other proportionally.
• Alignment can usually be ignored, but can help when the height of the graphic is greater
than the height of the text, as in the graphics for Tips, Notes, and Cautions in the
LibreOffice guides.
Figure 293: Defining the bottom border of the Tip body text
4) Style the paragraph (font and so on) in the usual way.
5) Click OK to save the paragraph style.
Step 2. Create a list style.
1) On the Sidebar, go to Styles > List Styles. Right-click and choose New. Name the new
style Heading Tip.
2) On the Image tab (Figure 294), select an appropriate image. (Or, skip this step and select
an image on the Customize tab.)
Figure 295: Customizing the size and alignment of the bullet image
4) On the Position tab (Figure 296), choose settings as described in “Positioning bullets,
numbers, and list items” on page 321.
5) Click OK to save the list style.
Step 3. Create a paragraph style for the Heading Tip and connect it to the list style.
1) In the Sidebar, go to Styles > Paragraph Styles. Right-click and choose New. Name the
new style Heading Tip.
2) On the Organizer tab (Figure 297), specify the Next Style to be the one you created for
the body of the Tip; in this case, Text Note.
Figure 297: Specifying the Next style for the Heading Tip style
3) Style the paragraph in the usual way, then go to the Outline & List tab (Figure 298). In the
List style field, select the list style you created. Click OK to save the paragraph style.
Figure 299: Settings for the new numbering style on the Customize tab
Figure 300: Settings for the new list style on the Position tab
Chapter 13,
Tables
Introduction
Tables are a useful way to organize and present large amounts of information, for example:
• Technical, financial, or statistical reports.
• Catalogs showing descriptions, prices, characteristics, and photographs of products.
• Bills or invoices.
• Lists of names with address, age, profession, and other information.
Tables can often be used as an alternative to spreadsheets to organize materials. A well-
designed table can help readers understand better what you are saying. While you would
normally use tables for text or numbers, you could put other objects, such as pictures, in cells.
Writer’s tables provide limited spreadsheet functions; see “Using spreadsheet functions in a
table” on page 357.
Tables can also be used as a page-layout tool to position text in areas of a document instead of
using several Tab characters. Another example is in headers and footers to support independent
positioning of different elements, such as page number, document title, and so on. This use of
tables is described in Chapter 6, Formatting Pages: Advanced.
When the cursor is in a table, the Properties deck in the Sidebar (Figure 305) includes table
properties.
Note
This function can be disabled or enabled in Tools > AutoCorrect > AutoCorrect
Options. On the Options page, deselect or select Create table.
Tip
Unlike the creation of a table by other methods, conversion from text to table
preserves the paragraph style and character style applied to the original text.
1) Start by editing the text, if necessary, to ensure the column separator character is where
you want it. Select the text you want to convert and choose Table > Convert > Text to
Table to open the dialog shown in Figure 309.
2) The Separate text at section has four options for the separator for the columns of text.
Select Other to choose the default comma (useful if you are importing a .csv file) or type
any character in the box.
The Options are the same as those in the Insert Table dialog (Figure 307).
3) Click OK to convert the text.
Example
In this example we will convert the following text into a table.
Row 1 Column 1; Row 1 Column 2; Row 1 Column 3
Row 2 Column 1; Row 2 Column 2; Row 2 Column 3
In this case, the separator between elements is a semicolon. Select the text and choose Table >
Convert > Text to Table. We obtain the following result.
Tip
You can also perform the opposite operation, to transform a table into plain text. This
may be useful when you want to export the table contents into a different program.
To transform a table into text, place the cursor anywhere in the table, choose Table >
Convert > Table to Text on the Menu bar, pick the preferred row separator, and click
OK to finish.
Tip
If you apply similar formatting of table layout and table text to multiple tables, using
table styles can speed up your work and provide consistency. See “Creating and
applying table styles” on page 352.
Formatting the layout normally involves one or more of the following operations: adjusting the
size of the table and its position on the page, adjusting sizes of rows and columns, adding or
removing rows or columns, merging and splitting individual cells, changing borders and
background.
Default parameters
If you create a table using the Insert Table dialog or the Insert Table icon on the Standard toolbar,
the following defaults are set:
• The cells use the Table Contents paragraph style. In the default template, this style is
identical to the Default Paragraph Style.
• The default table occupies all the space from margin to margin (text area).
• The default table has thin black borders around each cell (grid).
• If you activate the Heading option, the cells in the heading row (or rows) use the Table
Heading paragraph style.
Tip
Rather than starting from the Table Properties dialog, it is often more efficient to
make rough adjustments to a new table using the mouse, and then fine-tune the
layout using the Columns tab and the Table tab of the Table Properties dialog.
You can also resize a table using the keyboard. This is sometimes easier than using the mouse.
1) Place the cursor in the cell where you want to make changes.
2) Press and hold the Alt key while using the arrow keys.
– The left and right arrow keys adjust the column width by moving the border on the
right edge of the cell, but not past the margin.
– The up and down arrows adjust the row height (when possible) by moving the border
on the lower edge of the cell.
• Line arrangement specifies where the borders go. If a group of cells is selected, the
border will be applied only to those cells. You can specify individually the style of the
border for the outside edges of the selected cells and for the cell divisions. Writer
provides default arrangements, but you can click the line you want to customize in the
User-defined area to get exactly what you want. When multiple cells are selected, you
can select the edges of the selection as well as the cell dividers.
Note
When the selected cells have different styles of border, the User-defined area shows
the border as a gray line. You can click the gray line to choose a new border style
(first click), leave the border as it is (second click) or delete the border (third click).
• Line specifies what the border looks like. You can choose from the drop-down lists for
Style and Color, and specify a Width. Your selections apply to those borders highlighted
by a pair of black arrows in the User-defined area.
• Padding specifies how much space to leave between the border and the cell contents.
Spacing can be specified individually for the left, right, top, and bottom borders. Choose
Synchronize to have the same spacing on all four sides.
• Shadow Style properties always apply to the whole table. A shadow has three
components: where it is (position), how far from the table it is cast (distance), and what
color it is.
• If Merge adjacent line styles (under Properties) is checked, two cells sharing a common
border will have their borders merged, rather than being side by side or above/below
each other.
Tip
You need to consider the color contrast between the background and foreground
(usually text). Background colors and images can also have transparency applied to
help make the text more readable.
The row background option is quite handy when you want to create alternate color
rows or assign a different background to the heading of the table.
Tip
You can rename the formats by selecting one and clicking the Rename button. The
name will change in this dialog and in the Table Styles page on the sidebar.
You can delete a format by selecting it and clicking the Delete button. However, you
cannot rename or delete the Default Table Style.
Tip
These styles do not include table and column widths in the table format. To insert a
table with predefined full formatting, save it as AutoText. See Chapter 2, Working
with Text: Basics, for instructions.
Tip
You can apply basic table text formatting by choosing a table style and then modify
only those cells that you wish to be different.
Vertical alignment
By default, text entered into a table is aligned to the top-left of the cell. You can change the
default for the entire table, as described above, or for individually selected cells.
To vertically align the text in specific cells:
1) Place the cursor in the cell you wish to change, or select multiple cells.
2) Click an icon on the Table toolbar: Align Top, Center Vertically, or Align Bottom.
Number formats
The number format can be set for a whole table, a group of cells, or a single cell. For example,
cells can be set to display in a particular currency, to four decimal places, or in a particular date
format.
Number recognition specifies that numbers in a text table are recognized and formatted as
numbers. If Number recognition is not selected, numbers are saved in text format and are
automatically left-aligned. To enable Number recognition, go to Tools > Options > LibreOffice
Writer > Table and select the option in the Input in Tables section.
To set the number format for one or more cells, select the cells, then either click the icon for one
of the popular formats on the Table toolbar, or choose Table > Number Format on the Menu bar.
On the Format Number dialog (Figure 318), you can set options for various categories of
numerical data.
• In the Category list, select the category you want, such as currency, date, or text.
• In the Format list, choose a format for the category you just selected.
Tip
Writer displays the formatting code for the category and format selected in Format
Code section at the bottom of the dialog. For example, if you select a date format
such as 31 Dec 1999 the corresponding code is D MMM YYYY. Advanced users can
easily customize this formatting code as well as create new user-defined codes.
Note
Text rotation within table cells can also be achieved with the use of paragraph styles,
discussed in Chapter 9, Working with Styles.
To move to the beginning of the table, press Ctrl+Home. If the active cell is empty, the move is to
the beginning of the table. If the cell has content, the first press goes to the beginning of the cell
and the next press goes to the beginning of the table. (Pressing again takes you to the beginning
of the document.)
To move to the end of the table, press Ctrl+End. If the active cell is empty, the move is to the
end of the table. If the cell has content, the first press goes to the end of the cell and the next
press goes to the end of the table. (Pressing again takes you to the end of the document.)
Tip
Basic spreadsheet functions in tables are much the same as in LibreOffice Calc.
The main difference is that cell references are formatted differently. Cell A2 (first
column, second row) is referred to in Calc as A2 (or $A$2 for an absolute reference).
In Writer tables, it is referred to as <A2>.
For example, suppose you had two numbers in cells <B1> and <C2> and wanted to display the
sum of the two in cell <A1>, as shown in Figure 320.
Do the following to sum up 4 and 5:
1) Click in cell <A1> and press the = key, or choose Table > Formula on the Menu bar, or
press F2, or click the Sum icon or the Formula icon on the Table toolbar, or click the
Formula icon in the Table panel of the Properties deck on the Sidebar.
The Formula bar appears automatically at the top of the workspace. In the leftmost side
of the bar, you can see the coordinates of the selected cell.
2) Click in cell <B1>. The identifiers of this cell are automatically displayed in the Formula
bar and inserted into cell <A1>.
3) Press the + key.
4) Click in cell <C2>. You can see the final formula = <B1>+<C2> displayed both in the
selected cell and on the Object bar.
5) Press the Enter key, or click the green check mark (may be a different symbol on some
installations) on the Formula Bar, to replace the formula in the cell with the result of the
calculation.
In our example, this gives the result 9 in the top left cell. For summing contiguous cells, you can
simply select the cells in the row, column, or the rectangle of rows and columns. Thus, for
example, to add a column of numbers, do this:
1) Type an equals sign = in an empty cell.
2) Select the cells to be added together, in this case the cells from A2 to A5. The formula
should be something like =<A2:A5>.
3) Press the Enter key or click the green check mark on the Formula Bar.
4) The result appears in the empty cell where you entered the formula.
When using a function, you can type the cell references manually or select them. Thus, to add up
the four numbers that we added above (A2, A3, A4, A5), do this:
1) Type an equals sign = in an empty cell.
2) Type sum or select it from the function list f(x).
3) Select the contiguous cells to be added together. The formula should be something like
=sum<A2:A5>.
4) Press the Enter key or click the green check mark on the Formula Bar. The answer
appears in the empty cell where you entered the formula.
Caution
In Writer, formulas are not updated automatically when inserting or deleting rows or
columns of the table, although the results do update when you change a value in a
cell. If you plan to use complex formulas, consider embedding a Calc spreadsheet in
the Writer document. See Chapter 19, Spreadsheets, Charts, Other Objects.
Note
This protection is not intended for secure protection. It protects the cells against
accidental changes.
To turn on cell protection, place the cursor in a cell or select cells, then click the Protect Cells
icon on the Table toolbar or choose Table > Protect Cells on the Menu bar.
To tun off cell protection, place the cursor in the cell or select the cells. Then click the Unprotect
Cells icon on the Table toolbar or choose Table > Unprotect Cells on the Menu bar.
To remove protection for the entire current table or all selected tables, press Shift+Ctrl+T.
Adding a caption
You can easily add a caption to any table. Writer will keep track of all your captioned tables,
automatically number them, and update any links to them. To add a caption to a table:
1) Right-click anywhere in the table and select Insert Caption in the context menu, or
choose Insert > Caption on the Menu bar, or click the Insert Caption icon on the Table
toolbar.
2) Under Properties on the Caption dialog, make your selections for the Category (it defaults
to Table, which is usually what you want), Numbering, and Separator fields. The position
of the caption defaults to above a table; you can change this if necessary.
3) Type your caption text in the text box at the top of the dialog.
4) Click OK.
You can also set up Writer to add captions to tables automatically. The procedure is the same as
for adding captions automatically to images, described in Chapter 11.
Cross-referencing to a table
You can insert a cross-reference to a captioned table. Clicking on the cross-reference takes the
reader directly to the table. For details, see Chapter 17, Fields.
Splitting a table
One table can be split into two tables, and two tables can be merged into a single table. Tables
are split horizontally: the rows above the split point are put into one table, and the rows below
into another. To split a table:
1) Place the cursor in a cell that will be in the top row of the second table after the split (the
table splits immediately above the cursor).
2) Choose Table > Split Table on the Menu bar or click the Split Table icon on the Table
toolbar.
3) A Split Table dialog opens, where you can choose how to handle heading rows.
4) Click OK. The table is then split into two tables separated by a blank paragraph.
Note
If cells in one table include formulas using data from the other table, those cells will
contain an error message: **Expression is faulty**.
Merging tables
To merge two tables:
1) Delete the blank paragraph between the tables. You must use the Delete key (not the
Backspace key) to do this.
2) Select any cell in one of the tables.
3) Choose Table > Merge Table from the Menu bar.
Deleting a table
To delete a table, do any of the following:
• Right-click anywhere in the table and choose Delete > Table in the context menu.
• Click anywhere in the table and choose Table > Delete > Table on the Menu bar.
• Select from the end of the paragraph before the table to the start of the paragraph after
the table, and then press the Delete key or the Backspace key.
Note
The third method also merges the paragraph after the table with the paragraph
before the table, which may not be what you want.
Copying a table
To copy a table from one part of the document and paste it into another part:
1) Select the table.
2) Press Ctrl+C or click the Copy icon on the Standard toolbar.
3) Click where you want the table to be copied.
4) Press Ctrl+V or click the Paste icon on the Standard toolbar.
Moving a table
To move a table from one part of a document to another part:
1) Select the table.
2) Press Ctrl+X or click the Cut icon on the Standard toolbar.
3) Click where you want the table to be moved.
4) Press Ctrl+V or click the Paste icon on the Standard toolbar. This pastes the cells and
their contents and formatting.
Chapter 14,
Mail Merge
Form Letters, Mailing Labels, and Envelopes
What is mail merge?
Writer’s mail merge provides features to create and print multiple copies of one item (such as
return address labels, promotional stickers, or t-shirt transfers) or to produce copies that include
variable information (for example names, addresses, and amounts due):
• Form letters (a document to send to a list of recipients)
• Mailing labels, labels for physical file folders, and similar purposes
• Envelopes
Variable data is typically derived from a data source, as discussed below. If all output is to be the
same (for example, return address labels), the merge can use manually entered text or images.
This chapter describes the mail merge process. The steps include:
1) Create and register a data source.
2) Create and print form letters, mailing labels, and envelopes.
3) Optionally, save the output in an editable file instead of printing it directly.
Note
When using the Mail Merge Wizard (page 375), you can select automatic
suppression of blank lines and avoid the work described in this step.
Tip
If you are printing the same information on each label, you may find the Business
Cards dialog useful. Access it through File > New > Business Cards. The Labels
and Business Cards dialogs are very similar.
11) If any paragraph ends or other punctuation are missing, or if you wish to change the font
or other characteristics of one or more fields or lines (paragraphs) of all the labels, you
can do so now. In the upper left label, select the field(s) that you wish to change, then
change them manually or by selecting a paragraph style or character style. Add any
missing punctuation. Then click the Synchronize Labels button to automatically add
these changes to all of the labels.
Printing
1) Choose File > Print. The message shown in Figure 329 appears. Click Yes to print.
2) In the Mail Merge dialog (Figure 330), you can choose to print all records or selected
records. To select records to be printed, use Ctrl+click to select individual records. To
select a block of records, select the first record in the block, scroll to the last record in the
block, and Shift+click on the last record.
3) Click OK to send the labels directly to the printer. If you prefer to save the labels to a file,
then select File in the Output section, where Save as single document is preselected. In
this case, clicking OK opens the Save As dialog, where you can enter a file name and
location, as described in Step 6) on page 369.
Note
Blank lines in addresses on labels are suppressed automatically, as they are when
using the Mail Merge Wizard (page 375).
Chapter 15,
Tables of Contents, Indexes,
Bibliographies
Introduction
This chapter describes how to create and maintain a table of contents, an index, and a
bibliography for a text document using LibreOffice Writer. Other types of index are mentioned
briefly. To understand the instructions, you need a basic familiarity with Writer and styles (see
Chapter 8, Introduction to Styles, and Chapter 9, Working with Styles).
Tables of contents
Writer’s table of contents (TOC) feature lets you build an automated TOC from the headings in a
document. Whenever changes are made to the text of a heading in the body of the document or
the page on which the heading appears, those changes automatically appear in the table of
contents when it is updated.
Before you start, make sure that the headings are styled consistently. For example, you can use
the Heading 1 style for chapter titles and the Heading 2 and Heading 3 styles for chapter
subheadings.
This section shows you how to:
• Create a table of contents quickly, using the defaults.
• Customize a table of contents.
Note
You can use any style you want for the different levels to appear in the TOC; the
examples in this chapter uses the default Heading styles. You can specify other
paragraph styles to appear in the TOC, as described in “Create From” on page 392.
Tips
If some of your headings do not show up in the table of contents, check that the
headings have been tagged with the correct paragraph style. If a whole level of
headings does not show up, check the settings in Tools > Chapter Numbering. See
Chapter 8, Introduction to Styles.
If you add or delete text (so that headings move to different pages) or you add,
delete, or change headings, you need to update the table of contents. To do this:
Right-click anywhere in the TOC and select Update Index in the context menu.
If you cannot place the cursor in the TOC, choose Tools > Options > LibreOffice
Writer > Formatting Aids, and then select Enable cursor in the Protected Areas
section.
The TOC appears with a gray background. This background is there to remind you
that the TOC is a field; the text you see is generated automatically. The background
is not printed and does not appear if the document is converted to a PDF. To turn off
this gray background, go to Tools > Options > LibreOffice > Application Colors,
then scroll down to the Text Document section and deselect Index and table
shadings.
This change may leave a gray background showing behind the dots between the
headings and the page numbers, because the dots are part of a tab. To turn that
shading off, go to Tools > Options > LibreOffice Writer > Formatting Aids and
deselect the option for Tabs in the Display formatting section.
Caution
If you have Edit > Track Changes > Show enabled when editing a document and
you update the TOC, then errors may occur, as the TOC will still include any deleted
headings and deleted text may cause page numbering in the TOC to be wrong. To
avoid this problem, be sure this option is deselected before updating a TOC.
Note
The preview box shows the appearance from settings made on the Type, Entries,
and Styles tabs. It does not show changes made on the Columns and Background
tabs.
After making all your changes, click OK to apply them. To revert to the default settings for the
Columns and Background tabs, select each tab in turn and click the Reset button. The settings
on the Type, Entries and Styles tabs must be reset manually; the Reset button has no effect.
Type tab
Use the Type tab (Figure 348) to set the attributes of the TOC.
Title
To give the table of contents a different title, type it in the Title field. To delete the title,
clear the Title field.
Type
Select a type in the drop-down list. For a TOC, be sure the Type is set to Table of
Contents. See “Alphabetic indexes” on page 396 and “Other types of index” on page 404
for more about creating other types of indexes.
Note
You can change the type of index only when you first create it. Once you define an
index type (for example, a table of contents) you cannot change it.
Note
In the Chapter Numbering dialog (covered in Chapter 8, Introduction to Styles), if you
have included any text in the Before or After boxes in the Separator section for any
given level, then that text will be part of the E# field for that level. Take care when
building the structure line not to create any unwanted effects in the appearance of
the TOC.
Adding elements
To add an element to the Structure line:
1) Click in the white field where you want to insert the element.
2) Click one of the active buttons just below the Structure line. For example, to add a tab,
click the Tab Stop button. An icon representing the new element appears on the Structure
line.
3) To add custom text, such as the word Chapter, type the text in the white field. Don't forget
a trailing space.
Deleting elements
To delete an element from the Structure line, click the button representing that element and then
press the Delete key on your keyboard. For example, to delete the default hyperlink setting, click
the LS icon and then press the Delete key. Repeat this for the LE icon.
Tip
The default character style for hyperlinks (such as those inserted by Insert >
Hyperlink) is Internet Link, which by default is underlined and shown in blue.
The default hyperlinks of TOC entries are set to the Index Link character style, which
may be different in appearance from the Internet Link style. If you want them to
appear the same as internet links, you can select the LS icon on the Structure line
and change the character style selection for TOC entries to Internet Link.
You can also change the attributes for Index Link to what you want.
Tab parameters
Click on the Tab stop icon on the Structure line to bring up these controls:
• Fill character: select the tab character you wish to use; the first choice is none (blank).
• Tab stop position: specify the distance to leave between the left page margin and the
tab stop. Optionally, select Align right for the tab stop; this selection inactivates the
distance.
Figure 351: Styles tab of the Table of Contents, Index or Bibliography dialog
Columns tab
Use the Columns tab to change the number of columns for the TOC. Multiple columns are more
likely to be used in an index than in a TOC, so this tab is described in the section on indexes.
See Figure 357.
Background tab
Use the Background tab (Figure 352) to add color or an image to the background of the TOC.
See Chapter 6, Formatting Pages: Advanced, for more about adding a background.
Adding an image
To add an image to the background of the table of contents, select the Image button. The
Background tab now displays the image options.
Alphabetic indexes
An alphabetical index (referred to as an index) is a list of keywords or phrases used throughout a
document that, if listed in order with page numbers, may help the reader find information quickly.
Generally an index is found in the back of a book or document.
This section describes how to:
• Add index entries manually.
• Use a concordance file.
• Create an alphabetic index quickly.
• Customize the display of index entries.
• Customize the appearance of the index.
• View and edit existing index entries.
Tip
You can also open the Insert Index Entry dialog by clicking the Insert Index Entry
icon at the right-hand end of the Insert toolbar, as shown in Figure 353.
Tip
A cursor placed immediately before the first character of a word, or immediately after
the last character of a word if it is followed by a space, counts as being in that word.
You can create multiple entries without closing the dialog. For each one:
1) Click at the location in the document that you want to index.
2) Click again on the dialog.
3) Change the entry if needed, and click Insert.
4) Repeat steps 1–3 until you have finished with the entries, then click Close.
Note
If field shading is active (Tools > Options > LibreOffice > Application Colors >
Text Document > Field shadings), when a selected word or phrase has been
added to the index, it is shown in the text with a gray background. If the text of an
index entry has been changed from the text of the word selected, the index entry is
marked by a small gray rectangle at the start or end of that word.
Type tab
Use the Type tab (Figure 355) to set the basic attributes of the index.
To give the index a different title, edit the Title field. To delete the title, clear the Title field.
Be sure the type of index is set to Alphabetical Index.
By default, to prevent the index from being changed accidentally, the option Protected against
manual changes is selected; the index can only be changed by using the context menu or the
dialog. If the option is not selected, the index can be changed directly just like other text, but any
manual changes to an index will be lost when you update it, so they should be avoided.
Entries tab
Use the Entries tab to set exactly how and what will be displayed for each of the entries. The tab
is similar to Figure 356.
Note
Hyperlinking from the index to the location of entries in the text is not available.
Chapter Info
The Chapter Info button inserts chapter information, such as the chapter heading and number.
The information to be displayed is selected from the Chapter entry list that appears when this
option is selected and is determined in the Chapter Numbering dialog (Tools > Chapter
Numbering).
Formatting entries
Apply additional formatting using the options in the Format section.
Alphabetical delimiter
This separates the index entries into blocks that start with the same first letter, using that
letter as a header. For example, if your index begins:
apple, 4
author, 10
break, 2
bus, 4
Then selecting this option will give you:
A
apple, 4
author, 10
B
break, 2
bus, 4
Key separated by commas
Arranges the entries in the index on the same line but separated by commas.
Tab position relative to Paragraph Style indent
When selected, entries are indented according to the settings of their individual formats.
Where a paragraph style with an indent on the left is in use, tab stops will be relative to
this indent. If this option is not selected, tab stops will be relative to the left margin
position.
Columns tab
Use the Columns tab (Figure 357) to change the number of columns for the index.
Maintaining an index
To modify the appearance of an index, right-click anywhere in the index and choose Edit Index in
the context menu. The Table of Contents, Index or Bibliography dialog opens and you can edit
and save the index using the five tabs described in the previous section.
To update or delete an index, right-click anywhere in the index and select Update Index or
Delete Index.
Tip
Writer has a single bibliography database for all documents. Since formatting entries
can be tedious, consider creating a template with citations for each type of source
material.
Note
Any single entry in the bibliography needs only about half a dozen fields filled in, no
matter what citation format you use. What differs is the fields needed for each type of
source material and the order of the fields in each citation style.
Caution
The sample entries in the sample database for both the Identifier column and the
Short Name field are meaningless. Replace them with the proper format for the
citation style you are using.
Note
For more information on how to use LibreOffice’s database features, see the Getting
Started Guide.
Field details
You can make changes to the bibliography database (for example, rename fields or change the
length of fields) by doing the following:
1) In the main document (not the Bibliography Database window), press Shif+Ctrl+F4 or
click View > Data Sources to open the data source window, similar to Figure 364.
2) Make sure that the Bibliography database is selected as well as the correct table. You
may have to expand some levels to be able to select the correct ones.
Editing a reference
To edit a reference:
1) Right-click the entry (the cursor then displays to the left of the entry).
2) In the context menu, select Bibliography Entry. The Edit Bibliography Entry dialog
(similar to the Insert Bibliography Entry dialog) opens.
3) To quickly edit only the Short name, click the text box, edit the entry and then click Apply.
4) To edit more of the entry, click Edit to open the Define Bibliography Entry dialog.
Make any changes required and then click OK to return to the Edit Bibliography Entry
dialog.
5) Click Apply to accept the changes and exit the dialog.
Note
Modified references are stored only in the document. If the source is a bibliography
database, that database remains unmodified.
Type tab
Writer supports two ways of displaying references (citations) in the text of a document:
• Using the text recorded in the Short name field of each bibliographic entry, for example
(Smith, 2001) depending on citation style.
• By numbering the referenced documents in the sequence they occur in the text, for
example [1].
Entries tab
The structure of this tab (Figure 369) is similar to that for tables of contents and for indexes.
Figure 370: Specifying square brackets before and after the number in a list
Figure 371: Setting the spacing between the margin and the text
5) Click OK to save these settings and close the List Style dialog. Return to the Styles deck,
click the Paragraph Styles icon, choose All Styles in the list at the bottom of that
window, then right-click on Bibliography 1 and choose Modify.
6) On the Paragraph Style dialog, go to the Outline & List tab and select Bibliography in the
List Style drop-down list (Figure 372). Click OK to save this change to the Bibliography 1
paragraph style.
Chapter 16,
Master Documents
What is a master document?
A master document (.odm) is a container that joins separate text documents (.odt) into one larger
document and unifies the formatting, table of contents (TOC), bibliography, index, and other
material. Master documents are typically used for producing long documents such as a book, a
thesis, or a long report. Figure 374 shows a typical scheme for master documents.
Note
A master document is actually a Writer document with some extra features for
handling linked subdocuments. All features of a text document are available to a
master document including printing, export to PDF, and export to a conventional
Writer text document.
Figure 375: The Navigator for a text document (left) and for a master document (right)
In a master document, you can toggle between the regular and master views by clicking on the
Toggle Master View icon at the upper left. In the master view, the Navigator lists the
subdocuments and text sections, as shown on the right in Figure 375. The use of the Navigator in
a master document is covered in more detail later in this chapter (see “Step 6. Insert the
subdocuments into the master document” on page 428 and “Combining several documents into a
master document” on page 430).
Note
You cannot edit the contents of a subdocument shown in a master document. The
subdocuments are linked in read-only mode. You will be warned if you try.
However, a double-click on a subdocument entry in the master document Navigator
opens the subdocument for editing. This can be a convenient way to quickly open a
subdocument file when doing the finishing touches of the master document.
Tip
Master document best practices recommend to use the same document template for
the master document and its subdocuments. Then the subdocuments will look the
same when they are loaded into the master document as they do when viewed as
individual files.
When you modify or create a style, be sure to make the change in the template.
Then when you reopen a subdocument or a master document, the styles can be
updated from the template.
If the master document and the subdocuments do not share the same original
template, it may be necessary to update the set of styles available to all
subdocuments and master document.
Note
When opening a master document, Writer prompts to update the links to the
subdocuments. Click Yes to refresh the master document immediately.
Note
When saving a master document, all the subdocuments are embedded in the
master. This allows the master document to be opened in full when the linked
subdocuments are not available. In this case, when you are asked if you want to
update all links, choose No.
Page, paragraph, character, frame, and numbering styles. Determine the styles you wish to
use. See Chapter 8, Introduction to Styles, and Chapter 9, Working with Styles, for instructions
on how to create or modify styles and examples of the use of styles in book design. Pay
particular attention to setting up headings using styles, as described in Chapter 8.
Fields and AutoText entries, as required. See Chapter 2, Working with Text: Basics, and
Chapter 17, Fields, for ideas.
One or more templates for master and subdocuments. If you are starting a new project,
create the master document and all the subdocuments from the same template. Not using the
same template can create style inconsistencies that could cause your document not to look as
you expect. For example, if two subdocuments have a style with the same name that is formatted
differently in each document, the master document will use the formatting from the first
subdocument that was added.
Page numbering. In our example, the pages are numbered sequentially from the title page. (The
title page style can be defined not to show the page number, but it will still count as page 1.)
Therefore the first chapter begins on a higher number page, for example page 5. To create a
book in which the page numbering restarts at 1 for the first chapter, you need to do some
additional work. See “Restarting page numbering” on page 432.
Tip
You can also create master document templates; see page 435.
Note
Using File > New > Master Document will create a master document file (.odm)
associated with the default template. If your document is, or will be, based on a
custom template, use the method described above.
Note
Depending on the style definitions for the first paragraph (usually a heading) on the
Copyright and TOC pages, you may not need to insert manual page breaks.
Tip
Subdocuments are inserted into a master document before the item highlighted in
the Navigator. If you insert the last subdocument first, and then insert the other
subdocuments before the last one, they will end up in the correct sequence without
the necessity of moving them up or down in the list.
Tip
You could create a master document template (see page 435) and use it as the
starting point for this method. In that case, skip steps 1 and 2 and start with step 3.
1) Open the title page document that you plan to use as the master document. To avoid
creating too many subdocuments when this document is converted to a master
document, have only one level 1 heading present. If there are more, temporarily change
them to lower level headings and note which they are (add, for example, an asterisk at
the end of each heading to remind you which have to revert to level 1 headings later).
2) Select File > Send > Create Master Document, name and save this master document
(see “How to do it” on page 431).
Let us assume the original document was named FrontPage with a single Level 1
heading, and that when we created the master document (.odm file) we named it TestFile.
In this case, the master document is a blank file containing only one section. Also created
at the same time was a subdocument named TestFile1, which is a .odt file containing the
text from the FrontPage file. When you open the .odm file and click Yes to update all
links, this file is linked in to the master document to provide the original content.
The original FrontPage file is left intact in its folder.
Editing subdocuments
You cannot edit a subdocument from within the master document. Instead, you must open the
subdocument, either by double-clicking on it in the master document’s Navigator, or by opening it
from outside the master document. Then you can edit it just as you would edit any other
document.
If, while editing a subdocument, you want to make changes to the styles that apply to the master
document, see “Changing the appearance of the master document” above.
If you change the contents of any subdocument, you need to manually update the table of
contents, bibliography, and index from within the master document.
Tip
Include in the name you give a master document template some indication that it is
not an ordinary template.
Anchoring images
An image (graphic) anchored To page in a subdocument is not displayed in a master document.
Because the master document reorganizes the page flow, page numbers, and cross-references
when it collates the subdocuments, the image loses its anchor reference and disappears.
In contrast, an image anchored To page in a text section of a master document stays with that
page and does not move if the length of subdocuments changes. The image may end up on a
page somewhere in the middle of a subdocument, not where you want it to be.
Note
The anchor “to page” is deprecated. Avoid using it.
To keep an image positioned precisely on a particular page, anchor the image as follows:
1) Right-click the image and choose Properties in the context menu.
2) On the Type tab of the Image dialog (Figure 392), set the anchor to To character, As
character, or To paragraph.
3) Under Position, choose suitable horizontal and vertical references to the page. Click OK
to save the changes.
Chapter 17,
Fields
Introduction
Fields are used for a variety of purposes: for example, data that changes (such as the current
date or the total number of pages) or might change (the name of a product or book under
development), user-defined numbering sequences, automatic cross-references, and conditional
content (words or paragraphs that are visible or printed in some conditions but not others). Index
entries are also fields.
This chapter describes some common uses of fields. A full discussion of fields and their use is
beyond the scope of this book. Power users can find more details in the application Help.
Tip
Fields have a gray background when viewed on screen, unless you have deselected
View > Field shadings on the Menu bar or changed the color of field shadings in
Tools > Options > LibreOffice > Application Colors. This gray background does
not show when you print the file or export to PDF.
Tip
To change the format of the Date value, go to Tools > Options > Language
Settings > Languages and change the Locale setting.
Figure 396: Inserting a Date Modified field using the DocInformation tab of the Fields dialog
Tip
You can make the content fixed by selecting Fixed content (see Figure 396, lower
right) when inserting the field. If necessary, you can come back to this dialog later
and deselect this option to make the field variable again. For example, if you use a
field to insert the creation date of a document, you do not want that date to change.
3) In the Type list, select Number range. In the Format list, select Arabic (1 2 3). Type
whatever you want in the Name field. (We have used Step in this example.)
4) Click Insert. The name of the variable (Step) now appears in the Selection list, and a
number field (showing 1) appears at the insertion point in your document. The Fields
dialog remains open.
5) If you click several more times on the Insert button in the Fields dialog, the numbers 2, 3,
4, and so on will appear in the document.
Tip
To avoid doing all of that every time you want to put in a Step number, create an
AutoText entry for Step. Then you can insert the field in the same way you would
insert any other AutoText. See “Using AutoText to insert often-used fields” on page
444.
Tip
If a user-defined variable is not in use in the document, the X icon next to the Value
box is active. You can delete the variable by clicking this icon. To remove a variable
that is used in the current document, first delete from the document all fields using
that variable, and then remove the variable from the list.
Inserting cross-references
To insert a cross-reference to a heading, figure, or other item shown on the Cross-references tab:
1) Place the cursor where you want the cross-reference to appear in the document.
2) If the Fields dialog is not open, choose Insert > Cross-reference or press Ctrl+F2. On
the Cross-references tab (Figure 400), in the Type list, click the type of item you are
referencing (for example, Headings or Figure).
3) Click the required item in the Selection list, which shows both automatically created
entries (for example, Headings) and user-defined references (for example, bookmarks).
4) In the Refer using list, choose the type of reference required. The choices vary with the
item being referenced (see “Formats for cross-references” below).
5) Click Insert.
4 For example, when you are in a chapter 1, subchapter 2, subpart 5, this may be numbered as 1.2.5.
When you insert here a reference to text in the previous subpart "1.2.4" and you apply the "Number"
format, then the reference will be shown as "4". If in this example the numbering is set to show more
sublevels, the same reference will be shown as "2.4" or "1.2.4", depending on the setting. If you use
the "Number (full context)" format, you will always see "1.2.4", no matter how the numbered paragraph
is formatted.
Note
Both bookmarks and set references can now be used for either location or text. In
previous versions of LibreOffice, bookmarks could be used only for location
references.
Using bookmarks
Bookmarks are listed in the Navigator and can be accessed directly from there. In HTML
documents, bookmarks are converted to anchors that you can jump to using a hyperlink.
See “Managing bookmarks” on page 452 for more information about bookmarks, including
renaming and editing them.
1) Select the text you want to bookmark, or click in the required place in the text. Choose
Insert > Bookmark on the Menu bar.
2) On the Bookmark dialog (Figure 408), the larger box lists any previously defined
bookmarks. Type a name for this new bookmark in the top box (or accept the default
name) and click Insert.
3) You can leave the Bookmark dialog open while you insert more bookmarks. When you
are done, click Close.
Setting references
Set references are inserted and managed on the Cross-references tab of the Fields dialog.
1) Select the text you want to bookmark, or click in the required place in the text. Choose
Insert > Cross-reference on the Menu bar.
2) On the Cross-references tab of the Fields dialog (Figure 401), select Set Reference in
the Type list. The Selection list now shows any references that have been defined. This
dialog can remain open while you set several items as references.
3) The text of the item appears in the Value box in the lower right of the dialog. In the Name
box, type some text by which you can identify this item. This field name is case-sensitive.
4) Click Insert. The text you typed in the Name box now appears in the Selection list.
5) Repeat steps 3 and 4 as often as required.
6) Click Close to save and exit the dialog.
Tip
Keep a list of your names for the reference fields, and be sure each name is unique
– not just within one document, but for all the documents involved. One way to keep
track of this information is to save it in a separate file or spreadsheet.
The field names are case-sensitive. You can check the field name by holding the
mouse pointer over the referenced item. For example, in Figure 402 the heading has
the field name word count.
3) The Selection list on the right shows only the reference field names (if any) for the
subdocument you are using, so ignore that list and check the list you created manually in
“Preparing the references” above. In the Name field in the lower right, type the name of
the reference you set in the subdocument you are referring to. In our example, the name
of the reference is word count.
4) Click Insert, type any text you want to appear between the reference and page number
(such as “on page ”), and then insert another reference with Page number (unstyled) in
the Refer using list. The cross-references will show an error as shown in Figure 404.
When you hover the mouse pointer over one of these fields, you will see the field name.
(You can turn on the display of field codes by clicking View > Field Names. The two error
fields shown in Figure 404 now look like Figure 405.)
5) After you have inserted all the cross-references required in the subdocument, click Close
to save it and return to the master document window.
Figure 407: Inserting the current chapter number and name into your document
• You can insert cross-references to other heading levels by specifying a value in the Level
box in the lower right of the Document tab of the Fields dialog (Figure 407). That is,
Level 1 = Heading 1, Level 2 = Heading 2, and so on.
You can add a page count to the footer; for example, Page 9 of 12. Type the word Page and a
space in front of the Page field. Type a space, the word of, and a space after the Page field. Then
choose Insert > Field > Page Count.
To include the chapter number with the page number:
1) Position the cursor just before the Page field you inserted. On the Document tab of the
Fields dialog, select Chapter in the Type column and Chapter number without
separator in the Format column. Click Insert.
2) Go to the header or footer where you inserted this field and type the character you want
to appear between the chapter number and the page number; for example, a hyphen.
3) The table of contents will not automatically pick up these chapter numbers, so you need
to make a change on the Entries tab of the Table of Contents, Index or Bibliography
dialog, as described in Chapter 15, Tables of Contents, Indexes, Bibliographies.
Managing bookmarks
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 (Figure 408) 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.
To use the Bookmark dialog to edit the text of a bookmark:
1) Open the Bookmarks list in the Navigator, right-click on the name of a bookmark, and
select Edit in the context menu. The Bookmark dialog opens with that bookmark selected.
You can select any bookmark in the list when the dialog is open.
2) With the required bookmark selected, click the Edit Text button. The text of the selected
bookmark is highlighted in the Text column.
3) Click in the highlighted text in the dialog to edit it. Click Close when done.
Tip
In some cases, the same effect can be obtained by hiding a paragraph or character
style; see Chapter 9, Working with Styles.
DocInformation fields
“Using document properties to hold metadata and information that changes” on page 441
described how to set up a custom document property. You can use that document property as the
variable in your condition statement.
Tip
Because the gray mark is so small, you may have trouble finding it again, especially
if you have other fields in the document. You may prefer to leave the variable field
visible while you work, and change it to invisible just before you create final copy.
At any time, you can place the insertion point just before the field and choose Edit >
Fields or right-click the field and choose Fields in the context menu. On the Edit
Fields dialog (Figure 414), select or deselect Invisible.
Conditional text
First, let us set up some conditional text that will insert the words Great Product Lite into the Lite
version and Great Product Pro into the Pro version of the manual. You would use this field
whenever you want to mention the name of the product.
1) Place the cursor where you want one of these phrases to appear. (You can move or
delete it later, if you wish.)
2) On the Functions tab of the Fields dialog, select Conditional text in the Type list.
3) As shown in Figure 410, type ProLite EQ "Lite" in the Condition box, Great
Product Lite in the Then box, and Great Product Pro in the Else box.
4) Click Insert to insert the field, then click Close. You should see Great Product Lite in the
text.
Tip
If you want to insert this field into your text in many places (as you probably would for
a product name), create an AutoText entry for it. See “Using AutoText to insert often-
used fields” on page 444 for instructions.
Hidden text
You might use hidden text for words or short phrases that describe features of Great Product Pro
that are not found in the Lite version. You can reuse the same field in several places in the
document—for example, by copying and pasting it. To create a hidden text field:
1) On the Functions tab of the Fields dialog, select Hidden text in the Type list (Figure 411).
Hidden sections
A conditional section is hidden if the condition is true. To create a conditional section:
1) Select the text that you want to be included in the conditional section. (You can edit this
text later, just as you can edit any other text.)
2) Choose Insert > Section. On the Insert Section dialog (Figure 413), go to the Section
tab, then select Hide and enter the condition in the With Condition box. You can also
give the section a name; this is strongly recommended, so you can find it again easily if
you have several sections in your document.
3) Click Insert to insert the section into your document.
To show a hidden section so you can edit it:
1) Choose Format > Sections.
2) On the Edit Sections dialog, select the section from the list.
3) Deselect Hide and click OK. You can now edit the contents of the section. Afterwards,
you can choose Format > Sections and select Hide to hide the section again.
To make the hidden section a normal part of the document (that is, to remove the section
markers, but not the contents of the section):
1) Show the hidden section, as described above.
2) On the Edit Sections dialog, select the section from the list.
3) Click Remove. The contents of the section are now a normal part of the document.
Note
Conditional text and hidden text can only be edited in the Edit Fields dialog.
Tip
To turn on automatic updating of fields, choose Tools > Options > LibreOffice
Writer > General, and select Fields under Automatically Update.
Chapter 18
Forms
Introduction
This chapter covers the use of interactive forms within Writer documents. A form has sections
that are not to be edited, and other sections that are designed for the reader to make changes.
For example, a questionnaire has an introduction and questions (which do not change) and
spaces for the reader to type answers or select from supplied choices.
Writer provides several ways to enter information into a form, including check boxes, option
buttons, text boxes, pull-down lists, and other items, collectively known as form controls.
LibreOffice forms include a lot of features. Not everything is described in this chapter. Notable
omissions are using forms in HTML documents and writing macros to link to form controls.
LibreOffice Calc, Impress, and Draw also support forms in much the same way that Writer does.
Tip
By using a data source, or setting a form to update over the web, you can gather
data automatically. However, those methods are more complex and are not covered
in this chapter.
Tip
To make a form control square, hold down the Shift key when creating it. To keep
the proportions of an existing control the same, hold down Shift when resizing it.
Option buttons
The Gender option buttons need to be configured to allow only one of the three to be selected.
You can do this in two ways: using individual option buttons as described here, or using a Group
Box (see page 475).
1) Be sure Design Mode is ON and Wizards are OFF.
2) If the Properties dialog is open, click once on the first option button to change the dialog
to Properties: Option Button. If the dialog is not open, double-click the first option button.
In the Properties dialog (Figure 423), on the General tab, type Male in the Label field and
Gender in the Group name field.
3) Repeat for the other two options, using Female and Other, respectively, for the Label and
Gender for the Group name. (Grouping allows only one option to be selected at a time.)
Figure 423: Specifying label and group names for an option button
If the option buttons are too far apart, click on each in turn and drag it to the left or right.
If the option buttons are not lined up neatly, do this:
1) Click the Select button on the Form Controls toolbar and draw a box around the three
option button controls with the mouse to select all of them (Figure 424).
List box
To add the list of choices to the list box, do this:
1) Be sure Design Mode is ON and Wizards are OFF. Double-click the List Box control to
open the control’s Properties dialog (Figure 426). Select the General tab.
2) Scroll down to find the List Entries text input box. Type the names of the shapes (Circle,
Triangle, Square, Pentagon) one at a time. After each, press Shift+Enter, as shown in
Figure 426.
Check boxes
To give the check boxes names:
1) Be sure Design Mode is ON and Wizards are OFF. Double-click the first Check Box
control.
2) In the Properties: Check Box dialog (Figure 428), change the text in the Label field to
Circle and press Enter. The cursor moves to the next line, and the label on the check
box in the document changes immediately.
Group box
As an alternative to creating individual option buttons for Gender (described on page 473), you
can use a Group Box to insert a group of option buttons. Group boxes stack the selections one
under the other (as shown in Figure 432 on page 477); individual buttons can be moved into any
arrangement you prefer (we arranged them horizontally on page 473).
Figure 429: Inserting a Group Box using the Group Element Wizard
Figure 430: Wizard after adding names for the option fields
Finishing touches
The form is complete, but you may wish to make further changes to the document. If you plan to
send this out to other people to complete, you probably want to make the document read-only so
that users would be able to fill in the form but not make any other changes to the document.
To make the document read-only, select File > Properties, select the Security tab and enable
Open file read-only.
Note
If the document is read-only, anyone filling in the form will need to use File > Save
as to save the document.
Tip
To see the list of supported data source types for your operating system, choose File
> New > Database. On the first page of the Database Wizard, select Connect to an
existing database and then open the drop-down list.
For the purpose of this chapter, we assume you have previously created a database or other
data source and registered it for use with Writer. Chapter 14, Mail Merge, describes how to
create and register a database.
Caution
If you created a database in LibreOffice Base and your Primary Key field had
AutoValue set to Yes, that field does not need to be part of the form. If AutoValue
was set to No, you will have to include it and users will need to enter a unique value
into that field whenever they make a new entry—not something that is
recommended.
Note
If a user tries to fill in the form and receives the error “Attempt to insert null into a
non-nullable column”, then the form designer should go back to the database and
confirm that the Primary Key field has the Auto Value set to Yes. This error will
prevent the form user from saving the records.
Chapter 19,
Spreadsheets, Charts, Other
Objects
Introduction: OLE and DDE objects
You can embed or link objects as either OLE (Object Linking and Embedding) or DDE (Dynamic
Data Exchange). Both methods enable you to use information from one application (say, Calc) in
another application (Writer, in this case). The difference between a DDE object and a linked OLE
object is that a linked OLE object can be edited from the document in which it is added as a link,
but a DDE object cannot.
For example, if a Calc spreadsheet is pasted into a Writer document as a DDE object, then the
spreadsheet cannot be edited in the Writer document. But if the original Calc spreadsheet is
updated, the changes are automatically made in the Writer document. If the spreadsheet is
inserted as a Linked OLE object into the Writer document, then the spreadsheet can be edited in
Writer as well as in the Calc document and both documents are in sync with each other.
Both linking and embedding insert information from one document into another document, but the
methods store information differently. They are different from directly copying and pasting
information because you can open and edit objects in the applications that created them.
An embedded OLE object is a copy of information from another document. When you embed
objects, there is no link to the source document and any changes made to the source document
are not reflected in the destination document. Embed objects if you want to be able to use the
application that created them for editing, but you do not want the OLE object to be updated when
you edit information in the source document.
A linked object is a reference to information in another document. Link objects when you want to
use the same information in more than one document. Then, if you change the original
information, you need to update only the links in order to update the document containing the
OLE objects. You can also set links to be updated automatically. When you link an object, you
need to maintain access to the source application and the linked document. If you rename or
move either of them, you may need to reestablish the link.
The following types of files or documents can be inserted into a Writer document as an OLE
object: spreadsheets, charts, drawings, formulas (equations), and presentations.
Note
Computers running Microsoft Windows show an additional option of Further objects
in the Object Type list. This option opens a dialog where you can create an OLE
object using other software that is compatible with OLE and LibreOffice. This option
is available for new OLE objects and for OLE objects from another file.
Figure 442: Paste Special dialog in Writer, with DDE link selected
Spreadsheets
To include a spreadsheet in a Writer document, you can insert either an existing spreadsheet file
or a new spreadsheet as an OLE object, as explained above, or create a DDE (Dynamic Data
Interchange) object.
Resizing
To resize the area occupied by the spreadsheet:
1) Click on the object to show the selection handles in the border.
2) Move the mouse pointer over one of the handles. The pointer changes shape to give a
visual representation of the effects applied to the area.
3) Click and hold the left mouse button and drag the handle. The corner handles move the
two adjacent sides simultaneously, while the handles at the midpoint of the sides modify
one dimension at a time.
Moving
Moving a spreadsheet object to change its position within the document is the same as moving
any other object in Writer:
1) Click on the object to show the selection handles in the border.
2) Move the mouse pointer over the object until the pointer changes shape (normally a hand,
but this depends on your computer setup). Be careful not to double-click the spreadsheet
object and activate object editing mode.
3) Click and drag the object to the desired position. Release the mouse button.
Spreadsheet organization
A spreadsheet consists of pages called sheets. However, in Writer, only one sheet can be shown
at a time when a spreadsheet with multiple sheets is embedded into a Writer document.
Each sheet is organized into cells, which are the elementary units of the spreadsheet. They are
identified by a row number (shown on the left-hand side) and a column letter (shown in the top
row). For example, the top left cell is identified as A1, while the third cell in the second row is C2.
All data elements, whether text, numbers, or formulas, are entered into a cell.
Tip
For more details on these procedures, refer to the Getting Started Guide.
Inserting sheets
1) Right-click a sheet name and select Insert Sheet in the context menu, or go to Sheet >
Insert Sheet on the Menu bar to open the Insert Sheet dialog.
2) Select the sheet position, number of sheets to be inserted, sheet name, or which
spreadsheet file to use from the options available in the Insert Sheet dialog.
3) Click OK to close the dialog and insert the sheet.
Renaming sheets
Right-click the sheet tab and select Rename Sheet in the context menu, or go to Sheet >
Rename Sheet on the Menu bar, to open the Rename Sheet dialog.
Moving and copying sheets
1) Right-click the sheet name and select Move or Copy Sheet in the context menu, or go to
Sheet > Move or Copy Sheet on the Menu bar to open the Move/Copy Sheet dialog.
2) Select whether to move or copy the sheet, the sheet location and position, and a new
sheet name. Click OK to close the dialog and move or copy the sheet.
3) Alternatively, click the sheet tab and drag it to a new position in the embedded
spreadsheet.
Deleting sheets
1) Right-click the sheet tab and select Delete Sheet in the context menu, or go to Sheet >
Delete Sheet on the Menu bar. If the spreadsheet has only one sheet remaining, you
cannot delete that sheet.
2) Click Yes to confirm.
Cell navigation
To move around the spreadsheet to select a cell to make it active, you can:
• Use the keyboard arrow keys.
• Position the cursor in a cell and left-click the mouse.
• Use the Enter key to move one cell down and Shift+Enter to move one cell up.
• Use the Tab key to move one cell to the right and Shift+Tab to move one cell to the left.
Entering data
Data input into a cell can only be done when a cell is active. An active cell is easily identified by a
thickened and bolder border. The cell reference (or coordinates) for the active cell is displayed at
the left-hand end of the Formula bar.
Tip
To force Writer to treat numbers as text (for example, telephone numbers) and to
prevent Writer from removing the leading zeros or right-align them in a cell, type a
single quotation mark (') before entering the number.
Formatting spreadsheets
It may be necessary to change the formatting of a spreadsheet to match the style used in the
document.
When working on an embedded spreadsheet, you can also access any cell styles created in Calc
and use them. However, if you are going to use styles, it is recommended to create specific cell
styles for embedded spreadsheets, as Calc cell styles may be unsuitable when working within
Writer.
Manual formatting
To manually format an embedded spreadsheet:
1) Select a cell or a range of cells. See the Getting Started Guide or the Calc Guide for more
information on selecting ranges of cells.
2) Right-click the selection and go to 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.
3) Use the various dialog pages to format the embedded spreadsheet so that it matches the
style of your document.
4) Click OK to close the dialog and save your changes.
5) If necessary, adjust the column width by hovering the mouse pointer over the line
separating two columns in the header row until the pointer changes to a double-headed
arrow; then click the left button and drag the separating line to the new position.
6) If necessary, adjust the row height by hovering the mouse pointer over the line separating
two rows in the row header until the pointer changes to a double-headed arrow; then click
the left button and drag the separating line to the new position.
Deleting cells
1) Select the cells you want to delete.
2) Go to Sheet > Delete Cells, or press Ctrl+-. Or, right-click on a cell and select Delete in
the context menu.
3) Select the option you require on the Delete Cells dialog.
Inserting a chart
You can add a chart to your document as an OLE object (see page 15) or using the tools in
Writer.
To add a chart using Writer’s tools, choose Insert > Chart on the Menu bar to insert a generic
chart (Figure 443) at the cursor location. The chart is selected and the Menu bar and toolbars
change to those appropriate for charts.
1) Make sure that the chart is selected. The chart has a border and selection handles when
selected.
2) Click the Chart Type icon on the Formatting toolbar or go to Format > Chart Type on the
Menu bar, or right-click the chart and select Chart Type in the context menu to open
Chart Type dialog (Figure 444).
Chart types
The following summary of the chart types available will help you choose a type suitable for your
data. Column, bar, pie, and area charts are available as 2D or 3D types. Examples of these types
are given in detail in the Calc Guide.
Column charts
A column chart shows vertical bars, with the height of each bar proportional to its value.
They usually display data that shows trends over time. It is recommended to use column
charts where you have a relatively small number of data points. If you have a large time
series as your data, it is recommended to use a line chart.
Bar charts
A bar chart is like a column chart that has been shifted 90 degrees. It shows horizontal
bars rather than vertical columns. Bar charts give an immediate visual impact for data
comparison where time is not important, for example comparing the popularity of products
in a marketplace.
Pie charts
A pie chart shows values as sections of a circle. The area of each section is proportional
to its value. Pie charts give a comparison of proportions, for example, when comparing
what different departments spent on different items or what different departments actually
spent overall. They work best with a small range of values, up to about. Using a larger
range of values, the visual impact begins to fade.
Area charts
Area charts are versions of line or column charts. They are useful when you want to
emphasize volume of change. Area charts have a greater visual impact than a line chart,
but use them carefully, because the type of data you use does make a difference to the
visual impact.
Line charts
Line charts give time series with progression. They are ideal for raw data and useful for
charts with data showing trends or changes over time where you want to emphasize
continuity. On line charts, the X-axis is ideal for representing time series data. 3D lines
may confuse the viewer, so just using a thicker line gives a better visual impact.
XY (Scatter) charts
Scatter charts are great for visualizing data that you have not had time to analyze and
may be best for data where you have a constant value for comparison: for example
weather data, reactions under different acidity levels, conditions at altitude, or any data
which matches two numeric series. The X-axis usually plots the independent variable or
control parameter (often a time series).
3) To remove an element from a chart, right-click the chart element you want to remove and
select Delete in the context menu. The type of element selected for removal will change
the delete options in the context menu. Or, select an element in the chart and press the
Del (Delete) key or the Backspace key to remove it from the chart.
Chart formatting
To change the format of a selected chart:
1) Make sure the chart is selected and in edit mode.
2) Go to Format on the Menu bar and select on the submenu an element that you want to
format, or right-click a chart element and select a format option from the context menu.
Selecting an element opens a dialog where you can specify format options for the
element.
The formatting options available depend on whether the whole chart is selected or which chart
element has been selected.
Resizing
To resize a chart interactively:
1) Click a chart to select it. Selection handles appear around the chart.
2) To increase or decrease the height of a chart, click and drag on a selection handle at the
top or bottom of the chart.
3) To increase or decrease the width of a chart, click and drag on a selection handle at the
left or right of the chart.
4) To increase or decrease both the height and width of a chart at the same time, click and
drag on a selection handle in one of the corners. To maintain the correct aspect ratio
between height and width, hold the Shift key down while you click and drag.
Moving
To move a chart interactively:
1) Click the chart to select it. Selection handles appear around the chart.
2) Move the mouse pointer anywhere on the chart other than on a selection handle.
3) When it changes shape, click and drag the chart to its new location.
4) Release the mouse button when the chart is in the desired position.
Chart elements
You can move or resize individual elements of a chart element independently of other chart
elements. For example, you can move the chart legend to a different position. Pie charts allow
individual wedges of the pie to be moved as well as “exploding” the entire pie.
1) Double-click the chart so that it is in edit mode.
2) Click any chart element to select it. Selection handles appear.
3) Move the mouse pointer over the selected element and when the pointer changes shape,
click and drag to move the element.
4) Release the mouse button when the element is in the desired position.
Note
If the chart is 3D, round selection handles appear; these handles control the three-
dimensional angle of the chart. You cannot resize or reposition the chart while the
round selection handles are showing. Shift+click to get back to the square
resizing handles. You can now resize and reposition the 3D chart.
Tip
To see a list of audio and video file types supported by Writer, open the drop-down
list of file types. This list defaults to All audio and video files, so you can also choose
unsupported files such as .mov.
Writer only links media files and does not embed a media file into a document. Therefore if a
document is moved to a different computer, any links will be broken and the media files will not
play. To prevent this from happening:
1) Place any media files that are included in a document in the same folder where the
document is stored.
2) Insert the media file in the document.
3) Send both the document and any media files to the computer which is to be used for the
document and place both files in the same folder on that computer.
Media playback
The Media Playback toolbar is automatically opened when a media file is selected. The default
position of the toolbar is at the bottom of the workspace, just above the Drawing toolbar.
However, this toolbar can be undocked and placed anywhere. If the toolbar does not open, go to
View > Toolbars > Media Playback on the Menu bar.
The Media Playback toolbar contains the following tools:
• Insert Audio or Video – opens the Insert Audio or Video dialog.
• Play, Pause, Stop – controls media playback.
• Repeat – if selected, media will continuously repeat playing until this tool is deselected.
• Position (Playback slider) – selects the position to start playing from within the media
file.
• Timer – displays current position of the media clip and length of media file.
• Mute – when selected, the sound will be suppressed.
Formulas (equations)
For detailed information on how to create formulas, see the Math Guide or the Getting Started
Guide.
To create a formula (equation) in Writer, go to Insert > OLE Object > Formula Object on the
Menu bar. See page 15 for more information.
To easily add numbered formulas in Writer, you can use the AutoText entry fn (for “formula
numbered”):
1) Start a new line in your document.
2) Type fn and then press the F3 key. A two-column table with no borders is inserted into
the document. The left column contains a sample formula and the right column contains a
reference number, as shown below.
E=mc
2 (1)
3) Delete the sample formula and insert your formula as an object in the left column.
4) Alternatively, you can first insert your formula into the document, then carry out Steps 1
and 2 above replacing the sample formula with your formula.
When creating or editing a formula, the Math menu becomes available.
When creating formulas, take care about the font sizes to make sure they are similar in size to
fonts used in the document. To change font attributes of a Math object, double-click in the
formula to enter edit mode and go to Format > Font Size on the Menu bar. To change font type,
use Format > Fonts.
Chapter 20,
Customizing Writer
Introduction
This chapter briefly describes some of the setup options found under Tools > Options on the
Menu bar in Writer. Additional options, and more details about the ones given here, are covered
in the Help and in the Getting Started Guide. Several of the most relevant options are discussed
in other chapters of this book, in the context of tasks where they are most applicable.
This chapter also briefly describes some common customizations that you may wish to do. You
can customize menus, toolbars, and keyboard shortcuts, add new menus and toolbars, and
assign macros to events. Other customizations are made easy by extensions that you can install
from the LibreOffice website or from other providers. You may also choose to activate and use
some experimental features; see page 536.
Tip
Many options are intended for power users and programmers. If you don’t
understand what an option does, it’s usually best to leave it on the default setting
unless instructions in this book recommend changing the setting.
Note
Customizations to menus and toolbars can be saved in a template. To do so, first
save them in a document and then save the document as a template as described in
Chapter 10, Working with Templates. If you work on more than one project, you may
find that having different menus and toolbars can be useful.
Tip
The Reset button (located in the lower part of any page of the Options dialog) resets
the values on that page to the values that were in place when you opened the dialog.
It may be called Revert on some installations.
If you are using a version of LibreOffice other than US English, some field labels may be different
from those shown in the illustrations.
User data
Because Writer can use the name or initials stored in the LibreOffice – User Data page for
several things, including document properties (‘created by’ and ‘last edited by’ information), the
name of the author of comments and changes, and the sender address in mailing lists, you will
want to ensure that the correct information appears here.
Fill in the form, or amend or delete any existing information. If you do not want user data to be
part of the document’s properties, deselect Use data for document properties.
View options
The options on the LibreOffice – View page affect how the document window looks and behaves.
Set them to suit your personal preferences. For details, see the Help or the Getting Started
Guide.
Print options
On the LibreOffice – Print page, set the print options to suit your default printer and your most
common printing method.
In the Warnings section on the right side of the page, you can choose whether to be warned if the
paper size or orientation specified in your document does not match the paper size or orientation
available for your printer. Having these warnings turned on can be quite helpful, particularly if you
work with documents produced by people in other countries where the standard paper size is
different from yours.
Tip
If your printouts are incorrectly placed on the page or chopped off at the top, bottom,
or sides, or the printer is refusing to print, a likely cause is page size incompatibility.
Paths options
On the LibreOffice – Paths page, you can change the location of files associated with, or used by,
LibreOffice to suit your needs. For example, you might want to store documents by default
somewhere other than My Documents, or you might want to store project templates in folders not
in the supplied template paths. Multiple paths are possible, so you can add locations. For more
information, see the Getting Started Guide,
Tip
Liberation fonts (Serif, Sans, and Mono) are often good choices to substitute for
Times, Arial, and Courier.
Note
The choices made here do not affect the default fonts in your documents. To do that,
see “Basic Fonts options” on page 517. To change more than the basic fonts, you
need to create a new default template for Writer documents; see Chapter 10,
Working with Templates.
Security options
Use the LibreOffice – Security page to choose security options for saving documents and for
opening documents that contain macros. For information on the options not mentioned here,
refer to the Help or the Getting Started Guide.
Security Options and Warnings
If you record changes, save multiple versions, or include hidden information or notes in
your documents, and you do not want some recipients to see that information, you can
set warnings to remind you to remove it, or you can have LibreOffice remove some of it
automatically. Note that unless the information is removed, much of it is retained even
when the file has been saved to other formats, including PDF.
Click the Options button to open a separate dialog with several options, including:
Remove personal information on saving
Select this option to always remove user data from the file properties when saving the file.
To save personal information with documents and still be able to manually remove
personal information only from specific documents, do not select this option.
Ctrl-click required to open hyperlinks
The default behavior in LibreOffice is that using Ctrl+click a hyperlink opens the linked
document or website. This is because many people find writing and editing documents
easier when accidental clicks on links do not activate the links. To set LibreOffice to
activate hyperlinks using just an ordinary click, do not select this option.
Application colors
Writing, editing, and (especially) page layout are often easier when you can see the page
margins (text boundaries), the boundaries of tables and sections, grid lines, and other features.
In addition, you might prefer to use colors that are different from LibreOffice’s defaults.
On the LibreOffice – Application colors page (Figure 451), you can specify which user interface
elements are visible and the colors used to display them.
• To show or hide items such as text boundaries, select or deselect the boxes in the On
column next to the names of the elements.
• To change the default colors for a specific element, click the down-arrow in the Color
setting column by the name of the element and select a color from the drop-down list.
Note
To change the color settings used in Track Changes mode, go to Tools > Options >
LibreOffice Writer > Changes.
General
Most of the choices on the Load/Save – General page (Figure 452) are familiar to users of other
office suites. Some items of interest are described below.
Load user-specific settings with the document
When a LibreOffice document is saved, certain settings from the user's system are saved
with it. When the document is opened on another user’s system, it will use the settings
saved from the previous user’s system. Deselecting this option causes the current user’s
settings to override the settings previously saved with the document.
Even if you deselect this option, some settings are always loaded with the document:
– Settings available 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.
– Settings for any data sources linked to a document.
Tip
Authors whose work may be very lengthy should always consider enabling
LibreOffice to create an automatic backup copy.
VBA Properties
On the VBA Properties page, you can choose whether to keep any macros in Microsoft Office
documents that are opened in LibreOffice. For details, see the Getting Started Guide.
Microsoft Office
On the Load/Save – Microsoft Office page, you can choose what to do when importing and
exporting Microsoft Office OLE objects (linked or embedded objects or documents such as
equations or spreadsheets): convert them into or from the corresponding LibreOffice OLE object
or load and save them in their original format. For details, see the Getting Started Guide.
HTML compatibility
Choices made on the Load/Save – HTML Compatibility page affect HTML pages imported into
LibreOffice and those exported from LibreOffice. For more information, see the Help and the
Getting Started Guide.
General options
The choices on the LibreOffice Writer – General page (Figure 453) affect the updating of links
and fields, the units used for rulers and other measurements, and the default tab stop positions.
Automatically Update [Fields and Charts]
You may not want fields or charts to update automatically while you are working, because
that slows down performance. Alternatively, you may want automatic updates if you are
referring to information in the fields or charts.
Update Links when Loading
Depending on your work patterns, you may not want links to be updated when you load a
document. For example, if your file links to other files on a network, you won’t want those
links to try to update when you are not connected to the network.
Settings
Measurement unit
Document designers recommend using points as the default measurement because you
can easily relate things like font size to things like indents and tabs.
Tab stops
The Tab stops setting specifies the distance the cursor travels for each press of the Tab
key. This setting is also used for the indent distance applied by the Increase Indent and
Decrease Indent buttons on the Formatting Toolbar, which affect the indentation of entire
paragraphs.
Tip
To avoid unwanted changes, do not rely on default tab settings. Rather, define your
own tabs in paragraph styles or individual paragraphs (see Chapter 4, Formatting
Text).
Word Count
Additional separators
For counting words, specifies the characters that are considered to separate words, in
addition to spaces, tabs, line breaks, and paragraph breaks.
Show standardized page count
Editors and publishers often define a “standard” page as containing a specified number of
characters or words; this field allows quick calculation of the number of these pages.
View options
Two pages of options set the defaults for viewing Writer documents: View (described here) and
Formatting Aids (described on page 516). View is a good page to check if, for example, you
cannot see graphics on the screen.
Note
The direct cursor feature can lead to many formatting oddities and is incompatible
with rigorous use of styles.
Image – Anchor
You can choose the default anchor for newly added images: To Paragraph, To Character,
or As Character. For more about anchoring images, see Chapter 11, Images and
Graphics.
Grid options
Snap to grid automatically moves an object to the nearest gridlines. This can be very helpful
when you are trying to align several objects such as graphics or tables.
Print options
On the LibreOffice Writer – Print page, you can choose which items are printed with a Writer
document by default. These options are in addition to the general options for all LibreOffice
components on the LibreOffice – Print page (see page 509).
Some considerations:
• When you are working on drafts and you want to save printer ink or toner, you might want
to deselect some of the items in the Contents section.
• The Print text in black option causes color text (but not graphics) to print as black on a
color printer; on a black-and-white printer, this option causes color text to print as solid
black instead of shades of gray (dithered).
Tip
You can override any of these defaults when printing a specific document. Click File
> Print, then use the options on the various pages of the Print dialog.
Table options
On the LibreOffice Writer – Table page (Figure 459), you can specify the default behavior of
tables. See the Help or Chapter 13, Tables, for more information.
Some considerations:
• If most of your tables will require borders or headings, you may wish to select those
options. If most of your tables are used for page layout, deselect Border and Heading.
• Select Do not split to prevent tables from being split across pages.
• Number recognition can be very useful if most of your tables contain numerical data.
Writer will recognize dates or currency, for example, and format the numbers
appropriately. However, if you want the numbers to remain as ordinary text, this feature
can be quite irritating, so you may want to deselect it.
• The Keyboard Handling section specifies the distances that cells move when you use
keyboard shortcuts to move them and the size of rows and columns inserted using
keyboard shortcuts. If you don’t use keyboard shortcuts for this purpose, you can ignore
these settings. See the Help for more information.
• The Behavior of rows/columns section specifies the effects that changes to rows or
columns have on adjacent rows or columns and the entire table. You might need to test
these selections to fully understand the effects.
Changes options
If you plan to use the change-tracking feature of Writer (described in Chapter 3, Working with
Text: Advanced), use the LibreOffice Writer – Changes page (Figure 460) to choose the way
changes to text and formatting are marked. Change bars can show where a change has been
made to a line of text and are formatted under Lines Changed.
Compatibility options
The settings on the LibreOffice Writer – Compatibility page (Figure 462) are used mainly when
importing documents from Microsoft Word. If you are not sure about the effects of these settings,
leave them as the defaults provided by LibreOffice. For information about settings that are not
described below, see the Help. All settings selected will apply only to the current document,
unless you select the Use as Default button at the bottom (not shown in the figure).
AutoCaption options
LibreOffice can automatically insert captions for tables, pictures, frames, and OLE objects in a
Writer document. To set this up, use the options on the LibreOffice Writer > AutoCaption page.
Select the object you want to be automatically captioned (LibreOffice Writer Table in Figure 463).
With the item highlighted, specify the characteristics of the caption.
The categories supplied for captions are Drawing, Illustration, Table, and Text. To use another
name (for example, Figure) for the caption label, type the required term in the Category box.
Note
You may not want captions for every table, for example if you use tables for layout as
well as for tables of data. You can always add captions to individual tables, graphics,
or other objects (right-click > Insert Caption).
Figure 464: Specifying settings for use when emailing mail-merged form letters
Figure 466: Choosing languages, dictionaries, and options for checking spelling
Some considerations:
• If you want spelling checked while you type, you must select Check spelling as you
type. (You can over-ride this setting in a document using Tools > Automatic Spell
Checking on the Menu bar or the Toggle Automatic Spell Checking icon on the
Standard toolbar.)
• If you want grammar to be checked as you type, you must have Check spelling as you
type enabled too.
• If you use a custom dictionary that includes words in all uppercase and words with
numbers (for example, AS/400), select Check uppercase words and Check words
with numbers.
• Check special regions means that text in headers, footers, frames, and tables are also
checked when checking spelling.
Here you can also select which of the user-defined (custom) dictionaries are active, add a new
custom dictionary, edit dictionaries, and delete custom dictionaries. Dictionaries installed by the
system cannot be deleted. For details on using the Available Language Modules and User-
defined Dictionaries sections, please see the Help.
Tip
When checking spelling, words marked “Add to Dictionary” are added by default to
the standard dictionary. Words marked “Ignore All” are added to the List of Ignored
Words dictionary. See Chapter 2, Working with Text: Basics.
Sentence checking
LibreOffice can check sentences in many languages. These checkers are enabled by default if
the language is the computer’s default language, and others can be added using the Extension
Manager (see page 533). The set of rules available for the sentence checkers depends on the
language.
On the Language Settings > English Sentence Checking page, you can choose which items are
checked for, reported to you, or converted automatically. This menu is also found in the English
dictionaries extension installed by default by LibreOffice (select Tools > Extension Manager,
select English spelling dictionaries and click the Options button to reveal the menu). Select
which of the optional features you wish to check. These are described in Chapter 2, Working with
Text: Basics.
After selecting the additional grammar checks, you must restart LibreOffice, or reload the
document, for them to take effect.
Customizing menus
You can add to and rearrange menus on the Menu bar, add commands to menus, and make
other changes. You can also modify context (right-click) menus in a similar way.
To customize a menu, choose Tools > Customize. On the Customize dialog, go to the Menus
tab (Figure 467) or the Context Menus tab.
Customizing toolbars
You can customize toolbars in several ways, including choosing which icons are visible and
locking the position of a docked toolbar (as described in Chapter 1, Introducing Writer), and
adding or deleting icons (commands) in the list of those available on a toolbar. You can also
create new toolbars.
Note
Shortcut keys that are grayed-out in the listing on the Customize dialog, such as F1
and F10, are not available for reassignment.
Installing extensions
To install an extension that is listed in the repository, follow these steps:
1) In LibreOffice, select Tools > Extension Manager on the Menu bar.
2) In the Extension Manager dialog (Figure 476), click Get more extensions online.
3) An internet browser window opens. Find and select the extension you want to install and
download it to your computer.
4) After the extension is downloaded and saved, return to the Extension Manager dialog and
click Add. Find and select the extension you want to install and click Open. The
extension begins installing. You may be asked to accept a license agreement.
5) When the installation is complete, the extension is listed in the Extension Manager dialog.
To install an extension that is not listed in the repository, download the extension, then continue
with step 3 above.
Updating extensions
Click the Check for Updates button on the Extension Manager dialog to check for updates to
installed extensions.
Adding fonts
LibreOffice supports PostScript (.pfb), TrueType (.ttf), and OpenType (.otf) font file formats. Other
font formats exist, and may be supported by your operating system, but these formats may be
limited in selection and quality.
If you have administration privileges, you can install additional fonts through your operating
system; they will then be available for use by LibreOffice and will appear in Writer’s font lists.
Chapter 21,
User Interface Variants
Introduction
By default, LibreOffice Writer’s commands are grouped in cascading menus and in toolbars filled
with icons—the standard user interface described in Chapter 1. These menus and toolbars are
described in the chapters that discuss the related tasks and functions.
In addition, Writer provides other user interface variants, displaying contextual groups of
commands and contents. This chapter describes these user interface variants and provides a
quick reference to the location of the tools and functions when using each of the variants.
Standard interfaces
Three of the user interface choices in Figure 479 are described in Chapter 1, Introducing Writer.
Standard Toolbar
Classic mode with two visible toolbars: standard and formatting. The sidebar shows only
its tabs.
Single Toolbar
Only one toolbar with frequently used features. The sidebar shows only its Hide button.
Sidebar
The sidebar is fully opened and only one toolbar (Formatting) is showing.
Tabbed interface
The Tabbed interface (Figure 480) provides a familiar interface for users coming from proprietary
office suites such as Microsoft Office. It includes a Menu bar, an Icon bar, a Tab bar, icons for the
active tab, one or more tab-specific menus, and a Quick Menu. On Windows and Linux, the
Menu bar can be hidden or displayed by clicking on the Menu Bar icon in the Icon bar (Figure
482).
1 Icon bar 2 Active tab 3 Icons on active tab 4 Tabs 5 Tab menus 6 Quick menu
Figure 480: Tabbed Interface with Menu bar hidden
In Writer, this user interface variant includes nine fixed tabs and five additional tabs. Each tab
displays a set of icons grouped by context. The context can change depending on the location of
the cursor or the item selected. Each tab also includes one or more tab-specific drop-down
menus at the right-hand end. The Quick Menu is the same for all tabs.
The Tabbed interface can be customized using the Notebookbar tab of the Customize dialog to
show and hide the individual icons on the various tabs. See Chapter 20, Customizing Writer, for
more information.
If the icons on a tab do not fit into the width of the Writer window, >> appears at the end of the
row. Click it to display the other commands (Figure 481).
Icon bar
The icon bar (Figure 482) is located at the top left of the tabs.
Fixed tabs
The fixed tabs in Writer are File, Home, Insert, Layout, References, Review, View, Extension,
and Tools. The tabs are described on the following pages. The illustrations show the left and
right ends of the tabs separately so they are large enough to more easily see the commands.
File tab
The File tab (Figure 484) includes commands to create new documents; open, save, print, and
close documents; manage templates; export to PDF and EPUB; display document properties;
add a digital signature; and sign an existing PDF.
Home tab
The Home tab (Figure 486) includes commands to cut, copy, paste, and format text; insert
common items (image, table, special characters, and page break); apply, update, and edit styles;
and others.
Insert tab
The Insert tab (Figure 488) includes commands to insert many commonly used items.
Layout tab
The Layout tab (Figure 490) provides commands for working on page layout.
References tab
The References tab (Figure 492) provides commands for working with tables of contents,
indexes, footnotes and endnotes, cross-references, bibliographies, and fields.
The References menu (Figure 493) provides many of the same commands.
The View menu (Figure 497) provides many of the same commands.
Extension tab
The Extension tab (Figure 498) contains only the menu for accessing the Extension Manager.
Additional tabs
Additional tabs appear when an item is selected; they are displayed between the View and
Extension tabs. The additional tabs in Writer are Draw, Image, Media, Object, and Table.
Draw tab
The Draw tab (Figure 501) is displayed when a drawing object is selected. It provides commands
for captioning and modifying the drawing object and for inserting and modifying Fontwork objects.
The Draw menu (Figure 502) provides a subset of commands, which vary depending on the
drawing object.
Image tab
The Image tab (Figure 503) provides commands for working with images, including captions,
cropping, borders and area styles and colors, anchors, wrapping, positioning, and filtering.
Media tab
The Media tab (Figure 505) provides commands for positioning and running an audio or video
file.
The Object menu (Figure 508) provides a few of the same commands. The illustration shows the
menu when a frame is selected.
Table tab
The Table tab (Figure 509) is opened when the cursor is in a table.