Creating a book template with Writer
A nifty Writer template for your next book
Download the whole article as PDF
Short URL: http://fsmsh.com/2447
- 2007-11-01
- User space | Easy
-
Write a full post in response to this!
While Writer allows you to create an advanced book template that consists of a master document and a number of subdocuments, there are situations where using a simpler, one-file template makes more sense. The main advantage of a one-file book template is that it helps you to work around two major problems in Writer.
First of all, there is a bug (1 and 2) that makes it rather difficult to manage figure numbering. Moreover, the current implementation of the cross-reference feature makes managing cross-references between sub-documents quite cumbersome. Besides that, you might find it easier to work on a single file, where you don’t have to keep tabs on all the sub-documents. It’s also easier to troubleshoot if something goes wrong with the book layout. Moreover, creating a one-file template requires far fewer steps, which saves you time. So if a one-file book template best fits your needs, then read on. The following description assumes that you are familiar with OpenOffice.org and that you know how to work with paragraph and page styles.
First of all you have to outline the overall structure of the book. For this example, I will be creating a book template consisting of the following parts:
- Front matter, including a copyright page, table of contents (TOC), and a preface
- Book body consisting of several chapters
- Alphabetical index
Creating paragraph styles
To set up the book template, you need to create custom paragraph, character, and page styles as well as specify outline numbering for use with the TOC. Which paragraph and character styles you need to create is completely up to you. However, as a minimum, you have to create the following paragraph styles:
- Text body for use in the book body
- Headings for chapter titles and subtitles
- Footer and header for use with the book’s headers and footers
Depending on the contents of the book, you might need to specify additional styles. For example, if your book is going to include numbered and bulleted lists, you need to create paragraph styles for them, too. The same goes for figure captions, tips, boxouts, etc. To create a new paragraph style, click on the Paragraph Styles button in the Stylist window, right-click somewhere in the window, and select New from the context menu. (If you don’t see the Stylist, press F11 or choose Format→Styles and Formatting). Then use the available options to set up the paragraph style. While most of the available options are self-explanatory, there are a few settings that deserve a closer examination. The Organizer tab allows you to specify the Next Style and Linked with options. As the name suggests, you can use the Next Style option to select the style that follows the current style in the book.
For example, in figure 1, the BOOK_Heading style is followed by BOOK_Text_body style. In practice, this means that after you’ve entered a heading which has the BOOK_Heading style and then pressed enter, Writer automatically switches to the BOOK_Text_body paragraph style. This is a nifty trick that can save you a lot of time. The Linked with option allows you to select an existing style that you want to base the new style on. For example, when creating the BOOK_Tip_body style, you might want to link it with BOOK_Text_body. The linked BOOK_Tip_body style automatically inherits all the properties of the BOOK_Text_body style, so you don’t have to specify all the settings from scratch. More importantly, if you later make changes to the BOOK_Text_body style, they will automatically propagate to the linked styles, which can save you a lot of time.
Write a full post in response to this!
Similar articles
Do you like this post?
Vote for it!
Copyright information
This article is made available under the "Attribution-NonCommercial-NoDerivs" Creative Commons License 3.0 available from http://creativecommons.org/licenses/by-nc-nd/3.0/.
Biography
Dmitri Popov: Dmitri Popov is a freelance writer whose articles have appeared in Russian, British, and Danish computer magazines. His articles cover open-source software, Linux, web applications, and other computer-related topics. He is also the author of the book Writer for Writers and Advanced Users.
- Login or register to post comments
- 21873 reads
- Printer friendly version (unavailable!)




Two fantastic free software companies that make Free Software Magazine possible:
Buzz authors
Free Software news
- Two More Bills in the SCO Bankruptcy and Some Trademark Oddities
- Psystar Files Motion to Leave Chapter 11
- Swiss court: Gov can buy M$ licenses, but has to be aware of risk that contracts could be declared void during main process !freesoftware
- after using the #gimp for more than 3 years for my modest needs, I start to get familiar with it ;) #freesoftware #linux
- #vim users: favourite feature? For me it's ":set paste" real time saver - !freesoftware
Similar entries
Other sites
- The Top 10 Everything (Dave). The good, the bad and the ugly.
- Free Software news (Dave & Bridget). All about free software -- free as in freedom!
- Book Reviews: Illiterarty (Bridget). Book reviews, blogs, and short stories.
Hot topics - last 60 days
-
2009: software installation in GNU/Linux is still broken -- and a path to fixing it
Tony Mobily, 2009-06-23 -
The Bizarre Cathedral - 44
Ryan Cartwright, 2009-06-08 -
Free Software Magazine caught in the 3fn shutdown crossfire
Tony Mobily, 2009-06-05 -
Is Android the key to the GNU/Linux desktop? Really?
Tony Mobily, 2009-06-12 -
The Bizarre Cathedral - 45
Ryan Cartwright, 2009-06-15
Hot topics - last 21 days
-
2009: software installation in GNU/Linux is still broken -- and a path to fixing it
Tony Mobily, 2009-06-23 -
The Bizarre Cathedral - 45
Ryan Cartwright, 2009-06-15 -
Will Google Wave revolutionise free software collaboration?
Ryan Cartwright, 2009-06-15 -
The Bizarre Cathedral - 46
Ryan Cartwright, 2009-06-22


short and fine, very
Submitted by Harry (not verified) on Thu, 2007-11-01 10:58.
Vote!short and fine, very explanationary, thank you
Great, just one more question...
Submitted by Anonymous visitor (not verified) on Mon, 2007-12-03 16:20.
Vote!Ok, I lied, two:
1) How do you get page numbering to differ throughout the book?
Ex. If I want the title page and copyright to have no numbering (and not be counted in later page numbers), the Forward to have i, ii, iii, iv numbering, and to start on its first page and not be counted as part of the book's normal page numbering, and then for the Table of Contents and the rest of the book to use normal page numbering... How do you manage that?
2) On a related note, how do you get headers/footers (containing titles, page numbers, whatever) to mirror on the 'outside' of the top/bottom of pages (on the Right_Pages they're on the right, and on the Left_Pages they're on the left)?
Thanks for the really great tutorial! You should let Lulu.com know, they'd almost certainly link some of their FAQ's to your page (traffic = good!)
One other idea
Submitted by Anonymous visitor (not verified) on Wed, 2007-12-05 18:11.
Vote!One other thing that would be useful would be using headers/footers to display the book name and the chapter title - I'm looking around now to see how to get chapter title fields into the header...