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.
Choose Format > Styles and Formatting. In that window, click the Page Styles icon at the top.
Right-click in the blank part and choose New. You're going to make the page styles you need.
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.
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.
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.
Then click the Footer tab and turn it on by marking the checkbox.
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.
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".
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.
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.)
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.
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.)
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.
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.
Or try using all three approaches together.
Great tutorial, worked fine for me :)
Posted by: intr3py | March 08, 2006 at 05:54 PM
Thanks for the nice help.
Posted by: Aravind | April 07, 2006 at 01:17 AM
Hi there,
When I Insert my second style at the point where I want to change, I end up with a blank page ( which makes sense as I'm inserting a page break ). But then when I try to delete this page the formating reverts back. Can't seem to make it stick !
cheers, Dave
Posted by: Dave Porter | April 14, 2006 at 06:32 PM
Hi Dave,
Yes, I think that's just the way it's supposed to work. The page break is like a dam in a river; remove the dam and the formatting just floods down into the rest of the document.
You might want to keep the page break and just change the page style (if you need to) by clicking in that second page and double-clicking the page style you want.
Solveig
Posted by: Solveig | April 15, 2006 at 09:22 AM
It works for Openoffice writer, but how do I apply this technique in Openoffice calc?
Posted by: Jeff | April 18, 2006 at 09:00 PM
>> It works for Openoffice writer, but how do I apply this technique in Openoffice calc?
Good question. Choose Format > Page, click the sheet tab, and specify a number in First Page Number.
Posted by: Solveig | May 01, 2006 at 05:37 PM
Why didn't you just use the "First Page" style, instead of creating a new page style? I just tried using "First Page", and "Default" and they seem to work well with my needs. The reason that I bring this up is because it helps the new users when they can just use what is already there. It lowers the learning curve. Would you be willing to change that in your tutorial, to reflect that they can use "First Page", and "Default", instead of "Cover Page", and "MainPage"?
Also, I just found out that when we use manual breaks, it seems that we can have our cover pages be at the end of our documents, and thus, the "First Page" style can also be applied to the last page of the document. This is very handy. Thanks! This manual break feature is what I've been looking for, for quite some time. I thought that Ctrl+Enter was the same as Manual Break, but I guess not. I've been wrestling with this page numbering problem for a while for an assignment. I wanted to make a first page, then an automatic table of contents, then the default pages, but there was no way to specify when to automatically switch from a table of contents without a page number in the header, to a default page with a page number in the header. Now that I know about manual breaks, it seems that I can do it easily.
Posted by: Eugene Wong | May 06, 2006 at 07:19 PM
Hi,when I new a cover page which has not footer and header,the doc has 1 page only.But when I insert another page with some specific style from Insert->manual break with "change page number" starting from a number =4 ,the doc has 2 pages.I can't be sure this is a bug.
Posted by: Chipha | May 12, 2006 at 11:24 AM
Hi,when I new a cover page which has not footer and header,the doc has 1 page only.But when I insert another page with some specific style from Insert->manual break with "change page number" starting from a number less than 4 ,the doc has 3 pages,which can be seen from status bar.If string from a number greater than 3,the doc has 2 pages.I can't be sure that if this is a bug.
Posted by: Chipha | May 12, 2006 at 11:32 AM
Hi Chipha,
>> Hi,when I new a cover page which has not footer and header,the doc has 1 page only.But when I insert another page with some specific style from Insert->manual break with "change page number" starting from a number less than 4 ,the doc has 3 pages,which can be seen from status bar.
Go to Format > Page, Page tab, and in Page Layout on the right see if it is set to Only Right or Only Left. Set it to "Right and Left" and see if that helps.
Also, create a new empty document and see if that document is how you want it. Then just go through all the settings in the Page window to compare.
If you're using styles that create a new page break (Format > Paragraph > Text Flow), that might affect it, too.
If you're using page styles that have another style specified as Next (Format > Page > Organizer, Next Style) that might also be a factor.
Good luck!
Solveig
Posted by: Solveig | May 18, 2006 at 07:00 AM
This is amazing, I've been fighting with OOo and page styles for since I use it. It's an elegant way of using them.
You solved my problems with the numeration too.
Thanks
Posted by: xavier | June 12, 2006 at 03:14 AM
Hi Xavier,
Great! I'm glad it was useful.
Solveig
Posted by: Solveig | June 12, 2006 at 07:10 AM
It works -- until I try either printing, or a Print Preview. Then it is clear that OOW has added a blank page after the cover. In this document, the first page is page-style Didache Cover Page, with no footer, and subsequent pages are Didache Main Body, with footer. I have checked and rechecked all of the above. Is there a way to get rid of that invisible cover sheet?
Posted by: Jonathan E. Brickman | July 23, 2006 at 05:54 PM
Hi Jonathan,
Try checking the odd/even settings for each page style. Format > Page, and under the Header and the Footer tabs, see if the Same Content Left/Right options are checked. If they're not, check them and then see if that helps.
Solveig
Posted by: Solveig Haugland | July 24, 2006 at 04:43 AM
Hi! Thanks so much for your blog, it's been a life-saver!
I've got this manual break/new page style method to work well, and have used it repeatedly. However, I've got a draft document with a table of contents page, and then the actual text of the document. The page numbering starts with page 1 on the first page of text, but in the automated table of content, it's showing up as page 2.
I can't seem to find a way to either:
Change the table of contents settings so it uses the page numbering as the document itself is showing, or;
Change the page number on the actual text pages back so that the TOC page is counted and the text starts on page 2, thus making the TOC numbering match what is on the pages.
Is there a way to change the starting page number *after* the text is already written?
Posted by: Gayze | August 03, 2006 at 09:28 AM
Hi Gayze,
Thanks for writing, I appreciate it.
The first thing I can think of is just updating the TOC. Select part of it, right-click and choose Update.
Posted by: Solveig Haugland | August 05, 2006 at 01:12 PM
Whew! Complicated! But exactly what I wanted to know. Thanks.
Posted by: tofor | August 05, 2006 at 06:12 PM
Yeah, it's a little complex. ;> Oh well. You can use existing styles (and modify them if necessary) or create your own.
Posted by: Solveig Haugland | August 06, 2006 at 07:04 AM
Sorry this does not work.
How do you get rid of this inserted blank page. Page 1 is always a RH Page seems to be the issue.
"Hi Jonathan,
Try checking the odd/even settings for each page style. Format > Page, and under the Header and the Footer tabs, see if the Same Content Left/Right options are checked. If they're not, check them and then see if that helps.
Solveig"
Posted by: Andre | August 17, 2006 at 05:36 AM
Hi Solveig,
I have a little different problem. My doc has a cover page without page number, 7 introductory pages (table of contents, table of figures, preface, acknowledgements, etc...)that are numbered with roman symbols (i,ii,iii,iv,v,...), and follows the chapters, that must be numbered with arabic symbols beginning with 1 (1,2,3,4,5...). I have tried a lot of style compositions with no success. Can you help me?
Posted by: Carlos E F Roland | September 08, 2006 at 02:20 PM
Thank you so much for posting this; it was extremely helpful to me.
Posted by: Dylan | September 22, 2006 at 07:59 AM
Yeah, real helpful, thanks guys! :) dont forget those page breaks tho!
Posted by: Phil | November 10, 2006 at 04:46 AM
Hi
I am having the same problem as Chiphi, Jonathan E. Brickman and Andre.
If you have the first page in the "First Page" style, and insert a manual break to change to the "Default" style with a page number of 1, then OOo inserts a blank page.
You do not see this in the document. You see it if you go File|Page Preview -- it has a big "blank page" shown in the middle of it.
This would make sense if you (a) want the Default section to start on a new sheet AND (b) are printing to a printer that has an automatic duplexing unit. It does not make sense otherwise. In particular, when you export to a pdf (which I have to for submitting college assignments), there is no reason for a blank page. But I cannot get rid of it! My First Page style definitely has "Right and left" turned on, although I have tried "Only right" and "Only left" as well, to see if that changed anything. I could get the blank page to be the first, rather than second page, but I could not get it to go away. Incidentally, putting "only right" (or left) settings on the Default style gave me a spurious blank page in between every page of the document!
I'd be glad if anyone could post a way around this!
I think Carlos E. F. Roland's problem is solvable in this way: create 3 page styles, one for first page, one for the pages with Roman numbering, and one for Arabic numbering. In the "Page" tab of the page style for the section with Roman numbering, change "Format" to "i, ii, iii...". Change from one style to the next using "Insert|Manual Break|Page Break" as described, and change the page number to 1 each time. Use the "Insert|Indexes and Tables|Indexes and Tables..." to insert a contents. If necessary, turn off the "Create from Outline" and use "Insert|Indexes and Tables|Entry" at each chapter, to create an entry in the Table of Contents only for those pages that you want in the contents -- "Create from Outline" automatically creates the right table for what I right but it might not be right for you.
HTH
Frank
Posted by: Frank Peelo | November 12, 2006 at 03:20 AM
To Frank, Chiphi, Jonathan E. Brickman and Andre:
I was having the exact same problem. I wanted to convert an Open Office document into a PDF file to hand in an essay digitally. The solution that worked for me is very simple: do not use "export directly as PDF", but rather "File > Export as PDF > ...[fill in file name & push 'export']...
Now you have options to choose from. In the "Pages" section of the PDF option dialog box that appeared, choose "range" and exclude the blank page(s), e.g. "1-3,4-25" to exclude the blank page being page 4 in the document. You can check which page numbers are blank pages in File > Page Preview.
Good luck!
Posted by: Barabas | November 15, 2006 at 07:06 AM
Thanks Barabas
Good idea, I didn't think of that - but I've found a solution too :) so I came back to post it...
Upgrade to v2.0.4 -- it was a bug, and they fixed it.
There is a new option in Tools|Options, OpenOffice.org Writer section, Print dialogue, under the "Other". The option is called "Print automatically inserted blank pages" and it does what it says. In particular, it only affects printing, not PDF generation.
For outputting to PDF, there is a similar option on the "PDF Options" dialogue which pops up before the PDF is generated -- except that it's called "Export automatically inserted blank pages" instead of "Print...". It's right at the bottom of the dialogue and it does not get cleared if you clear the "Print..." checkbox I mentioned earlier.
I was using whatever version came with Mandriva 2006 (OOo 2.0.1, I think), because an upgrade would take too long to come through the modem. But OOo 2.0.4 was on the DVD that came with the latest Linux Format magazine, so I upgraded and now all is well.
Cheers
Frank
Posted by: Frank Peelo | November 23, 2006 at 07:37 AM
Hi all,
Sorry for missing the big discussion -- my email notification re comments is broken and I'm not sure when it's going to be fixed.
Re Carlos's question about numbering, choose Insert > Fields > Page Number and put it in the header or footer. Then for the page style for that header or footer, go Format > Page, Page tag, and in the Format list select the type of numbering you want.
Frank, great tip on the Tools > Options window! That's great, hadn't really noticed it.
I usually don't use the pre-created page styles so haven't encountered this as much. I just did a bunch of tests and for me, with Mirrored instead of Right/Left, the blank thing didn't happen.
Solveig
Posted by: Solveig Haugland | November 27, 2006 at 12:38 PM
Thanks
Posted by: Chris | January 07, 2007 at 05:29 PM
Hi,
I have exactly the same problem as Carlos E. F. Roland. I have two different page styles, one numbered with Roman numbers, one with Arabic.
In the TOC I also want it distinguished in Roman and Arabic numbers.
I.e. like that:
Abstract..........I
Definitions.......II
Introduction......1
I don't know what to try else anymore.
Thanks in advance,
Thomas
Posted by: Thomas Neuhaus | January 17, 2007 at 08:29 AM
Hi Thomas,
To control the page number type for a page style, modify the page style and in the Page tab, select the numbering type using the Format dropdown list. Also be sure that when you inserted the page number in the footer, that you just did it as Insert > Fields > Page Number so that it will reflect the current page style. Double-click the page number field in the footer to check. If in the window that appears, in the far right column, As Page Style is highlighted, that's correct. (You could change the page number style here but it's better to control it through the page style definition.)
This should correctly show up in the TOC.
Solveig
Posted by: Solveig Haugland | January 17, 2007 at 08:48 AM
Thanks a lot for your immediate and detailed answer.
Now even me could do it the right way ;-)
Regards,
Thomas
Posted by: Thomas Neuhaus | January 17, 2007 at 08:58 AM
Hi, for those getting the blank pages, I finally figured out, how to properly get rid of the blank pages
When you create a new page style, put the next type of style on the 'Next Style' column. ie:
create a TOC page style with the next style pointing to your 'Body' style. Then create a Cover Page page style then point next style to the TOC page style. Instead of inserting a page break after the Cover Page, just insert the necessary row spaces to go to the next page. The next page will be the TOC style, insert spaces until the next page and you are now in your 'Body' page style.
Now if I can just reset the total page count.
Thanks for the tips.
Francis
Posted by: Francis Manas | January 18, 2007 at 02:31 AM
Thanks very much! Great tip! After struggling with the help docs for a while I couldn't find an answer to this that worked. But your tut has worked great!
Posted by: Tim | January 25, 2007 at 05:18 PM
I found it to be very helpful, thanks a lot.
But I have a strange problem: I can not (with OO 2.1.06) to set arbitrary page numbers starting from the very first page.
It used to (with previous versions of OO) worked, and it was very simple.
If I wanted to start my document form the page 47, I simply clicked on the first paragraph of the document, chose "Edit Paragraph Style", went to "Text Flow",
in the sectuion "Breaks", I activated "Insert" and "With Page Style" and set page number to 47. I didn't even change the page style (it remained to be Default).
After that, I pressed Ok, and only had to turn on Footer (Menu: Insert), and then insert page numbers Menu: Insert-Fields-Page Numbers).
(it is in fact exactly the same procedure described in OpenOffice help section "Starting with a defined page number" )
This procedure worked with the latest OO (state: Dec.2006), but diesn't work now.
Now, if I do that, every single patagraph is displayed on the separate page.
Does anyone know what happened?
The solution described here is great, but it doesn't allow to see the page number on the first page of the document *too*!
many thanks in advance.
A.K.
Posted by: A.K. | January 30, 2007 at 05:33 AM
Hi AK,
The feature works the same way. It's just that I think before you choose Format > Paragraph, and now you are modifying the paragraph style itself, Format > Styles and Formatting, selecting the paragraph style and choosing Edit. Alternately you might be somehow applying the changes you're making to every paragraph rather than just one paragraph.
I just did it in 2.1 and it worked correctly.
Just click to the left of the first paragraph on the page, choose Format > Paragraph, and make the changes in the Text Flow tab. That should work.
Solveig
Posted by: Solveig Haugland | January 30, 2007 at 02:34 PM
First, I don't know what a URL is.
Background and problem: I have a multi page document, cover page, intro pages,TOC, body, and appendix. The intro and TOC pages are numbered i, ii etc. The pages in the body are marked 1,2,... . I want the pages in the appendix to read A-1, A-2 etc.. Question 1: Using Word's customized method of changing styles, I have been able to make the first page of the appendix A-1 but the second page will not go to A-2. Why not??
Question 2: When I try to force A-2 into the second page footer in the appendix the page numbers in the rest of the document change correspondingly and in sequenceA-3,A-4... . I do I get the second and subsequent pages to change numbers in the footer in the appendix without changing numbers in the body of the document?
Posted by: Bill Knippenberg | January 31, 2007 at 01:55 PM
Hi Bill,
For the appendix, you should be able to just create a new page style, Appendix or whatever. Turn on the footer when you define the style, in the Footer tab of the page style window, or by choosing Insert > Footer > pagestylename.
Add the page number to the appendix footer by choosing Insert > Fields > Page Number and then to the left of the page number, type A-
After you've done that, be sure to save the document so that the content of the page footer will be saved with the page style.
To switch from your normal content page style to the appendix page style, just use the standard approach. Click to the left of the heading for your appendix and choose Insert > Manual Break, select the Appendix page style in the dropdown list of the window that appears, and reset the page number to 1.
You could also use other approaches described in this post to switch page styles and change the page number.
Posted by: Solveig Haugland | February 02, 2007 at 06:43 AM
Dear Solveig
I have page numbers in arabic starting from 1 for each new chapter. But the page numbers are english in TOC. Is there any way to change them into arabic numerals (whith chapter numbers)?
Best Regards
Uli
Posted by: Uli | February 17, 2007 at 07:59 AM
Hmmm...the TOC should be correctly reflecting the numbers in the footers. Refresh the TOC (right-click on the TOC and choose Update) to see if that helps.
Solveig
Posted by: Solveig Haugland | February 19, 2007 at 07:25 AM
AH !!!
To the guy that said he gets a BLANK PAGE after his title page. I had this problem too, what a pain. The fix follows, not the one that was suggested by someone else.
Suppressing printout of empty pages
If two even or two odd pages directly follow each other in your document, Writer will insert an empty page by default. You can suppress those automatically generated empty pages from printing and from exporting to PDF.
1.Choose Tools - Options - OpenOffice.org Writer - Print.
2.Remove the check mark from Print automatically inserted blank pages.
Posted by: Michael B | February 23, 2007 at 01:47 PM
Changing page numbers and offsets worked will for me... but when I use PageCount I still get all the pages not just the count for this Page Style.
I have a title page i and 9 normal page but the page count on the normal pages shows Page 3 of 10
Posted by: Matthew Ford | March 07, 2007 at 02:30 PM
Thanks. Your instructions worked great!!!!
Posted by: Tim | July 22, 2007 at 03:21 PM
Hi Tim,
Glad it worked! That is definitely one procedure that needs an Easy Button, though.
Solveig
Posted by: Solveig Haugland | July 22, 2007 at 04:05 PM
Bless you for posting this.
Posted by: Ian | September 26, 2007 at 09:35 PM
Hi Ian,
With every release I keep hoping that there'll be a nice simple "suppress first page header and footer" checkbox, but nt so far. :(
Solveig
Posted by: Solveig Haugland | October 03, 2007 at 12:11 PM
Rather than manually inserting a page break, click the cursor at the beginning of the text of the section you want to start a new page number and go to Format|Paragraph|Text Flow|Breaks, select Insert and With Page Style, and select what page number to start with. This gets rid of blank page and gives you the page number you want.
Posted by: Mark | October 03, 2007 at 03:36 PM
Just wanted to also thank you for this advice, it helped me a lot! Even though it's a year and a half later, Google still pulled it up first for me. Now my book will be much more professional looking (now that I've figured out how to alternate where the page numbers appear on left and right pages too).
Thanks!
Posted by: Murdoc Addams | October 29, 2007 at 07:45 AM
I used this procedure and I ended up with a field "Page numbers" in the footer on all pages except the first one.
I am unable to find a numbering style in the format box.
Raymond
Posted by: Raymond | November 02, 2007 at 02:11 PM
I used this procedure and I ended up with a field "Page numbers" in the footer on all pages except the first one.
I am unable to find a numbering style in the format box.
Raymond
Posted by: Raymond | November 02, 2007 at 02:12 PM
Thanks, exactly what I needed. It shouldn't be this difficult though.
Posted by: Ari | January 12, 2008 at 06:05 PM
Exactly. I'm really hoping that in the next major rev (or minor) that there will be a "no page number on first page" checkbox, at the very least.
Solveig
Posted by: Solveig | January 13, 2008 at 06:57 AM