[EMAIL PROTECTED] wrote:
I have a document which has 5 pages and I want it to be as below:
First page (no header and footer)
Page 1 (in footer, I want to display "Page 1 of 4")
Page 2 (in footer, I want to display "Page 2 of 4")
Page 3 (in footer, I want to display "Page 3 of 4")
Page 4 (in footer, I want to display "Page 4 of 4")
I checked in Help and what I did was:
- Insert a page break at the end of the first page and format the first
page without header and footer as well as reset the page number
- At the end of the first page, Insert -> Fields -> Others -> Set page
variables: On with Offset = -1
And the result I have is:
First page (no header and footer)
Page 1 (in footer, I want to display "Page 1 of 6")
Page 2 (in footer, I want to display "Page 2 of 6")
Page 3 (in footer, I want to display "Page 3 of 6")
Page 4 (in footer, I want to display "Page 4 of 6")
I don't know what wrong I have done and how I can do this.
There are 2 things going on here. The first one you cannot do
anything about, but there is a workaround for the second one.
OOo considers the first page as a "page 1". If you renumber the
second page to start again at page 1, OOo says "this is an
odd-numbered page following an odd-numbered page, therefore it
needs an even-numbered page in between. There is nothing you can
do about this; OOo always counts the missing page 2 as if it were
there, even though it isn't. Look in the status bar and you'll
see what I mean. The first page will show Page 1/3 in the status
bar. The second page will show Page 1 3/3 in the status bar. OOo
thinks there are 3 pages.
The second thing is that OOo always counts all of the pages when
calculating the page count. So you will need to subtract *2*, not
1, from the page count. The bad news is: you cannot apply an
offset to a Page Count field. The good news is: there is a
workaround, which is explained in the section "Solving the page
count problem" in Chapter 4 of the Writer Guide, "Formatting
Pages". (Thanks to Ian Laurenson for this workaround.)
Ch4 - Formatting Pages,
http://documentation.openoffice.org/manuals/oooauthors2/0204WG-FormattingPages.pdf
I'll copy the explanation here, with an amendment to make it
specific to your problem.
Solving the page count problem
If you know exactly how many pages are not to be included in the
page count, then instead of inserting a Page count field, do the
following:
1) Position the cursor in the footer where you want the page
count to appear.
2) Press F2 to open the formula bar, just above the horizontal
ruler in the main Writer window..
3) After the equal sign, type "page-x" (without the quotes) where
x is the number of pages to be subtracted. In your case, you
would type "page-2".
4) Press Enter to close the formula bar and insert the resulting
field into the footer of the document.
Regards, Jean
Jean Hollis Weber
---------
Get printed copies of "Getting Started with OOo2.0" and
"OOo Writer Guide" from http://www.lulu.com/opendocument
Free PDFs are at http://documentation.openoffice.org/manuals/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]