SECTIONPAGES field code

S

snaguru

Version: 2008 Operating System: Mac OS X 10.6 (Snow Leopard) Processor: Intel Hi,
An earlier post titled "Page x of y Reset" had an answer to having y be the number of pages in the section. The answer was to change the field code NUMPAGES to SECTIONPAGES. What wasn't mentioned is that you then must do an Edit->Replace changing all occurrences of NUMPAGES to SECTIONPAGES in order to have SECTIONPAGES reflected in all the footers (or headers) of the section.
Thanks
 
J

John McGhie

That would not have been mentioned because it would not be needed if the
footers are all "Same as Previous" :)

Generally, your documents will be more stable and less likely to break if
you use "Same As Previous" to replicate the same header or footer throughout
the document, and the STYLEREF field to make the content of the running
header or footer dynamic.

I appreciate that there are instances where Same As Previous may not be
appropriate, but off the top of my head, I can't think of one :)

Oh! Yes I can... To separate the running header and footer in the front
matter from the rest of the book.

Hope this helps


Version: 2008 Operating System: Mac OS X 10.6 (Snow Leopard) Processor: Intel
Hi,
An earlier post titled "Page x of y Reset" had an answer to having y be the
number of pages in the section. The answer was to change the field code
NUMPAGES to SECTIONPAGES. What wasn't mentioned is that you then must do an
Edit->Replace changing all occurrences of NUMPAGES to SECTIONPAGES in order to
have SECTIONPAGES reflected in all the footers (or headers) of the section.
Thanks

--

The email below is my business email -- Please do not email me about forum
matters unless I ask you to; or unless you intend to pay!

John McGhie, Microsoft MVP (Word, Mac Word), Consultant Technical Writer,
McGhie Information Engineering Pty Ltd
Sydney, Australia. | Ph: +61 (0)4 1209 1410 | mailto:[email protected]
 
J

John McGhie

Hi Craig:

You're right: For your situation, you DON'T use "Same as Previous".

You need a Section Break after the TOC to isolate it from the main text.

I put up two posts tonight explaining how to do parts of this: to summarise
for you:

1) You need a Section Break wherever you want to change the page number
format.

2) If you are using SECTIONPAGES instead of the PAGE field, then yes, you
cannot use "Same as Previous". You "could" use "computed page numbers", or
even "cross-references" to do the same job. And then you could use "Same as
Previous" to make your headers and footers easier to manage.

But if all you are trying to achieve is chapter-based page numbering (folio
by chapter) AND you have only one section per chapter, then SECTIONPAGES is
easier.

As soon as you start needing to add landscape or sideways pages in a
chapter, then you need to use one of the other methods, because the chapter
will now have more than one section.

3) You can still use STYLEREF, but that's for bring the text of headings in
to the running header or footer: which may not be so pertinent to your
situation.

If you were working in my company, I would do my very best to talk you out
of SECTIONPAGES. It's an old-fashioned technique that goes back to the time
when books were made on a typewriter, or with a paste-pot and scissors.
There's no need for it in the modern world of electronic publishing.

But the best reason to avoid it is that readers hate "Folio By Chapter"
because it makes things really difficult to find in a book. How many
"thumbfuls" down is page 6-27? There's no easy way to tell. Page 125 is
one-and-a-half thumbfuls from the front cover :) It makes things much
quicker and easier for the reader.

Hope this helps

Hi John,
Thanks for your reply. I am not sure how it applies. I didn't make my self
clear in my 1st post. I want to have my table of contents (TOC) numbered
separately, with lowercase roman numerals, from my main section, which I want
numbered with Arabic, starting at 1 and having SECTIONPAGES as the number of
pages. And I want both sections to start at page 1 (or i in the TOC section).
So Same as Previous isn't useful in this situation.
So please educate me as to how I can use the STYLEREF field to achieve what I
want.
Thanks
Craig Dudley

--

The email below is my business email -- Please do not email me about forum
matters unless I ask you to; or unless you intend to pay!

John McGhie, Microsoft MVP (Word, Mac Word), Consultant Technical Writer,
McGhie Information Engineering Pty Ltd
Sydney, Australia. | Ph: +61 (0)4 1209 1410 | mailto:[email protected]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top