Setting up basic page layout using styles
Introduction: page styles
In Writer, page styles define the basic layout of all pages, including page size, margins, the placement of headers and footers, borders and backgrounds, number of columns, and so on.
Writer comes with several page styles, which you can build on or modify, and you can define new (custom) page styles. You can have one or many page styles in a single document.
|All pages in a Writer document are based on styles. If you do not specify a page style, Writer uses the Default page style.|
To change the layout of individual pages, either define a new page style or use one of the techniques (sections, frames, or tables) described later in this chapter.
This chapter describes some uses of page styles. Some other uses are discussed in Chapter 6 (Introduction to Styles). The Page Style dialog box is covered in detail in Chapter 7 (Working with Styles).
|Any modifications of page styles, including the Default page style, apply only to the document you are working on. If you want the changes to be the default for all documents, you need to put the changes into a template and make that template the default template. See Chapter 10 (Working with Templates) for details.|
Inserting a page break without switching the style
In many documents (for example, a multi-page report), you may want the text to flow from one page to the next as you add or delete information. Writer does this automatically, unless you override the text flow using one of the techniques described earlier.
If you do want a page break in a particular place, for example, to put a heading at the top of a new page, here is how to do it:
- Position the cursor in the paragraph you want to be at the start of the next page. Right-click and choose Paragraph in the pop-up menu.
- On the Text Flow page of the Paragraph dialog box, in the Breaks section, check Insert. Do not check With Page Style.
- Click OK to position the paragraph at the start of the next page.
Defining a different first page for a document
Many documents, such as letters and reports, have a first page that is different from the other pages in the document. For example, the first page of a letterhead typically has a different header, as shown below, or the first page of a report might have no header or footer, while the other pages do. With OOo, you can define the style for the first page and specify the style for the following page to be applied automatically.
As an example, we can use the First Page and Default page styles that come with OOo. The diagram below shows what we want to happen: the first page is to be followed by the default page, and all the following pages are to be in the Default page style.
To set up this sequence:
- Open the Styles and Formatting window. (You can choose one of the following: click the Styles and Formatting icon located at the left-hand end of the object bar, choose Format > Styles and Formatting, or press F11.)
- On the Styles and Formatting window, click on the Page Styles icon (fourth from the left) to display a list of page styles.
- Right-click on First Page and select Modify from the pop-up menu.
- On the Organizer page of the Page Style dialog box (Figure 5), look at the Next Style property. This property defines what the page style for the next page will be. It should be set to Default, but if it is not, you can change the next style by clicking on the drop-down button and choosing Default from the list of page styles.
- On the other pages of this dialog box, you can turn on or off the header and footer for the first page and define other characteristics, such as columns, a page border, or a page background. For more information, see Chapter 7 (Working with Styles).
- Click OK to save the changes.
|You can override the Next Style property by manually inserting a page break and specifying a page style or by starting a page with a paragraph or table that has its own page style property defined. These techniques are described in Inserting a landscape page into a portrait document.|
Changing page orientation within a document
A document can contain pages in more than one orientation. A common scenario is to have a landscape page in the middle of a document, whereas the other pages are in a portrait orientation. Here are the steps to achieve it.
Setting up a landscape page style
- Note the page style that is current and the margin settings. (You can find the margin settings on the Page page of the Page Style dialog box, as shown in step 4.)
- Create a new style. (Right-click on the current page style in the Styles and Formatting window and choose New.)
- On the Organizer page of the Page Style dialog box, name (by typing in the Name field) this new style Landscape and set the Next Style property to Landscape (to allow for having more than one sequential landscape page).
- On the Page page of the Page Style dialog box, set the Orientation to Landscape. The width and height attributes of the page will automatically change.
- Change the margins so that they correspond with the margins of the portrait page. That is, the portrait top margin becomes the landscape left margin, and so on.
- Click OK to save the changes.
Inserting a landscape page into a portrait document
Now that you have defined the Landscape page style, here is how to apply it.
- Position the cursor in the paragraph or table at the start of the page that is to be set to landscape. Right-click and choose Paragraph or Table, respectively, in the pop-up menu.
- On the Text Flow page of the Paragraph dialog box or the Table Format dialog box, select Insert (or Break for a table) and With Page Style. Set the Page Style property to Landscape. Click OK to close the dialog box and to apply the new page style.
- Position the cursor in the paragraph or table where the page is to return to portrait orientation and change the properties of that paragraph or table properties so that With Page Style is the portrait page style that was used before the Landscape page style.
- Click OK to return to the previous portrait page style.
|If you need the headers or footers on the landscape pages to be in portrait orientation, see Portrait headers on landscape pages.|
|Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).|