SelfPubBookR1 Ebook 1
SelfPubBookR1 Ebook 1
using
OpenOffice.org 3 Writer
How to use free software to write,
design, and create PDFs for
print-on-demand books
Published by:
Friends of OpenDocument Inc.
PO Box 640
Airlie Beach, Qld 4802
Australia
This book was created using free software: OpenOffice.org Writer 3.1
(word processing and page layout) and the Gimp 2.6.6 (image editing).
Both programs are available for Windows, Linux, and Mac OS X.
ISBN 978-1-921320-07-1
Part 1:
Essentials.........................................................................1
1 Introduction to Writer.................................................3
The Writer workspace.............................................................3
Toolbars..............................................................................4
Context-sensitive toolbars..................................................4
Displaying and hiding toolbars...........................................5
Moving toolbars..................................................................5
Customizing toolbars..........................................................5
Docked and floating windows.................................................6
Right-click (context) menus....................................................6
Status bar...............................................................................6
Changing document views......................................................9
Using the Navigator................................................................9
Move quickly through a document...................................11
Use the Navigation toolbar...............................................11
Set reminders...................................................................12
Creating a new document.....................................................13
Create a document from a template.................................13
Saving a document................................................................14
Saving as a Microsoft Word document.............................14
Combining several documents into a book...........................15
2 Set Up Writer..............................................................17
Choosing options for all of OpenOffice.org...........................17
User data..........................................................................18
General options................................................................18
View options.....................................................................19
Print options.....................................................................20
Appearance options..........................................................21
Choosing Load and Save options..........................................22
iv
Free eBook Edition
Numbering pages..................................................................63
Restart page numbering...................................................63
Applying page styles.............................................................64
Apply a sequence of page styles.......................................64
Change a sequence manually...........................................64
Add a title page to an existing book.................................65
Add a copyright page to an existing book........................66
10 Indexes in Writer......................................................121
Adding index entries...........................................................121
Building an alphabetic index quickly..................................123
Customizing index entries..................................................123
Example of using an index key.......................................124
Customizing an index..........................................................125
vi
Free eBook Edition
Index/Table tab...............................................................125
Entries tab......................................................................127
Columns tab....................................................................128
Styles tab........................................................................129
Maintaining an index..........................................................129
View and edit existing index entries...............................130
14 Customize Writer.....................................................157
Customizing menus and toolbars.......................................157
Assigning shortcut keys......................................................157
Index........................................................................165
About the author......................................................171
viii
Free eBook Edition
Preface
Acknowledgments
Material in this book is generally based on Getting Started with
OpenOffice.org and OpenOffice.org 3 Writer Guide. These books
were produced by a team of volunteers known as OOoAuthors.
Copies are available as free PDFs on the OpenOffice.org
Documentation Project’s website, in low-cost printed editions
published by Friends of OpenDocument Inc., and on the
OpenOffice.org Documentation wiki. Here are the website
addresses:
http://documentation.openoffice.org/
http://www.lulu.com/opendocument/
http://wiki.services.openoffice.org/wiki/Documentation/
OOo3_User_Guides
x
Free eBook Edition
Part 1:
Essentials
The first seven chapters of this book cover topics that every
self-publisher needs to know about using OpenOffice.org for
writing and desktop publishing of books.
1 Introduction to Writer
2 Set Up Writer
3 Write and Edit in Writer
4 Design your Book using Writer’s Styles
5 Format Pages in Writer
6 Format Text in Writer
7 Create PDFs using Writer
Context-sensitive toolbars
Writer has several other toolbars that normally appear only
when the context requires them. For example, when the cursor
is in a table, the Table toolbar appears. When the cursor is in a
list, the Bullets and Numbering toolbar appears. These toolbars
are normally floating, but you can dock them.
4
Free eBook Edition Chapter 1 Introduction to Writer
Displaying and hiding toolbars
To display or hide toolbars, choose View > Toolbars, then click
on the name of a toolbar in the list. An active toolbar has a
checkmark next to its name.
Moving toolbars
To move a docked toolbar, click on its handle and drag it to the
new location. To move a floating toolbar, click on its title bar and
drag it to the new location. Floating toolbars dragged to a
docking location change into docked toolbars.
Customizing toolbars
You can choose which icons are visible on a toolbar. You can also
add icons and create new toolbars, as described in Chapter 14.
To customize a toolbar, click the down-arrow at the end of
the toolbar (or on the title bar of a floating toolbar). A menu
drops down.
Status bar
The Writer status bar provides both information about the
document and convenient ways to quickly change some
document features. From left to right, the fields are as follows.
6
Free eBook Edition Chapter 1 Introduction to Writer
Page number
Shows the current page number, the sequence number of the
current page (if different), and the total number of pages in the
document. If you restarted page numbering at 1 on the third
page, then its page number is 1 but the sequence number of that
page is 3.
If any bookmarks have been defined in the document, a right-
click on this field pops up a list. Click on the required bookmark.
To jump to a specific page in the document, double-click on
this field. The Navigator opens (see page 9). On the Navigator,
click in the Page Number field and type the sequence number of
the required page. After a brief delay, the display jumps to that
page.
Page style
Shows the style of the selected page. To change the page style,
right-click on this field. A list of page styles pops up; choose a
different style by clicking on it. To edit the current page style,
double-click on this field; the Page Style dialog opens.
Language
Shows the language for the selected text. Click to open a menu
where you can choose another language for the selected text or
for the paragraph where the cursor is located. You can also
choose None (Do not check spelling). Choose More to open
the Character dialog.
Insert mode
Click to toggle between Insert and Overwrite modes.
Selection mode
Click to toggle between STD (Standard), EXT (Extend), ADD
(Add) and BLK (Block) selection. EXT is an alternative to
Shift+click when selecting text. See the Writer Guide for more
information about these modes. Normally you would use STD.
Unsaved changes
An asterisk (*) appears here if changes to the document have
not been saved.
Digital signature
An icon appears here if the document has been digitally signed.
Double-click the icon to view the certificate.
View layout
Choose an icon to change between single page, side-by-side, and
book layout views (see next page). You can edit the document in
any view. (New in OpenOffice.org 3.)
Zoom
To change the view magnification, drag the Zoom slider or click
on the + and – signs or right-click on the percent field to pop up
a list of choices. (New in OpenOffice.org 3.)
8
Free eBook Edition Chapter 1 Introduction to Writer
You can also double-click on the percent field to open the Zoom
and View Layout dialog.
Using the
Navigator
In addition to the Page
Number field on the status
bar (described on page 6),
Writer provides other ways to
move quickly through a
document. The many features
of the Navigator, the
Navigation toolbar, and
related icons help you find
specific items in a document.
The Navigator lists all of
the headings, tables, text
frames, graphics, bookmarks,
and other objects contained
in a document.
To open the Navigator,
click its icon on the Standard toolbar, or press F5, or
choose Edit > Navigator on the menu bar, or double-click on
the Page number field on the status bar. You can either dock the
10
Free eBook Edition Chapter 1 Introduction to Writer
Move quickly through a document
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.
• When a category is showing the list of objects in it,
double-click on an object to jump directly to that object’s
location in the document.
To see the content in only one category, highlight that
category and click the Content 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 Navigation toolbar. (See below
for details.)
Tip
Objects are much easier to find if you have given them names
when creating them, instead of keeping Writer’s default
names of graphics1, graphics2, Table1, Table2, and so on.
These default names may not correspond to the position of
the object in the final document.
The Navigation toolbar shows icons for all of the object types
shown in the Navigator, plus some extras (for example, the
results of a Find command).
Click an icon to select that object type. Now all the Previous
and Next icons (in the Navigator itself, in the Navigation toolbar,
and on the scroll bar) will jump to the next object of the selected
type. This is particularly helpful for finding items like bookmarks
and index entries, which can be difficult to see in the text. The
names of the icons (shown in the tooltips) change to match the
selected category; for example, Next Graphic or Next Bookmark.
Set reminders
A little-known and very useful feature of Writer is reminders.
Reminders let you mark places in your document that you want
to return to later on, to add or correct information, make some
other change, or simply mark where you finished editing. The
possible uses of reminders are limited only by your imagination.
To set a reminder at the cursor’s location, click on the
Reminder icon (a paperclip) in the Navigator. You can set
up to 5 reminders in a document (setting a sixth causes the first
to be deleted).
Reminders are not highlighted in any way in the document,
so you cannot see where they are, except when you jump from
one to the next—the location of the cursor then shows the
location of the reminder.
To jump between reminders, first select the Reminder icon
on the Navigation toolbar. Then click the Previous and Next
icons.
12
Free eBook Edition Chapter 1 Introduction to Writer
Creating a new document
To create a new, blank document in Writer:
• When OpenOffice.org is open but no document is open,
click the Text Document icon on the Welcome screen, or
click the Templates icon to start a new document using a
template.
• When a document is already open in Writer:
– Press the Control+N keys, or
– Use File > New > Text Document, or
– Click the New button on the main toolbar.
The new document opens in a new Writer window.
14
Free eBook Edition Chapter 1 Introduction to Writer
Combining several documents into a book
One way to build your book is to save each chapter or section in
a separate document. Reviewers or editors can then deal with
individual chapters while you work on others.
When the book is complete, you need to combine all the
chapters and other material (title page, copyright page, and so
on) into one file before final formatting, creating a table of
contents, and producing a PDF for printing.
To combine files:
1 Open the first file. Ensure that end-of-paragraph marks
are visible.
2 Go to the last page of the document. If there is no blank
paragraph at the end, press Enter at the end of the last
paragraph to create a blank paragraph.
3 With the cursor in the blank paragraph, choose Insert >
File from the menu bar.
4 Select the second document and click Insert.
5 Wait a few seconds for the file to open and paginate, then
repeat steps 2 through 4 for the third and subsequent
documents until all have been included. Save the book
under another file name.
6 Proceed with final formatting (see Chapter 5).
Note
The Back button (not shown above) resets the options to the
values that were in place when you opened OpenOffice.org.
This button has the same behavior on all the Options pages.
General options
Some of the options on the General page are described below.
Help – Tips
When Tips is active, one or two words appear when you
hover the mouse pointer over an icon or field.
Help Agent
To turn off the Help Agent (similar to Microsoft’s Office
Assistant), deselect this option. To restore the default
behavior, click Reset Help Agent.
18
Free eBook Edition Chapter 2 Set Up Writer
Document status
If this option is selected, then the next time you close the
document after printing, the print date is recorded in the
document properties as a change and you will be prompted
to save the document again, even if you did not make any
other changes.
View options
The View choices control how the document window looks and
behaves. Some of the options are described below.
Print options
Set print options for the default printer and most common
printing method. Change these settings at any time by using this
page or by clicking the Options button on the Print dialog
during the printing process.
20
Free eBook Edition Chapter 2 Set Up Writer
Tip
If your printouts are coming out incorrectly placed on the
page or chopped off at the top, bottom, or sides, or if the
printer is refusing to print, the most likely cause is page size
incompatibility. See also “Print options for Writer” on page
26.
Appearance options
Writing, editing, and (especially) page layout are 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 colors that are different from the defaults of
OpenOffice.org for such items as note indicators and field
shadings.
• To show or hide things such as text boundaries, select or
deselect them.
• To change the colors of these items, click the down-arrow
in the Color setting column and select a color from the
drop-down list.
• To save your color changes as a color scheme, type a
name in the Scheme box and click Save.
22
Free eBook Edition Chapter 2 Set Up Writer
Save AutoRecovery information every __ Minutes
Choose whether to enable AutoRecovery and how often to
save the information used by the AutoRecovery process.
AutoRecovery overwrites the original file. If you also choose
Always create a backup copy, the original file then
overwrites the backup copy. Recovering your document after
a system crash will be easier, but recovering an earlier
version of the document may be harder.
Note
Although Writer can open files in the .docx format produced
by Word 2007, versions up to 3.1.1 cannot save in .docx
format. This ability will be included in releases starting with
3.2 (November 2009).
Tip
To change the measurement unit of the ruler itself, right-
click on the ruler, then select the desired unit from the pop-
up list. This change does not change the measurement unit
chosen under Tools > Options.
View options
Set the defaults for viewing Writer documents on the two pages
called View and Formatting Aids.
View is a good page to check when you cannot see expected
graphics or when you see field codes instead of text or numbers.
24
Free eBook Edition Chapter 2 Set Up Writer
Formatting Aids options
Symbols for tabs and for paragraph ends help you when writing,
editing, and doing page layout. You might want to know if any
tabs or blank paragraphs are present or if any tables or graphics
extend into the margins.
Note
Direct cursor lets you place text, images, tables, frames, and
other objects in any blank area on the page. Writer inserts
blank paragraphs and tabs to position the text or objects.
Avoid this feature. It is incompatible with the correct use of
styles and leads to formatting oddities.
Some considerations:
• When you are working on drafts and you want to save
printer ink or toner, deselect some of the items in the
Contents section.
26
Free eBook Edition Chapter 2 Set Up Writer
• The Print black selection causes colored text (but not
graphics) to print as solid black on both color and black-
and-white printers. (On most black-and-white printers,
colored text and graphics print as grayscale.)
Contrast this setting with Convert colors to grayscale
on the OpenOffice.org – Print page (page 20), which
causes both colored text and graphics to print as
greybeard on color printers.
• If you are printing double-sided on a non-duplexing
printer, print only the left or the right pages, then turn the
stack over and print the other half.
• Depending on how your printer ejects pages (face up or
face down), you might need to print the pages in reverse
order so that they stack in the correct order as they are
printed.
Tip
You can override any of these defaults when printing a
document. Click File > Print, then click the Options button
on the Print dialog. The Printer Options dialog that appears
is similar to the one shown above.
Table options
Use this page to specify the default behavior of tables.
• If most of your tables will require borders or headings,
select those options. Otherwise, deselect borders and
headings here, and add them as needed to individual
tables.
• Number recognition can be very useful if most of your
tables contain numerical data. Writer recognizes dates or
currency, for example, and formats the numbers
appropriately. However, if you want the numbers to
remain as ordinary text, deselect this option.
28
Free eBook Edition Chapter 2 Set Up Writer
If you want the language (dictionary) setting to apply to the
current document only, instead of being the default for all new
documents, select For the current document only.
Here you can also select the options to enable support for
Asian languages (Chinese, Japanese, Korean) and support for
CTL (complex text layout) languages such as Hindi, Thai,
Hebrew, and Arabic. If you choose either of these options, the
next time you open this dialog, you will see some extra choices
under Language Settings. These choices (Searching in Japanese,
Asian Layout, and Complex Text Layout) are not discussed here.
Note
OpenOffice.org does not have a grammar checker, but you
can install a grammar checker extension such as Language
Tool and access that tool from Tools > Spelling and
Grammar. See Chapter 14 for more about installing
extensions. Page 37 describes the Language Tool extension.
30
Free eBook Edition Chapter 2 Set Up Writer
3 Write and Edit in Writer
General recommendations
Write and edit before formatting
Write, edit, and assemble materials, and then use Writer to
format your book. Do not format as you write.
Concentrate on the content when you are in the writing and
editing stage. Concerns about formatting in this stage will just
distract you.
Certainly, apply paragraph styles to headings and other
elements as you go, but don’t worry about other layout issues
such as spacing, page breaks, font choices, placement of
graphics, and so on.
If you need to share drafts with a user of Microsoft Word, you
can save drafts in Word and receive edits in Word, without being
concerned about possible formatting incompatibilities.
Tip
If your paragraphs suddenly jump from one place to another,
the most likely reason is that you have accidentally pressed
one of these key combinations.
32
Free eBook Edition Chapter 3 Write and Edit in Writer
Finding and replacing text and formatting
Using Writer’s Find and Replace feature, you can search for and
replace:
• Words and phrases
• Specific formatting (such as bold or italic)
• Paragraph styles
• End-of-paragraph and line break marks
To display the Find & Replace dialog, use the keyboard
shortcut Control+F or select Edit > Find & Replace.
1 Type the text you want to find in the Search for box.
2 To replace the text with different text, type the new text
in the Replace with box.
3 You can select various options, such as matching the
case, matching whole words only, or doing a search for
similar words. (See the next section for some other
choices.)
Caution
Use Replace All with caution; otherwise, you may end up
with some highly embarrassing mistakes that might require a
manual, word-by-word search to fix.
34
Free eBook Edition Chapter 3 Write and Edit in Writer
Tip
Unless you plan to search for other text using the same
attributes, click No Format to remove the attributes after
completing your search. If you forget to do this, you may
wonder why your next search fails to find words you know
are in the document.
Tip
When searching, Writer uses $ for the end-of-paragraph
mark and \n for a line break. For a replacement character,
use \n for the end-of-paragraph mark.
36
Free eBook Edition Chapter 3 Write and Edit in Writer
Here are some more features of the spelling checker:
• Right-click on a word with a wavy red underline to open a
powerful context menu. You can select from the suggested
words on the menu.
• You can change the dictionary language (for example,
Spanish, French, or German) on the Spelling and
Grammar dialog.
• To add a word to a dictionary, click Add in the Spelling
and Grammar dialog and pick the dictionary to add it to.
• Click the Options button on the Spelling and Grammar
dialog to open a dialog similar to the one in Tools >
Options > Language Settings > Writing Aids, that was
described in Chapter 2.
For selection
Applies the selected language to the selected text (the
selection can be as short as a few characters or as long as
several paragraphs).
For paragraph
Applies the selected language to the paragraph where the
cursor is located.
38
Free eBook Edition Chapter 3 Write and Edit in Writer
Unlike the menu tool that applies to the individual document,
a change in the default language from the Options dialog is a
general change of settings of OpenOffice.org 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.
The spelling checker works only for those languages in the
list that show the symbol . If you do not see this symbol next
to your preferred language, you can install the dictionary using
Tools > Languages > More dictionaries online.
The language used for checking spelling is also shown in the
status bar, next to the current page style (see page 7).
Note
If the selected language does not have a thesaurus installed,
this feature is disabled.
AutoCorrect
Writer’s AutoCorrect function automatically corrects a long list
of common misspellings and typing errors. For example, hte will
be changed to the.
Select Tools > AutoCorrect Options to open the
AutoCorrect dialog. There you can define what specific strings
of text will be corrected. In most cases, the defaults are fine.
40
Free eBook Edition Chapter 3 Write and Edit in Writer
To stop Writer from replacing a specific spelling, go to the
Replace tab, highlight the word pair, and click Delete.
To add a new spelling to the list, type it into the Replace and
With boxes on the Replace tab, and click New.
AutoCorrect can also be used as a quick way to insert special
characters. For example, (c) will be autocorrected to ©. You can
add your own special characters.
Word completion
If Word Completion is enabled, Writer tries to guess which word
you are typing and offers to complete this word for you. To
accept the suggestion, press Enter. Otherwise, continue typing.
AutoText
You can assign text, tables, graphics, and other items to an
AutoText shortcut key combination. Then, to insert the AutoText,
type the shortcut and press F3.
For example, rather than typing Senior Management, you
can save those words as AutoText with the shortcut sm, then
simply type sm and press F3 to insert the words into your
document. Similarly, you can save a formatted table as AutoText
with the name tip and then insert a copy by typing tip and
pressing F3.
To assign some text to an AutoText shortcut:
1 Type the text into your document.
2 Select the text.
3 Go to Edit > AutoText (or press Control+F3).
4 Enter a name for your shortcut. Writer will suggest a one-
letter shortcut, which you can change.
5 Click the AutoText button on the right of the AutoText
dialog and select New (text only) from the menu.
6 Click Close to return to your document.
Tip
If the only option under the AutoText button is Import,
either you have not entered a name for your AutoText or
there is no text selected in the document.
42
Free eBook Edition Chapter 3 Write and Edit in Writer
Including document information
Sometimes you may want to put information such as the file
name, the date the document was last edited, or the word count
somewhere in the text or in a header or footer.
Some information fields can be inserted directly from the
Insert > Fields submenu.
44
Free eBook Edition Chapter 3 Write and Edit in Writer
4 Design your Book using
Writer’s Styles
This chapter describes how to plan and set up the design of your
book, using Writer’s styles.
The steps in designing a book are:
• Plan the sequence of pages needed in the book.
• Set up the page styles needed for this sequence of pages.
• Set up the paragraph styles.
Tip
Any modifications of styles, and any new styles that you
define, apply only to the document you are working on. If you
want the changes to be available to other documents, you
need to put them into a template. See Chapter 13 for details.
46
Free eBook Edition
Chapter 4 Design your Book using Writer’s Styles
Tip
Look toward the left end of the status bar at the bottom of
the Writer window. The page style for the current page is
displayed there.
You can modify Writer’s built-in page styles, and you can
define new (custom) page styles. You can have one or many page
styles in a single document. If you do not specify a page style,
Writer uses its built-in Default page style.
The illustration below shows a typical sequence of the pages
in a book. Notice that some have no page numbers, while others
have lower-case roman numerals (i, ii, iii) and others have
Arabic numbers (1, 2, 3).
Single chapter
First we will look at a single chapter from somewhere in the
book. Most chapters will be like this one. It needs two styles:
First Page and Default. The figure on the next page shows the
concept.
48
Free eBook Edition
Chapter 4 Design your Book using Writer’s Styles
Both of these styles are provided by Writer, so we don’t need
to create new ones. In addition, both styles have been set up to
have a Next Style of Default, so we can proceed without
modifying them.
Note
A real book chapter would have several pages of text already,
so all you would need to do is steps 2 and 3 to apply the
sequence of page styles to an existing chapter.
50
Free eBook Edition
Chapter 4 Design your Book using Writer’s Styles
Add a chapter to the book sequence
How do you change from the “front matter” sequence to the
chapter sequence? The concept is shown in the illustration on
the next page.
A change from one sequence to a new sequence can be done
either manually or by using a property of paragraph styles to
automate the change. These methods are described in Chapter
5. Which method you use is entirely up to you.
Caution
If you are in the habit of manually overriding styles in your
book, be sure that the AutoUpdate option (on the Organizer
page of the Paragraph Style dialog) is not enabled, or you
will suddenly find whole sections of your document
reformatting unexpectedly.
52
Free eBook Edition
Chapter 4 Design your Book using Writer’s Styles
Modify the built-in sequence of styles
The built-in sequence of heading and paragraph styles uses
Heading 1 for chapter titles and Heading 2, Heading 3, and so
on for subheadings, with each heading followed by a paragraph
in the Text body style. If you want a different sequence, read on.
For our example sequence, we’ll modify three built-in styles
(Heading 1, Heading 2, and Text body) and create one custom
style (First para).
Tip
Heading styles are essential for creating an automatic table
of contents and for placing information such as chapter titles
into headers or footers. For more information, see Chapters 9
and 11.
One common book design uses one paragraph style for the
first paragraph of a chapter or section, and another paragraph
style for all of the other paragraphs in the chapter or section.
This book uses this design.
To set up a different style for the first paragraph of each
chapter, you need to do two things:
• Create a new style, or modify an existing style, for the
first paragraph, and set it up to be followed automatically
by the style used for the other paragraphs.
• Set up the heading styles to be followed automatically by
your chosen first paragraph style.
Because a style must exist before we can choose it as a Next
Style, we will create the First paragraph style before defining
the heading styles.
We want the First paragraph style to be the same as the Text
body style, with one difference: Text body will have the first line
indented, but First paragraph will have no indentation of the
first line. We can save some time (and later inconsistencies if we
change something else) by linking the First paragraph style to
the Text body style and changing only that one setting. Later, if
we make other changes to the Text body style, those changes
(such as font and spacing) will apply to the First paragraph style
as well.
4 Leave the other tabs alone for now. Click OK to save the
change.
54
Free eBook Edition
Chapter 4 Design your Book using Writer’s Styles
Create the First paragraph style
Now that we’ve modified the Text body style, we’ll create a First
paragraph style linked with it.
1 On the Styles and Formatting window, right-click on the
Text body style and select New.
2 On the Organizer tab, change the Name from Untitled to
First paragraph. Do not select the AutoUpdate option.
56
Free eBook Edition
Chapter 4 Design your Book using Writer’s Styles
5 Format Pages in Writer
Examples
Default page style
The Default page style is the most commonly-used page style. All
the chapter pages (except the first page of each chapter) use it.
These pages are normally mirrored. Facing pages may have
page numbers on the outer edges and the inner (binding)
margin may be wider than the outer margin.
1 On the Page Styles tab of the Styles and Formatting
window, right-click on Default, and choose Modify.
2 On the Page tab of the Page Style: Default dialog, in the
Paper Format section, choose the page size for your book,
or define a custom size by changing the dimensions in the
58
Free eBook Edition Chapter 5 Format Pages in Writer
First Page style
The first page of a chapter normally starts on a right-hand page.
It usually does not have a header, but it may have a footer
containing a page number.
1 On the Page Styles tab of the Styles and Formatting
window, right-click on First Page and choose Modify.
2 On the Page tab of the Page Style: First Page dialog, set
the Paper Format to match the paper format chosen for
the Default page style.
3 Set Page layout to Only right and set the margins as
needed. Typically the right margin for the First Page style
is the same as the outer margin for the Default page
style, the left margin is the same as the inner margin, and
the bottom margins are the same. You may want to make
the top margin larger.
4 On the Header tab, make sure Header on is not checked.
5 On the Footer tab, choose Footer on. Leave the other
settings unchanged.
60
Free eBook Edition Chapter 5 Format Pages in Writer
3 On the Header and Footer tabs, make sure Header on
and Footer On are not selected.
Note
Many people incorrectly use the words header and heading
interchangeably, but the two words refer to quite different
concepts. Headers are sometimes called running headers.
Our basic page layout included some headers and footers. Now
we’ll see how to use them.
Headers and footers usually have only one paragraph. You
can also design more complex headers and footers, and you can
62
Free eBook Edition Chapter 5 Format Pages in Writer
include graphics. We’ll look at the simple case here. See page
137 for information on more complex layouts.
Numbering pages
The simplest case is to have the page number at the top or
bottom of every page. To do this, click in the header or footer
and select Insert > Fields > Page Number from the menu bar.
The page number now appears on every page that has this
page style. You can align the page number to the left, right, or
center of the page.
Note
Page numbers appear with a gray background. This
background indicates that the page number is a field. It is
not printed and is not visible in a PDF. To turn this feature on
or off, choose View > Field Shadings (or press Ctrl+F8),
but be aware that turning field shadings off affects all fields
in the file.
64
Free eBook Edition Chapter 5 Format Pages in Writer
4 Change Page number to 1.
Now the status bar for this page shows First Page as the
style. Go to the next page. The status bar should show
Default.
5 At this point, all the pages that follow should have a page
style of Default, with the exception of the first page of
each chapter. If you have set up the Heading 1 paragraph
style as described in Chapter 4, these should have a page
style of First Page.
6 Go to the first page of each chapter and verify that its
page style is First Page. If it is not, repeat steps 2 and 3,
but leave Page number set to 0 for all chapters except
the first, so the page numbers continue from one chapter
to the next for the entire book.
66
Free eBook Edition Chapter 5 Format Pages in Writer
6 Format Text in Writer
Typography
To create a professional appearance for your book, follow a few
simple typographic principles:
• Choose a typeface (font) and size that is easy to read and
prints well (some typefaces are too light or too heavy).
For help in choosing a typeface, see one of the many
books and websites on this topic.
• Use “curly quotes” (whether single or double quotation
marks) and apostrophes—not "straight quotes". But don’t
use curly quotes for symbols such as foot and inch—these
are correctly done as straight quotes.
To use curly quotes, go to Tools > AutoCorrect Options
> Custom Quotes and select the Replace option for both
single and double quotes.
• Be sure your curly quotes are the right way around. Many
programs, including Writer, sometimes get this wrong.
Hyphenating words
You have several choices regarding hyphenation: let Writer do it
automatically (using its hyphenation dictionaries), insert
conditional hyphens manually where necessary, or don’t
hyphenate at all. Each choice has its pros and cons. I prefer to
insert conditional hyphens manually when using fully-justified
paragraphs, and I prefer no hyphenation when using left-aligned
(ragged-right) paragraphs.
If you let Writer hyphenate words automatically, you’ll need
to check carefully for incorrect hyphenation and make
corrections when proofreading your book.
68
Free eBook Edition Chapter 6 Format Text in Writer
To turn automatic hyphenation of words on or off:
1 On the Paragraph Styles page of the Styles and Format-
ting window, right-click on Default and select Modify.
2 On the Paragraph Style dialog, select the Text Flow tab.
3 Under Hyphenation, select or deselect the Automatically
option.
4 Click OK to save.
Note
Turning on hyphenation for the Default paragraph style will
apply it to all other paragraph styles that are based on
Default. You can individually change other styles so that
hyphenation is not active. Any styles that are not based on
Default are not affected and must be set separately if you
want them hyphenated as well.
You can also set some hyphenation choices through Tools >
Options > Language Settings > Writing Aids. In Options,
near the bottom of the dialog, scroll down to find the
hyphenation settings.
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 conditional hyphen, which is visible only
when required.
To insert a conditional hyphen inside a word, click where you
want the hyphen to appear and press Control+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.
70
Free eBook Edition Chapter 6 Format Text in Writer
usually better and more convenient in the long run. For this
reason, this book does not cover manual formatting.
Font
Sets the font, typeface, and size. You can set the size in
several ways, including as a percentage of the font size
defined for the paragraph style that this style is based on.
For example, you might set a heading to be 130% of the body
text size. If you later make body text larger or smaller, the
heading adjusts to match. You can also set the language of
the paragraph, so that spelling will be checked using the
correct dictionary.
Font Effects
Sets font color, underlining, relief, and other effects.
Position
Sets text rotation and character spacing for the paragraph
style. See Chapter 11 for some examples of use. Subscript
and superscript are more likely to be used in character
styles.
Tip
At the bottom of the Styles and Formatting window is a drop-
down list. In the example on page 46, the window shows
Automatic, which means that the list shows only those styles
that are applied automatically by Writer. You can choose to
show all styles, only custom styles, or other groups of styles.
72
Free eBook Edition Chapter 6 Format Text in Writer
Click in the paragraph you want to apply a style to, then
open this list using the down-arrow to the right, scroll through
the list and click on the style to apply it.
Tip
Select More... at the bottom of the list to open the Styles and
Formatting window.
74
Free eBook Edition Chapter 6 Format Text in Writer
Note
Different fonts have different special characters. If you do
not find a particular special character you want, try a
different font.
Inserting dashes
An em dash is the length of the character m; an en dash is the
length of the character n. En and em dashes are used for
different purposes in typography. (The Wikipedia page on dashes
has a good summary.)
You can enter en and em dashes in several ways.
If you have selected the Replace dashes option under Tools
> AutoCorrect > Options, then when you type two hyphens,
they are replaced with a dash. The type of dash depends on
whether you also type spaces before or after the hyphens. In the
following table, the A and B represent text consisting of letters A
to Z (in upper or lower case) or digits 0 to 9.
Text that you type Result
A - B (A, space, hyphen, space, B) A – B (A, space, en-dash, space, B)
A -- B (A, space, hyphen, hyphen, A – B (A, space, en-dash, space, B)
space, B)
A--B (A, hyphen, hyphen, B) A—B (A, em-dash, B)
A-B (A, hyphen, B) A-B (unchanged)
A -B (A, space, hyphen, B) A -B (unchanged)
A --B (A, space, hyphen, hyphen, A –B (A, space, en-dash, B)
B)
You can also use the Insert > Special Characters dialog;
select the U+2013 or U+2014 character.
Windows
Hold down one of the Alt keys 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.
On a keyboard with no numeric keypad, use a Function (Fn)
key combination to type the numbers. (The Fn key is usually
to the right of the left-hand Control key.) 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.
Mac OS X
For an en dash, hold down the Option (Alt) key and type a
hyphen. For an em dash, the combination is
Shift+Option+Hyphen.
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.
The key that operates as a Compose key varies with the
Linux distribution. It is usually one of the Alt or Win keys but
it may be another key. It should be user-selectable.
Tip
You can also record macros to insert en and em dashes and
then assign those macros to unused key combinations, for
example Ctrl+Shift+N and Ctrl+Shift+M. See Chapter 14.
76
Free eBook Edition Chapter 6 Format Text in Writer
• If you use the default tab interval and then send the
document to an editor who uses a different default tab
interval, then your tabbed material will be displayed using
the other person’s default tab settings.
• Any changes to the default tab stops will change the
existing default tab stops in any document you open
afterward, as well as tab stops you insert after making the
change.
To avoid these unwanted changes, define your own tab stops
in paragraph styles or individual paragraphs, using the Tabs
page of the Paragraph dialog. Better still, change the tabs
defined in the paragraph style. Right-click on the paragraph,
choose Edit Paragraph Style from the pop-up menu, and go to
the Tabs page.
To change the indentation of one or more selected
paragraphs, use the Indents & Spacing page of the Paragraph
dialog. You can also change the indentation defined in the
paragraph style. Right-click on the paragraph, choose Edit
Paragraph Style from the pop-up menu, and go to the Indents
& Spacing page.
Note
Writer uses two terms, numbering style and list style, for the
same thing. For example, the tooltip in the Styles and
Outline tab
Use the Outline tab to select from eight predefined nested lists.
(A nested list is one that is embedded in another list. For
example, on page 82 the list numbered a-b-c is nested within the
list numbered 1-2-3-4. Nested lists can be several levels deep.)
You can also select a predefined list and use it as a starting
point for your own style, customizing the list using the Position
tab and the Options tab.
Position tab
Use the Position tab to fine tune the indentation and spacing of
the list item symbol and the text of the list item. Use this tab
together with the Options tab (next section).
You can adjust these settings for each level individually or all
at once (to make them all the same). I recommend adjusting the
settings in the order given below and not according to the order
on the dialog. Start from the overall indentation for the list
elements, then fix the position of the symbols, and finally adjust
the alignment of the symbols.
78
Free eBook Edition Chapter 6 Format Text in Writer
• Numbering followed by: the element that comes right
after the bullet or number (plus any characters—for
example, a punctuation mark—chosen on the Options tab
to appear after the number). Choose between a tab stop, a
space, or nothing. If you select the tab stop, you can
specify the position of the tab.
• Indent at: how much space is reserved for the numbering
symbol, measured from the left page margin. The
alignment of the first line of the list is also affected by any
tab you may have set to follow the numbering.
• Aligned at: the position of the numbering symbol,
measured from the left margin of the page.
• Numbering alignment: how the numbering (including
any text before or after as set in the Options page) will be
aligned. Select from the drop-down menu. The Aligned at
value determines the symbol alignment.
Making the Numbering followed by distance the same as the
Indent at distance usually works well.
Note
The Position page is somewhat different for lists in
documents created with earlier versions of Writer. See the
Writer Guide for details.
Tip
To fully appreciate how numbering alignment works, try to
create a numbered list with more than ten elements and
make sure that enough room has been made for a number of
two or more digits.
80
Free eBook Edition Chapter 6 Format Text in Writer
Options tab
Use the Options tab to define the style of the outline levels.
First, on the left side, select the outline level that 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.
Your choice of numbering style in the Numbering list (bullet,
graphics, or one of the numbering sequences such as 1, 2, 3, ...)
determines which other options are available. The right-hand
side of the dialog shows a preview of the modifications made.
To revert to the default values, click the Reset button in the
bottom right corner.
Tip
If you intend to combine several files into one book, be sure
to restart list numbering for the first list in every chapter. If
you don’t, then when you combine the files, the first list will
continue numbering from the last list in the previous chapter.
82
Free eBook Edition Chapter 6 Format Text in Writer
7 Create PDFs using Writer
Range section
All
Exports the entire document. This is the setting you would
normally use for creating a PDF of a book.
Pages
As you assemble the book, you might want to export a few
sample pages. For a range of pages, use the format 3–6
(pages 3 to 6); for single pages, use 7,9,11 (pages 7, 9, and
11). You can also export a combination of page ranges and
single pages, by using a format like 3–6,8,10,12.
Selection
Exports whatever material is selected. Useful for checking
portions of a book.
84
Free eBook Edition Chapter 7 Create PDFs using Writer
Images section
Lossless compression
Images are exported without any loss of quality. For printed
books, select this option.
JPEG compression
Allows for varying degrees of quality. A setting of 90% tends
to work well with photographs. Suitable for e-books.
Tagged PDF
Relevant only for onscreen viewing of PDFs. Depends upon
the .odt file having special tags embedded within it. This
topic is too complex for this book. Do not select.
Export bookmarks
Creates PDF bookmarks for all hyperlinked table of contents
entries. For printed books, do not select. For e-books, select
this option.
Export notes
Exports notes as PDF notes. Do not select.
86
Free eBook Edition Chapter 7 Create PDFs using Writer
User Interface tab
This tab is relevant only for e-books. The options control how a
PDF viewer displays the file.
To avoid problems for printed books, deselect all options
except All bookmark levels in the Bookmarks section.
For e-books, select Display document title in the Window
options section, but deselect all other options in that section and
the User interface options section. In the Bookmarks section,
select Visible bookmark levels and change the number to
match the number of heading levels in the table of contents of
the printed book.
Tip
Be sure the correct title is on the Description tab of the
Document Properties (File > Properties).
Security tab
PDF export includes options for encryption (so that a password
will be needed in order to open the PDF) and applying some
digital rights management (DRM) features.
88
Free eBook Edition Chapter 7 Create PDFs using Writer
For PDFs that are to be printed, do not set any passwords.
Printers cannot handle files that require passwords. For an e-
book, you may wish to set some of these passwords. If you want
to sell both print-on-demand books and e-books with DRM
features, you need to create two PDFs using different settings.
Note
The free Adobe Reader cannot create PDF files. You must use
Adobe Acrobat for this purpose.
To print to PostScript:
1 Choose File > Print.
2 On the Print dialog, select Print to file. In the Printer
Name list, choose Adobe PDF or any PostScript printer.
Click OK.
3 On the Save as dialog, choose where to save the file and
type a file name. The file type should be listed as
PostScript. If it is not, uncheck Automatic file name
extension, and type .PS at the end of the filename. Click
Save.
Note
If you choose a black-and-white printer from the list, the
resulting PDF (after conversion from PostScript) will be in
grayscale.
94
Free eBook Edition Chapter 8 Pictures and Graphics in Writer
Changing the colors of the circle and the arrow improves the
contrast and visibility of the resulting grayscale image. A better
result can often be obtained by choosing grayscale fills, not
color fills.
96
Free eBook EditionChapter 8 Pictures and Graphics in Writer
Inserting images from other sources
You can insert images from a graphics program, a scanner, and
the Gallery.
Graphics program
You can use many different graphics programs to edit an image.
You can either save the edited image as a file and insert it as
described earlier, or insert the image directly from the graphics
program into your Writer document.
Follow these steps:
1 In the graphics program window, select an area of the
image to be copied (or select the entire image).
2 Move the cursor over the selected area and press
Control+C to copy.
3 Switch to the Writer window.
4 Click to place the cursor where the image is to be
inserted. Press Control+V to paste the image.
Scanner
If a scanner is connected to your computer, Writer can call the
scanning application and add the scanned image to the
document in one step. Click where you want the image to
appear, and then select Insert > Picture > Scan > Select
Source from the menu bar.
OpenOffice.org Gallery
The Gallery contains graphics that you can insert into your
documents. Writer does not come with many graphics, but you
can add your own pictures or find extensions containing more
graphics. For more about the Gallery, see Getting Started with
OpenOffice.org 3.
To insert a Gallery image into a document:
1 Click on the Gallery icon (right side of the Standard
toolbar) or choose Tools > Gallery.
2 Select the theme containing the image you want to insert.
3 Click on the image, then drag and drop it into the
document. You can also right-click on the image and
select Insert > Copy.
98
Free eBook EditionChapter 8 Pictures and Graphics in Writer
Modifying an image
When you insert a new image, you may need to modify it to
make it more suitable for the document.
Although Writer provides many tools for working with
images, for best 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.
Two other toolbars can be opened from this one: the Graphic
Filter toolbar, which can be torn off, and the Color toolbar,
which opens as a separate floating toolbar.
From these three toolbars, you can apply small corrections to
graphics or obtain special effects. See the Writer Guide for a
complete listing of these tools. Here are three of them.
Graphics mode
Transparency
Crop an image
Sometimes you might want to crop (cut off) parts of an
image. It’s best to do this in a graphics package, but you can do
it in Writer. To start, right-click on the image and select Picture
from the pop-up menu. In the Picture dialog, go to the Crop tab.
100
Free eBook Edition
Chapter 8 Pictures and Graphics in Writer
Keep scale / Keep image size
When Keep scale is selected, cropping the image does not
change the scale of the picture.
When Keep image size is selected, cropping produces
enlargement (for positive cropping values), shrinking (for
negative cropping values), or distortion of the image so that
the image size remains constant.
Rotate an image
Writer does not provide a tool for rotating an image, but you can
use a drawing or graphics program to rotate the image before
adding it to the Writer document. Here is how to do it in
OpenOffice.org Draw.
1 Open a new Draw document (File > New> Drawing).
2 Insert the image you want to rotate.
3 Select the image, then in the drawing toolbar (shown by
default at the bottom of the window in Impress and
Tip
To restrict the rotation angle to multiples of 15 degrees, hold
down Shift while rotating the image in step 4.
102
Free eBook Edition
Chapter 8 Pictures and Graphics in Writer
Arrange images
Arrangement is only relevant when objects are overlapping. You
can choose between four settings, plus a special setting just for
drawing objects.
• Bring to Front: Places the image on top of any other
graphics or text.
• Bring Forward: 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.
• Send Backward: The opposite of Bring Forward; sends
the selected object one level down in the object stack.
• Send to Back: Sends the selected image to the bottom of
the stack, so that other graphics and text cover it.
• To Background / To Foreground: (Only available for
drawing objects.) Moves the drawing object behind or in
front of the text.
Anchor images
You can anchor images as a character or to a page, paragraph,
character, or frame. The method you choose depends on what
you are trying to achieve.
To Page
The image keeps the same position in relation to the page
margins. It does not move as you add or delete text or other
graphics. This method is useful when the image 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 for placing logos
in letterheads.
To Paragraph
The image is associated with a paragraph and moves with
the paragraph. It may be placed in the margin or another
location. This method is a good alternative to using a table
for placing images next to paragraphs.
To Character
The image is associated with a character, but it is not in the
text sequence. It moves with the paragraph but may be
As Character
The image is placed in the document like any other character
and, therefore, affects the height of the text line and the line
break. The image moves with the paragraph as you add or
delete text. This method is useful for keeping images in
sequence in a procedure (by anchoring them as a character
in a blank paragraph) or for adding a small (inline) icon in
sequence in a sentence.
To Frame
If the image has been placed in a frame, you can anchor the
graphic in a fixed position inside the frame. The frame can
then be anchored to the page, a paragraph, or a character, as
required.
Align images
Once you have established the anchor point of the image, you
can decide on the position of the image relative to this anchor.
This is called aligning the image.
Choose from six options: three for aligning the graphic
vertically (top, center, bottom) and three for aligning the graphic
horizontally (left, center, right). Horizontal alignment is not
available for images anchored as character.
For finer control of the alignment, use the Position options on
the Type page of the Picture dialog. In the example below, the
upper-left corner of the image will be placed 3 cm from the left
margin of the page horizontally and on the top margin vertically.
104
Free eBook Edition
Chapter 8 Pictures and Graphics in Writer
Wrapping text around images
The Wrap setting determines the relation between the text and
the image. It is normally selected after the anchoring and the
alignment of the picture have been set.
• No Wrap: Text is placed above and below the image but
not around it. This is the wrapping type used for most of
the pictures in this book.
• Page Wrap or Optimal Page Wrap: Text flows around
the image. Moving the image around the page makes the
text fill the space to the left and right. If the distance
between the object and the page margin is less than 2 cm,
the text is not wrapped on that side.
• Wrap Through: Superimposes the image on the text. This
option must be used with the image-transparency setting
in order to make the text under the picture visible. It is
not suitable for creating PDFs to be printed by those
print-on-demand services that do not allow transparency.
• In Background: Similar to Wrap Through but the image
is placed behind the text. You do not need to change the
transparency to make text visible.
Notes
The No Wrap option found in the pop-up menu of a picture is
equivalent to the Wrap Off menu item in the Format > Wrap
menu.
When you anchor a graphic as character, you can only adjust
the distance between the image and the text. No wrapping
option is available.
To fine tune the wrapping options, open the Picture dialog and
select the Wrap tab.
This tab is divided into three sections. In the top part you can
select from the wrap types mentioned above, plus two additional
wrap formats: After prevents the text from filling the area to the
left of the image, and Before prevents the text from filling the
area to the right.
Use the Spacing section of the page to adjust the spacing
between the image and the text.
First paragraph
Starts a new paragraph below the image when you press
Enter, even if the text could have wrapped around the image.
In background
If Through Wrap is selected, moves the image into the
background.
Contour
Wraps the text around a custom contour rather than around
the edge of the picture. It is only available for Page or
Optimal Page Wrap. See the Writer Guide for a detailed
description and an example.
Outside only
Forces the text to wrap on the outside of the image, even if
the contour contains open areas within the shape.
106
Free eBook Edition
Chapter 8 Pictures and Graphics in Writer
Example: page wrapping
The picture on the next page is an example of page wrapping in
action. To accomplish page wrapping:
1 Insert the image into the document, then anchor it to the
first paragraph by selecting the image and moving it until
the anchor symbol is at the beginning of the paragraph.
2 Use either the mouse or the advanced settings to align
the image so that the left of the image is in line with the
paragraph indentation. In the example, the image is
placed 1 cm from the left margin.
3 Change the wrap to Page Wrap. To increase the space
between image and text, go to the Wrap page of the
Picture dialog and set the image and text gap (in the
Right and Bottom boxes) to 0.2 cm.
4 Change the position so that the image is below the first
line of the paragraph. Again, use the mouse to drag the
image or use the advanced settings.
108
Free eBook Edition
Chapter 8 Pictures and Graphics in Writer
9 Tables of Contents in
Writer
Tips
• If some of your headings don’t show up in the generated
TOC, check that the headings have been tagged correctly.
If a whole level of headings doesn’t show up, see
“Defining a hierarchy of headings” on page 110.
• You can customize an existing TOC at any time. Right-
click anywhere in it and select Edit Index/Table from the
pop-up menu. Continue as described in “Customizing a
table of contents” on page 112.
• The TOC appears with a gray background. This
background is not printed and does not appear in a PDF.
To turn off this gray background, go to Tools > Options
> OpenOffice.org > Appearance, then scroll down to
the Text Document section and uncheck the option for
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 > OpenOffice.org Writer >
Formatting Aids and uncheck the option for Tabs.
110
Free eBook Edition Chapter 9 Tables of Contents in Writer
correct styles are given for each heading level you want to be
shown in the TOC.
112
Free eBook Edition Chapter 9 Tables of Contents in Writer
Index/Table tab
Use the Index/Table tab to set the attributes of the TOC.
114
Free eBook Edition Chapter 9 Tables of Contents in Writer
Entries tab
Use the Entries tab to define and format the entries in the TOC.
For each outline level, you can add and delete elements such as
chapter (heading) numbers. You can also apply character styles
to individual elements.
To begin, click a number in the Level column to select the
outline level whose elements you want to format. (You will be
able to apply changes to all outline levels later.) The Structure
line displays the elements for entries in that level. Each button
on the Structure line represents one element.
• The E# button represents the “chapter number”, which
means the heading number. This number is for all levels of
headings.
• The E button represents the text of the heading.
• The T button represents a tab.
• The # button represents the page number.
• The LS button represents the start of a hyperlink. This
button does not appear on the default Structure line.
• The LE button represents the end of a hyperlink. This
button does not appear on the default Structure line.
Each white field on the Structure line represents a blank
space. If you wish, you can add custom text such as the word
Chapter.
Delete elements
To delete an element from the Structure line, click the button
representing that element and then press the Delete key on the
keyboard.
Hyperlink an entry
To change the default Structure line so that the chapter number
and the entry text form a hyperlink:
1 On the Structure line, click in the white field to the left of
the E# button.
2 Click the Hyperlink button. An LS button, representing
the start of the hyperlink, appears on the Structure line.
3 On the Structure line, click in the white field to the right
of the E button.
4 Click the Hyperlink button again. An LE button,
representing the end of the hyperlink, appears on the
Structure line.
The figure below shows the result of the above steps. The
number and the text of the entries on that level will now be
hyperlinks.
116
Free eBook Edition Chapter 9 Tables of Contents in Writer
Apply character styles
You might want an element to be a bit different from the rest of
the line. For example, you might want the page number to be
bold. To apply a character style to an element:
1 Be sure you have defined a suitable character style.
2 On the Structure line, click the button that represents the
element to be changed.
3 From the Character Style drop-down list, select the
desired style.
To view or edit the attributes of a character style, select the
style from the Character Style drop-down list and then click the
Edit button.
Tip
The default character style for hyperlinks is Internet Link. By
default, this style is blue and underlined.
If you want the TOC entries to be hyperlinks, but not appear
underlined and blue, select the LS button on the Structure
line and change the character style selection to Index Link.
Click the Edit button to change the settings for Index Link to
what you want.
(You could change the settings for the Internet Link
character style, but doing this changes the attributes of all
hyperlinks in the document.)
Styles tab
Use the Styles tab to change which paragraph style is assigned
to each level in the TOC. In most cases, the best strategy is to
Columns tab
Multiple columns are more commonly used in indexes. To
change the number of columns in a TOC, see “Using the
Columns page” in Chapter 10.
118
Free eBook Edition Chapter 9 Tables of Contents in Writer
Background tab
Use the Background tab to add color or a graphic image to the
background of the table of contents. This is not commonly done
in books with black-and-white interiors.
Tip
If you cannot right-click in the table of contents, go to Tools
> Options > OpenOffice.org Writer > Formatting Aids
and select Enable in the Cursor in protected areas section.
Tip
You can also open the Insert Index Entry dialog by clicking
the Entry icon on the Insert toolbar.
Note
If field shading is active (View > Field shadings), then a
word or phrase that has been added to the index is shown in
the text with a gray background. Index entries containing
text that is different from the text in the document are
marked by a small gray rectangle.
122
Free eBook Edition Chapter 10 Indexes in Writer
Building an alphabetic index quickly
Now that you have some index entries, you can build the index.
Although indexes can be customized extensively in Writer,
most of the time you need to make only a few choices. To create
an index quickly:
1 Click in the document where you want the index to
appear.
2 Select Insert > Indexes and Tables > Indexes and
Tables.
3 In the Type box on the Index/Table page, select
Alphabetical Index.
4 In the Options section, uncheck Case sensitive (so that
capitalized and lower-case words are treated as the same
word) and uncheck Combine identical entries with p
or pp.
5 Click OK. The result will be a typical index.
Index
The type of index that this entry is for. The default is
Alphabetical Index, but you can use this field to create extra
entries for an index or list of almost anything. For example,
you might want an index containing only the scientific names
of species mentioned in the text along with a separate index
containing only the common names of species.
Entry
The word or phrase to be added to the selected index. This
word or phrase does not need to actually be in the document
itself. You can add synonyms and other terms that you want
to have in the index.
1st key
An index key is an entry that has no associated page number
and has several subentries that do have page numbers. Using
keys is a useful way of grouping related topics. (See
“Example of using an index key” on page 124.)
Main entry
When the same term is indexed on several pages, often one
of those pages has more important or detailed information on
that topic. To make the page number for the most important
(main) entry stand out, select this option and then define the
character style for the page number of a main index entry to
be bold.
Note
If Asian languages support has been enabled in Tools >
Options > Languages Settings > Languages, some
additional fields for phonetic reading are shown in the Insert
Index Entry dialog. Enter the phonetic reading for the
corresponding entry. For example, if a Japanese Kanji
character has more than one pronunciation, enter the
correct pronunciation as a Katakana word. The Kanji
character is then sorted according to the phonetic reading
entry.
124
Free eBook Edition Chapter 10 Indexes in Writer
In this example, OpenOffice.org is the 1st key. The subentries
(with the page numbers showing) are the indexed entries. To
insert an index entry for the topic Writer, on the Insert Index
Entry dialog, type Writer in the Entry box and OpenOffice.org
in the 1st key box.
Customizing an index
You can customize an index in numerous ways.
To customize an existing index, right-click anywhere in the
index and choose Modify from the pop-up menu.
The Insert Index/Table dialog has five tabs. Any or all of them
can be used to customize the appearance of an index.
• Use the Index/Table tab to set the attributes.
• Use the Entries and Styles tabs to format the entries.
• Use the Columns tab to specify more than one column.
• Use the Background tab to add color or a graphic to the
background.
You can display a preview box, located on the left-hand side
of the dialog, to show as you work how the index will look.
(Select the Preview option in the lower right-hand corner of the
dialog.) The illustrations in this chapter show the dialog as it
appears with the preview box hidden.
After making all your changes, click OK to save the index.
Index/Table tab
Use the Index/Table tab to set the attributes of the index.
1 To give the index a different title, type it in the Title field.
(You can change an existing title by typing over it.) To
delete the title, clear the Title field.
2 Be sure the Type of Index is set to Alphabetic Index.
3 To prevent the index from being changed accidentally,
check the Protected against manual changes option.
The index can then only be changed using the right-click
menu or the Insert Table/Index dialog. If the box is not
checked, the index can be changed directly on the
document page, just like other text, but any manual
changes will be lost when you update it.
126
Free eBook Edition Chapter 10 Indexes in Writer
information, see concordance file in the help. Using a
concordance file can speed up production of an index,
but unless the words are very carefully selected and
unless you edit the index afterward, the resulting
index can be full of page numbers for minor mentions
of a term.
• Sort. Defines how the entries are sorted when
displayed. The only option is alphanumeric, but you
can specify which language alphabet is to be used.
Entries tab
Use the Entries tab to define and format the entries in the index.
To begin, click a number in the Level column to select the
index level whose elements you want to format. (You will be able
to apply your changes to all index levels later.)
The Structure line displays the elements for entries in that
level. This line works the same way as for a TOC; see page 115
for details.
Each of the items that can be added to the Structure line
may have additional formatting. For example, you may want the
page number to be a different size from the rest of the index
text. To do this, apply a character style to one of the elements in
the Structure line, as described for TOCs.
Alphabetical delimiter
This will display, as a means of separating index entries, the
letter of the alphabet for the index entries that follow. For
example:
A
apple, 4
author, 10
B
break, 2
bus, 4
Columns tab
Use the Columns tab to change the number of columns for the
index.
1 Choose the number of columns desired in the box labeled
Columns, or select the icon representing the number of
columns.
2 To evenly distribute the columns according to the page
width, check the AutoWidth box. If it is unchecked, you
can manually set both the width of each of the columns
and the spacing between the columns.
3 You can choose to have a separator line between the
columns:
• Line: The width (thickness) of the line.
128
Free eBook Edition Chapter 10 Indexes in Writer
• Height: The height of the line.
• Position: Position of the line relative to the columns
(top, middle, or bottom) if the height is less than
100%.
Styles tab
Refer to “Styles tab” on page 117 for tables of contents.
Maintaining an index
To edit an existing index, right-click anywhere in the index and
choose Edit Index/Table from the pop-up menu. The Insert
Index/Table dialog opens. Edit and save the index as described
in the previous section.
Writer does not update the index automatically, so after
making changes to the index entries, you must update it
manually. To update an index, right-click anywhere in the index
and choose Update Index/Table from the pop-up menu.
To delete an index, right-click anywhere in the index and
choose Delete.
130
Free eBook Edition Chapter 10 Indexes in Writer
11 Create Special Effects in
Writer
Drop caps
A drop cap, a design that can be applied to the first letter of a
paragraph, is a large capital letter that can be several lines in
height. Some books use this design at the beginning of every
chapter.
132
Free eBook Edition
Chapter 11 Create Special Effects in Writer
2 Right-click on Drop Caps and choose Modify. This opens
the Character Style dialog, where you can change the
font.
3 Then (as described above), on the Drop Caps page of the
Paragraph Style dialog, choose Drop Caps for the
Character Style.
Character spacing
You can use character spacing for a decorative effect.
Then select the heading row of the table and apply the new
style. Any text in the cells of the heading row is now rotated.
If the headings are aligned to the top of the cells, you might
want to change the alignment to the bottom of the cells, as
shown in the example. To do this, select the cells, and then right-
click and choose Cell > Bottom (or choose Format >
Alignment > Bottom from the menu bar).
134
Free eBook Edition
Chapter 11 Create Special Effects in Writer
Centering text vertically on a page
You might want to center text vertically on a title page. To do
this, you need to place the text in a frame and center the frame
vertically on the page.
1 Select the text that you want to center vertically.
2 Choose Insert > Frame from the menu bar. On the Type
tab, select Automatic under Width, AutoSize under
Height, To page under Anchor, and Center under both
Horizontal and Vertical in the Position section.
3 For vertical centering, your choice between centering on
the page text area or centering on the entire page will
depend on the top and bottom margins of the page and
the effect you want to achieve.
4 Click OK to insert the frame.
136
Free eBook Edition
Chapter 11 Create Special Effects in Writer
pages. To include text (such as a chapter title) on such a page,
create paragraph styles with appropriate margins, or place the
text in a frame and position the frame where you want the text
to appear. (See also “Centering text vertically on a page” on
page 135.)
138
Free eBook Edition
Chapter 11 Create Special Effects in Writer
Note
A Chapter field in a page header always picks up the highest
heading level on a page, even if you have specified a lower
level. For example, if a page has a Heading 1 and a Heading
2 on it, then a Level 2 Chapter name field in the header of
that page will display the Heading 1 paragraph, not the first
Heading 2 paragraph as intended. In a footer, the levels work
as intended.
140
Free eBook Edition
Chapter 11 Create Special Effects in Writer
12 Track Changes in Writer
142
Free eBook Edition Chapter 12 Track Changes in Writer
After you have recorded more than one change, you can
move between them using the arrow buttons. If no comment has
been recorded for a change, the Text field is blank.
Note
Not all changes are recorded. For example, changing a tab
from align left to align right and changes in formulas
(equations) or linked graphics are not recorded.
144
Free eBook Edition Chapter 12 Track Changes in Writer
Tip
After accepting and rejecting changes, go through the
document and look for minor errors such as a change that
incorrectly deleted (or failed to delete) a space between
words, or major errors such as unwanted changes in
paragraph tagging.
Comparing documents
If you have not protected the document, some reviewers may
forget to record the changes they make. Use Writer’s Compare
documents feature to find those changes.
To compare documents, you need to have the original
document and the one that has been edited.
146
Free eBook Edition Chapter 12 Track Changes in Writer
To navigate from one note to another, open the Navigator
(F5), expand the Notes section, and click on the note text to
move the cursor to the anchor point of the note in the document.
You can also navigate through the notes using the Previous
and Next icons in the Navigation toolbar (see page 11) or by
using the keyboard. Control+Alt+Page Down moves to the next
note and Control+Alt+ Page Up moves to the previous note.
150
Free eBook Edition Chapter 13 Use Templates in Writer
Using predefined templates
Several collections of templates are available as extensions to
Writer. This page lists many of the available extensions:
http://extensions.services.openoffice.org/search/node/template.
See Chapter 14 for information about installing extensions.
After installation, these templates are listed in the Templates
and Documents window. They are usually in separate folders.
If you obtain a template that is not in an extension, you can
save it anywhere on your computer and then import it into an
OpenOffice.org template folder:
1 Choose File > Templates > Organize from the main
menu.
2 In the Template Management dialog (shown below),
select the folder where you want to put the template.
3 Click the Commands button and choose Import
Template from the drop-down menu.
4 Find and select the template that you want to import, and
then click Open.
152
Free eBook Edition Chapter 13 Use Templates in Writer
Creating a document from a template
1 From the main menu, choose File > New > Templates
and Documents. The Templates and Documents window
opens.
2 In the box on the left, click the Templates icon if it is not
already selected. A list of template folders appears in the
center box.
3 Double-click the folder containing the template that you
want to use. A list of all the templates contained in that
folder appears in the center box.
4 Click the template that you want to use. You can preview
the selected template or view the template’s properties
by clicking the appropriate icon. The preview or
properties appear in the box on the right.
5 Click Open. A new document based on the selected
template opens in Writer.
Caution
If you choose No in the message box, that message will not
appear again, and you will not get another chance to update
the styles from the template.
You can re-enable this feature by using a macro described in
the Writer Guide, or by using the Template Changer
extension to reapply the template, as described on page 156.
154
Free eBook Edition Chapter 13 Use Templates in Writer
Changing to a different template
At times you might want to change the template associated with
a document, or perhaps you are working with a document that
did not start from a template. A common scenario for writers is
to start with a template designed for drafts (full size paper,
double-spaced type) while writing and editing the manuscript,
and then change to a template designed for final formatting.
Tip
The names of styles in the existing document and the names
of the styles in the new template should be the same. If they
are not the same, you will need to use Search and Replace to
replace the old styles with the new ones. See Chapter 3 for
more about replacing styles.
You can change templates in two ways. If you want to update
styles only, then use the Template Changer extension. If you also
want to include content from the new template, then use the
blank document based on new template procedure.
156
Free eBook Edition Chapter 13 Use Templates in Writer
14 Customize Writer
Notes
• Any existing shortcut keys for the currently selected
function are listed in the Keys selection box. If the Keys
list is empty, then you can use the key combination that
you have chosen. If you want to reassign a shortcut key
combination that is already in use, you must delete the
existing shortcut first.
• Shortcut keys that are grayed-out in the listing (F1 and
F10 are always going to be grayed out) are not available
for reassignment.
158
Free eBook Edition Chapter 14 Customize Writer
Example: Assign macros to shortcut keys
A common use for assigning macros to shortcut keys is to enable
quick and easy insertion of special characters. Our example
shows how to set up keyboard shortcuts for inserting en-dashes
and em-dashes.
Tip
Extensions such as Accentuate or Compose Special
Characters are useful for doing this specific task. See
“Adding functionality with extensions” on page 162.
160
Free eBook Edition Chapter 14 Customize Writer
click the + next to the Standard library and choose
Module1. In the Function list, choose Endash and click
the Modify button on the upper right. The selected key
combination now appears in the Keys list on the lower
right, and Endash appears next to Ctrl+Shift+N in the
Shortcut keys list.
7 Repeat for the em-dash macro, and then click OK.
Install extensions
To install an extension:
1 Download the extension and save it anywhere on your
computer.
2 In Writer, select Tools > Extension Manager from the
menu bar. In the Extension Manager dialog, click Add.
3 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.
4 When the installation is complete, the extension is listed
in the Extension Manager dialog.
162
Free eBook Edition Chapter 14 Customize Writer
Some popular extensions for Writer
Here are a few of the more important and popular extensions to
Writer. These are free downloads from the OpenOffice.org
extensions repository.
Language Tool
Detects some grammar errors, including some correctly-
spelled words used the wrong situation, such as there/their,
to/too/two, no/now. See Chapter 3.
Template Changer
Adds two new items to the File > Templates menu, to
assign a new template to the current document or to a folder
of documents. See Chapter 13.
Writer’s Tools
Makes many tasks easier, including backing up documents,
looking up and translating words and phrases, managing text
snippets, and keeping track of document statistics.
I L
icon size and style 19 language
icons in menus 19 settings 28
image resolution 85 status bar field 7
images Language Tool extension 37, 163
align 104 layout views 8
arrange 103 left-aligned paragraphs 68