#1
|
|||
|
|||
Number Pages - not total pages, but actual pages.
Hi, I need to number my document with Page x of y, is mustn't number the cover page or the TOC page (or count them), I have a section break in and I have changed the footer to SECTIONPAGE instead of NUMPAGES - in the Field Code.
However the problem is that I need to insert another section break in order to put a landscape page in. This is where I am having my problem. I need it to continue the numbering correctly and only put the number of pages I have used and not the total number of pages of the document. I have attached an example. Thanks Last edited by Charles Kenyon; 04-22-2020 at 08:38 AM. Reason: remove spaces to improve readability |
#2
|
||||
|
||||
The preferred approach would be to put a field coded along the lines of:
{SET Sctn1 {SECTIONPAGES}} in the first Section's header or footer then, for the 'y' part of the 'page x of y' numbering for the rest of the document, use a field coded like: {={NUMPAGES}-Sctn1} Note: The field brace pairs (i.e. '{ }') for the above examples are all created in the document itself, via Ctrl-F9 (Cmd-F9 on a Mac or, if you’re using a laptop, you might need to use Ctrl-Fn-F9); you can't simply type them or copy & paste them from this message. The spaces represented in the field constructions are all required.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Thanks for your reply:
To clarify the first code you said must go on the first section - do you mean the section that the numbers start on i.e not the cover page or the TOC? I presume you also need to take the link to previous off between the sections? So the code I put in was: Page {Page \*Arabic \* MERGEFORMAT } of { SET Sctn1 } { SECTIONPAGES \*Arabic \*MERGEFORMAT } Then on the second section (the landscape page) I put the following in, but it reflects the total number of pages instead of the total of the two sections. Page {Page \*Arabic \* MERGEFORMAT } of { NUMPAGES { -Sctn1 } \*Arabic \*MERGFORMAT } I have attached the document with the codes in as above Last edited by Charles Kenyon; 04-22-2020 at 08:39 AM. Reason: remove spaces to improve readability |
#4
|
|||
|
|||
You need the SectionPages field inside the Set field.
{SET Sctn1 {SECTIONPAGES}} (as shown by Greg) Not {SET Sctn1 } {SECTIONPAGES} as you have it. This is not something you can set using the Insert Field Dialog; you have to manually edit the fields. |
#5
|
||||
|
||||
Quote:
Quote:
You field coding is nothing like what I said to do. And you don't need any of those \*MERGEFORMAT switches.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#6
|
|||
|
|||
Sorry, I misunderstood your first instruction.
Ok, so I believe I have the correct coded field for the first sections. I believe I have done exactly as you said for the next section but I am still getting total pages. This is what I have: Page { Page } of { = { NUMPAGES }-Sctn1 } Thanks Kim |
#7
|
||||
|
||||
You have three one-page Sections for your front matter. Unless those Sections have different page layouts, that is quite unnecessary - manual page breaks is all you are likely to need to separate those pages and, perhaps, a 'different first page' page setup for the first Section. If you really do need three separate Sections for the front matter, those Sections' footers would need to be unlinked and you'd need to use:
{SET Sctn1 {SECTIONPAGES}} {SET Sctn2 {SECTIONPAGES}} {SET Sctn3 {SECTIONPAGES}} respectively, in each of those Sections, followed by: {={NUMPAGES}-Sctn1-Sctn2-Sctn3} in Section 4.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#8
|
|||
|
|||
Thank you Paul
The document is complicated as the users are going to be deleting sections of the document before the main document starts. I understand what you are saying and thank you, I understand this concept much better now. |
#9
|
||||
|
||||
Having some front matter, though, does not of itself required a separate Section for each item. As I said, the front matter in the sample you posted could all be handled in a single Section.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Uneven lining on pages/ missing lines on end of pages | Penatuna | Word | 5 | 09-24-2018 09:48 AM |
Numbering with heading is mixed up in odd pages in regard to even pages | Baflla | Word | 0 | 09-11-2016 05:25 AM |
Multiple Master Pages dont sync with content pages | generatorjoe | Publisher | 0 | 07-28-2016 10:12 AM |
How to automatically make word document have even number of total pages? | lorne17 | Word | 6 | 12-16-2014 02:48 PM |
Advanced page numbering: section pages in header, document pages in footer | Albus | Word | 12 | 12-12-2014 01:36 PM |