« Book Update, and Question About What Other Open Source Products to Write About | Main | Columns in OpenOffice Writer: Balancing Columns, and Inserting a Page or Pages With Columns Without Resorting to Page Styles, Updated March 2006 »

September 18, 2006

Starting Page Numbering on Page 2, and Other Ways to Mix Page Styles in a Document

Logo_pagestyle

Note: See also this blog on just using the offset feature.


Note: This is a repost from December that didn't get published correctly. Also see my post that will be coming Wednesday, on an easier approach if you just want to insert some columns in a document.

All right. It's the elephant in the room, and it's time to address it.

How do you have no page number on the first page, then have the second page start with the page number 1 in the footer? Or with page number 42, or 623?

(Or how do you have a landscape page in a portrait document?)

Good question. It's a common one. It's actually not more complex than the tax code, but there's some setup you need to do that's a little more complicated than the task at hand. I would like to see a checkbox/field combination somewhere  that would let you specify "For this document, start the page footer on page __ and make the first page number be ___". However, for now, we do it this way.

There are two things to control in this situation:
- Whether there is a page number in the footer--i.e. whether there is any number at all in there, regardless of what it is.
- If there is a page number in the footer, what that page number is.

You control the first with page styles: you set up the page style, say "yes, there's a footer and a page number in it" or "no, no stinkin' page numbers here" and then apply that page style.

You control the second a few different ways. I'm going to show you the most straightforward which is just to create a page break, switch to a different page style, and specify what the page number for that page is.: 1, 42,  623, or anything else.

Let's look at part 1 first.  Page styles are actually a really nice, useful feature.

Part 1: Setting Up Page Styles

Bring up the document you're working with.  Remove any page breaks you've put in between the first and second pages. This sample  document I'm using has some text that clearly goes on a cover page, and then it runs immediately into the content text that should start on page 2.

For any of these images, just click on any of them that are too small for you to read. (They mostly all are, but you might not need to get more detail on all of them.)

Here's my sample document. I want no page number on the first page and page number 1 on the 2nd page.

Page_1

Choose Format > Styles and Formatting. In that window, click the Page Styles icon at the top.

Page2_1

Right-click in the blank part and choose New. You're going to make the page styles you need.

Page3_1

In the Organizer tab of the page styles window, just name the style  something like Cover Page. This is the one with no footer and no page number.

Page4_1

You actually don't need to do anything else. But just to make sure it's clear when we're applying the styles in this procedure, I'm going to suggest that you  click the Background tab and give it the  light gray background.

Page5

Click OK.

Now, right-click in a blank part of the Styles and Formatting window again, and choose New. This time you're creating the other page style, the one for the main body where you're going to have a page number and start it at 1. Call it Main Body or something, in the Organizer tab.

Page6

Then click the Footer tab and turn it on by marking the checkbox.

Page7

That's all you really need to do, so click OK.

Part 2: Applying a Page Style, Then Switching to Another

Click in the first page of the document, where you want the Cover Page page style. In the Styles and Formatting window, double-click the Cover Page style you created. The style will be applied, as you can tell from the gray background.

Page8

The style is applied not only to that page, but to the entire document. That's what's supposed to happen at this point.

Now you're ready to switch. So click to the left of the first word where you want to switch, the first word of the next page usually. Or click to the right of the last word on the current page. Whatever works. Here I've clicked to the left of "Why".

Page9

Choose Insert > Manual Break. In the window that appears, just tell it that now you want to switch to the Main Body page style by selecting it in the list.

Page10

That second page is also really the first content page of the document, so you'd like it to be page 1. So select the page numbering checkbox and specify 1. (Or any number you want.)

Page_changepagenumber

Click OK.

A page break will be inserted where your cursor was, and the new page style you specified, Main Page, will be applied from that page on in the document.

Page_showingchange

Now, there's one more step. You've already created the footer for that Main Page style, but it's time to put content in it.  I.e., the page number. This is easy. Just scroll to the bottom of the first content page (the second page), type the word page and a space if you want, then choose Insert > Fields > Page Number. The page number will appear. And  you already specified that on this page where the page style switches to MainPage, the page numbering should restart at 1.  So it restarts at 1. (If you had specified page number 42 earlier, this number would be 42.)

Page11

That's All There Is To It

Just create the styles you want, apply the first style, then just switch page styles the way we did in this example.

Tips for Landscape and Portrait in the Same Document

To have a landscape page in a portrait document, just create a page style and select the Landscape option of the Page tab. So in this example, you could create a third page style, call it Landscape or Horizontal. Switch to it the way we did here with the manual break, but just don't change the page number.

Tips for Automatic Switching From One Page Style to Another

If you want to automatically switch from one page style to another, you have two options.

In the page style definition window, click the Organizer tab and find the Next Style list. You'll still need to insert manual page breaks sometimes but you won't have to switch styles as we did earlier.

Tip1_1

In the paragraph style definition window, click the Text Flow tab and find the section in the middle dealing with creating a page break with a particular page style on the next page.

Tip2_1

Or try using all three approaches together.


TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8341cdb1753ef00d834c1033b53ef

Listed below are links to weblogs that reference Starting Page Numbering on Page 2, and Other Ways to Mix Page Styles in a Document:

Comments

Thanks for your howto on the cover page numbering and new sections, I am in the middle of migrating myself from MS Word ... phew! I agree, there could be a dialog for page numbering for a new section, new page, the page-numbering in MSW is bizarre in the extreme ...

Thank you so much for the page numbering information! I was going crazy trying to figure out how to start numbering on the second page until, of course, I found this entry. I didn't expect page numbers to be the most difficult part of my term papers!

Isn't it odd, such a simple thing is sooo not obvious? This is my number one wish for a future version: a nice checkbox instead of using styles.

Solveig

Thank you for the how-to. Quite a cumbersome solution to a common problem! I do agree that this should be a simple standard feature.

Yeah, if there were one thing that would make training classes simpler, it would be this feature. I give clients a template with this feature built in.

Thank you for your how-to. Very useful. I wonder if it is possible to re-start page count from a given page ( section ) in the document?

Hi Ivan,

You can choose Insert > Manual Break at any point, select any page style in the dropdown list, and then select the checkbox to restart page numbering. Then type 1 or wherever you want to restart.

Solveig

Thanks so much for the info, I'd already given up on the landscape thing but now I can do page numbers AND add landscape pages :D

Hey thanks for this. Really helped me!

How about adding a page count of a section?
I have a paper with an introductory section (numbered i, ii, iii) and the main body with numbers 1...56. I would like to have a field in the introductory section, containing the number of pages of the main body of the paper (i.e., 56) and have that automatically updating. I'm sure there is a way to do this, just haven't figured it out yet.

Hi Mikael,

That's a bit of a brain-cruncher. So you want to display a field showing the total number of pages in a subsection of a document.

The only thing I can think of is a hack. Put a normal page number field, in white so it doesn't display, at the end of the content so it displays the number on the last page. Then use a cross-reference or bookmark to display that page number in black, wherever it appears. (Select the white page number, Insert > Cross Reference, select Set Cross Reference, and name it. Then back where you want to display the total page count, choose Insert > Cross Reference, select Insert Cross Reference, pick the cross reference previously created, select Reference as the format.)

I just tried it and it worked.

Solveig

How to start on the very first page with a different pagenumber from 1?
I am in the process of writing a book, but as it grows too large I've cut it in pieces (Oo lack of speed!). But the second part must begin with the pagenumber+1 of the first part. Each piece will be exported in pdf and than glued together.

I have tried a manual break as the first character of a new piece but got an extra empty page. How can it be fixed?

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment