OOo Off the Wall: Setting Up Page Styles in OOo Writer
July 26th, 2004 by Bruce Byfield in
Page styles are one of OpenOffice.org's strongest innovations. Together with text frames and integration with Draw, these features nudge OOo Writer out of the word processor category and into the lower reaches of desktop publishing.
Unfortunately, page styles also are one of the hardest features for new users to master. Users of other word processors may be familiar with paragraph and character styles but probably do not know page styles. If they are used to master pages in FrameMaker or PageMaker, users are only slightly better off, because page styles take a different approach to layout than do master pages. And, to make matters worse, OpenOffice.org's version 1.1 on-line help barely goes beyond a description of the fields in the Page Style window.
To use page styles effectively, users need a specific combination of knowledge. To start with, they need a basic knowledge of design elements. Equally important, however, they need to know where the tools are located throughout Writer that let users apply this knowledge.
What follows is a summary of the design elements in Writer and the tools to apply them. It explains the planning you need to do beforehand and how to design the general page and individual elements, such as headers, footers, footnotes and reoccurring graphics. Finally, it explains how to automate the application of page styles for greater convenience as you write.
Before you build styles, ask yourself what styles you are going to need. Many of the pages you need may already exist in OpenOffice.org.
In typography, the basic page is the right one, because when a book is bound, the first page you see after the inside cover is a right-hand page. If you are planning a simple document, modify the Right Page style for your purposes.
If you are designing a document that will be bound, however, or if you simply are a fan of traditional design, you probably want to use the Left Page style as well. Generally, the left page mirrors the right page, so refer to File→Page Preview frequently to check that you are keeping the two pages symmetrical.
Left and right pages are mirror images for at least two good reasons. First, when a book is bound, the margin closest to the center of the book needs to be wider than the outside margin to accommodate the stitches or the glue. This is the right margin on the left page, and the left margin on the right page. Second, regardless of whether the page number is in the header or footer, designers usually prefer to put it on the outside margin of the page to make it easier to read.
For a letter with its sender's address and mailing address, or for a chapter of a longer work, you should design the First Page style so readers can distinguish it at a glance. The first page usually is a modified right page. Its modifications can include a large chapter number, a graphic, a start farther down the page, a drop capital for the first letter or word and a different header.
Other page styles depend on your needs. A two-column Index page style can save space, and you may want to create an Index First Page for it. If you need the occasional landscape page for diagrams, you also may want to create that style. Other page styles depend on your needs. If you plan all of your page styles at the same time, though, you can ensure that they look the same and are not a jumble of improvisations.
Creating a new page style is a simple process. Begin by activating the Stylist floating palette by pressing the F11 key. Then, select the fourth icon from the left on the top of the Stylist. Right-click an entry in the Stylist and select New or Modify. If you select New, the new style is based automatically on the existing style that you click.
Start with the basic formatting listed in Table 1; we revisit other selections later.
Table 1. Basic Formatting for Page Styles
| Field | Suggested Settings |
|---|---|
| Page→Format | Letter in North America, A4 anywhere else. The most common reason for a different size is using envelops of varying sizes. |
| Orientation | Portrait for most text-based documents, landscape for diagrams. |
| Margins | Usually .7 to 1.0 inches. Don't be afraid to be generous with the margins; narrow margins make the entire page cramped. In traditional design for bound books, make the side closest to the center of the book at least .25 inches wider than the outside margin to allow room for binding. |
| Page→Page Layout | Sets up mirrored pages for styles other than Left Page and Right Page. |
| Background | For most purposes, leave the background white. If you do use color, test that the text is readable against the background. The heyday of Wired is long past. |
| Borders | For most purposes, none. Borders around text often are a sign of design insecurity. At times, though, a border may help to group text or contribute to a complex design. |
| Columns | For most purposes, use one column. If you select landscape for a text document, plan on at least two columns or the lines will be too long for easy reading. Too short of a column for the font size may result in too many hyphens. |
Aside from their positions, headers and footers are the same thing: text frames repeated on every page of a particular style. They carry general information about the document, such as the page number, the writer's name or the chapter's title. They also can be used to insert a reoccurring graphic. If not much information is needed, then only one of the two frames may be used.
To set up the basic behavior of a header or footer, go to the appropriate tab in the Page Style window. The Advanced button opens additional settings should you need them. Table 2 indicates the fields with which you should be most concerned.
Table 2. Designing Headers and Footers
| Field | What It Does |
|---|---|
| Header On & Footer On | Creates the header or footer. |
| Same Content Left/Right | Duplicates content on left and right pages. When you're using the Left Page and Right Page styles, this field is unnecessary, so it's turned off. |
| Left Margin & Right Margin | The distance from the edges of the page. Header and footer margins are separate from those of the main text frame on the page. In most cases, however, you want the margins to have the same settings. |
| Spacing | The amount of space between the footer and the bottom of the page or the header and the top of the page. |
| Using Dynamic Spacing | Automatically adjusts the spacing as you add content. This setting can be useful if you add a graphic or are unsure of your present needs. |
| Height | The vertical dimension for the header or footer. |
| Autofit Height | Automatically adjusts the height of the header or footer to the content. This setting can be useful if you add a graphic or are unsure of your present needs. |
| Line Arrangement | Adds a line to the border of the header or footer frame. Click on the side of the border where you want the line (generally, the bottom of the header and the top of the footer). |
| Linestyle | Sets the thickness design and color of the line. A common beginner's mistake is to use too thick of a line. Try to coordinate the color with the page background and the color of headings or any nearby graphics. |
| Spacing to Contents | Sets the spacing between the header or footer and other content. |
| Spacing to Contents→Synchronize | Places an equal amount of space between the header or footer and other content on all sides. |
| Shadow Style | Sets the position and color of a shadow, as well as its distance from the header or footer. This effect is easy to overdo, so use it sparingly. |
Once you have the look of your headers and footers defined, you can add content. You can add what you want manually, or by using fields, you can have headers and footers update automatically when the content changes. Table 3 shows some of the ways you can automate content.
Table 3. Adding Contents to Headers and Footers
| Field | What It Does | Where to Find It |
|---|---|---|
| Page Number | Adds the page number | Insert→Fields→Page Number |
| Page Count | Inserts the total number of pages in the document. | Insert→Fields→Page Count; you can combine this field with the page number and the typing of two characters to produce: <page number> of <page count>) |
| Chapter | Adds the text of the last Heading paragraph style to the header or footer | Insert→Fields→Other→Document→Chapter Automatically; this adds the last heading style used to the header or footer. Use the Layer field to set which level of heading is used in the field. For example, on the First Page, you could set the Layer to 1 to put the Title in the footer, and on other pages you could set the Layer to 2 to put the subheadings in the footer to help readers scan for content. |
| Chapter Number | Adds the number of the last Heading paragraph style to the header or footer when Outline numbering is used. | Outline Numbering must be set up for headings in Tools→Outline Numbering. Then select Insert→Fields→Other→Document→Chapter Number. |
Many page designs do not require footnotes. For those that do, OOo Writer offers the design choices listed in Table 4.
Table 4. Footnote Settings
| Field | What It Does |
|---|---|
| FootNote Area | Not larger than page area. |
| Maximum Footnote Height | Sets the maximum space given to footnotes. |
| Space to Text | The space between the footnote and the main text frame. |
| Separator Line→Position, Weight, Length | The line that divides the footnotes from the rest of the page. |
| Spacing to Footnote Contents | The space between the separator line and the footnote text. |
Unfortunately, version 1.1 of OpenOffice.org has no way of setting a text frame to appear every time a specific page style is used. You can work around this limitation in several ways:
Place the reoccurring elements in the header or the footer. Headers and footers are the only types of frame that allow you to place the same content on different pages. If necessary, you can expand the size of the header or footer. However, this method can disrupt the page style, so it is a limited solution at best.
Add a graphic using the Background tab of the Page Style window. If you set the As field to Graphic, you can browse for the graphic and select Type→Position to place it in one of nine pre-set positions. The limitation of this method is that eight of these positions are around the edge of the text frame, and the ninth is in the middle. In most instances, these probably are not the places where you want the reoccurring element to go. You can compensate by adding a background that is the same color as the paper you'll be using to offset the location of the graphic; this solution may take some trial and error to get right.
Create a graphic in OOo Draw that is the size of the main text frame—that is, the page size minus the margins. On standard letter-size paper with margins of one inch on all sides, this would be 6.5" × 9". The background of the graphic should be the color of the paper on which you plan to print. Add the reoccurring element where you want it and position it in the center of the page as a background. Create one or more paragraph styles that can flow around the reoccurring element, and you're done.
Clearly, none of these solutions is ideal. OOo Writer would greatly enhance its desktop publishing ability if there were a simpler solution, and perhaps it will offer one in future releases. Meanwhile, these workarounds are a way to dodge the limitation.
Once you have designed the page styles, you're ready to use them. The simplest way to apply a page style is in the same way as you would any other style: place the mouse cursor where you want to apply it, press F11 to open the Stylist (if it isn't already open) and select from the list of available page styles. You can get much the same result by selecting Insert→Manual →Page Break and making a selection from the drop-down list in the Styles field. For rarely used page styles, these methods of manual application are good enough.

Figure 5. Choosing a New Page Style
However, for the frequently used page styles, it's more convenient to automate them. There are two ways of automating the application of page styles.
The first way is to use the Next Style field on the Organizer tab of the Page Style Window. For example, if you have three page styles, First, Left Page and Right Page, you can set the Next Style field as shown in Table 5.
Table 5. Setting Up Automatic Page Styles Using the Next Style Field
| Page Style | Next Page Entry |
|---|---|
| First Page | Left Page |
| Left Page | Right Page |
| Right Page | Left Page |
The first page, remember, is a right-hand page, so it is followed by a left page. If you save the document as a template, the documents that use the template automatically start with the first page style and apply the basic page styles without you ever needing to think about them. Any unusual pages can be added manually.
Another method is to create a page style that always starts on a new page. For instance, if you were a teacher, you might want to design a document in which each left page has questions and exercises and each right page has answers and teaching notes. If you created a paragraph style called Questions, you could set up a page style for it on the Text Flow tab of the Paragraph Style window. Table 6 shows the settings used to associate a paragraph style with a page style (in this case, the Left Page style).
Table 6. Associating a Page Style with a Paragraph Style
| Selection | What It Does | Setting to Apply |
|---|---|---|
| Enable | Enables the page break. | — |
| Position field | Sets where the paragraph style is used in relation to the new page. | Before |
| With Page Styles | Enables a page style to be linked to the break. | — |
| Style | Sets the style connected to the break. | Left Page |
The page number field is not used here, although it could be if for some reason you continually wanted to reset the Questions page to 1. Create another paragraph style called Answers that is assigned to the Right Page. Afterwards, selecting one of the two paragraph styles automatically adds the page style you want as well.
Although most people rarely notice it, design can be a lifelong study and at least rates as a craft, if not an art. Adding design concerns to a description of how to use a program with as many features as OpenOffice.org Writer only adds to the complexity. But it does provide a starting point for understanding what you can do with design in general and with Writer page styles specifically. The rest—including when you should ignore the suggestions I've made—is practice.
--
Bruce Byfield (nanday)
Subscribe now!
Breaking News
| SSL Glitch Unlocks Debian, Ubuntu, & Others | 1 hour 40 min ago |
| MySpace Cashes in Spam to the Tune of $234 Million | 3 hours 41 min ago |
| Google Shoos the Trustbusters Away | 1 day 5 min ago |
| Skype Dumps GPL Jump | 1 day 2 hours ago |
Featured Video
Linux Journal Gadget Guy, Shawn Powers, takes us through installing Ubuntu on a machine running Windows with the Wubi installer.




Delicious
Digg
Reddit
Newsvine
Technorati






Re: OOo Off the Wall: Setting Up Page Styles in OOo Writer
On October 19th, 2004 Anonymous says:
Reoccurring Elements (on a page)
Another possibility for adding reoccurring objects is to use drawing elements and place these in the header (anchored to paragraph). Drawing Elements are not limited to the frame area but can extend outside of it. This method allows text/ graphics in the page margins which the others do not.
For Text Only this is simple as creating a graphics object (eg. Rectangle) and inserting text by double clicking the object. Then set the line and area properties to invisible or other as appropriate.
Graphics can be changed to Drawing Objects by copying the graphic and pasting into Draw. Then copy the graphic from Draw and paste it into the header. By default (at least on my set-up) it is pasted as a ?Drawing Format?object, but otherwise Edit> Paste Special> Drawing Format will do it.
As with all workarounds the downside: Text wrap will not work for text outside the Header Frame . Therefore this solution is good for objects outside of text areas such as in the side margins. Also if you are sharing files with Microsoft users expect some challenges, since Microsoft is more limited in their handling of text in graphics.
Page Number Field problem :S
On August 4th, 2004 Anonymous says:
I have 2 problems in OO:
1) Insertng Page Number Field, where a there is a large document (+1Mb, due to images/OLE objects), fails to display/print the page number over a value greater than 32; the page number field remains, but no page number is displayed/print from then on (apply page preview to verify this).
2) The same occurs with page number fields when applying an offset, if the offset makes the page number field to be greater than 32, then the page number field does not display/print any number and appears empty after displaying page number 32 (again, apply page preview to verify this).
Is there a way around this ???
Manual and automated page breaks
On August 2nd, 2004 ursacol02 (not verified) says:
as a longtime user of OOo i would suggest everyone that they try to automate the page breaks (Next style setting) as much as possible. sometimes, when you have the Next style defined and you use Manual page break instead, you will get additional page breaks, which can mess up you page numbering and print empty pages.
urska
Re: OOo Off the Wall: Setting Up Page Styles in OOo Writer
On July 27th, 2004 Anonymous says:
"Spacing: The amount of space between the footer and the bottom of the page or the header and the top of the page." This is, at best, imprecise. It's actually the amount of space between the header/footer and the text that appears in the body of the page. The way it's phrased here makes it sound as if it's the space between the header/footer and the top or bottom edge of the sheet of paper the header/footer will appear on. In the same section, it should be made clearer that items found in other tabs (than header/footer tabs) are being discussed in addition.
Re: OOo Off the Wall: Setting Up Page Styles in OOo Writer
On July 26th, 2004 Anonymous says:
One of the things I like about SO/OOo is that the page formatting menu is much easier to find and use that MS-Word. It does help to have had exposure to some sort of DTP package to get one's mind out of the automated typewriter model of most word processing programs.