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
- 31526 reads
- Printer friendly version (unavailable!)




Best voted contents
-
Special 301: FOSS users. Now we're all Communists and Criminals
Gary Richmond, 2010-03-05 -
Microsoft's Internet Driving Licence: stupid, unworkable and unenforceable
Gary Richmond, 2010-03-10 -
The Bizarre Cathedral - 69
Ryan Cartwright, 2010-03-12 -
Making a videoloop with Kino and Audacity
Terry Hancock, 2010-02-18
Buzz authors
Free Software news
- AdvanceTo: #Softwaretool #USAcentric #Management #MyReaction #TammyFennel #Bestpractices #Freesoftware #Twitter http://tinyurl.com/o23vxr
- When are YOU get your copy of this AWSOME FREEsoftware? Check it out at http://bit.ly/5NJCME
- Day 5 of the SCO v. Novell Trial and Some Help for Journalists Covering the Trial - Updated
- fanalytics: #Socialmedia #Darkside #Socialmedia #Socialinformationprocessing #Marketing #Twitter #Freesoftware http://tinyurl.com/qf79zc
- Blake Stowell Email to Maureen O'Gara: "I Need You to Send a Jab PJ's Way"
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
-
Linux performance: is Linux becoming just too slow and bloated?
Mitch Meyran, 2010-01-26 -
Web code is already open - why not make it free as well
Ryan Cartwright, 2010-01-20 -
Save "Sita Sings the Blues" from the Flash format: can you convert FLA?
Terry Hancock, 2010-01-29 -
Question Copyright's "Minute Memes" challenge copyright rhetoric
Terry Hancock, 2010-01-15 -
Special 301: FOSS users. Now we're all Communists and Criminals
Gary Richmond, 2010-03-05
Hot topics - last 21 days
Odiogo
Free Software Magazine uses Apollo, project management and CRM for its everyday activities!



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...