TOC Spanning Multiple Documents -- Chapter Number in Page Number

I

Idaho Word Man

I'm creating a large multi-chapter document. I posted a question a while back
asking how to generate a table of contents that spanned all the chapters, and
Dian D. Chapman referred me to some instructions called Creating a Table of
Contents Spanning Multiple Documents
(http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=148)

I inserted the RD codes described in the article, but my problem is that the
page numbers in each chapter include the chapter number (3-1, 3-2, etc.).
When I regenerate the TOC, the chapter numbers do not show up. Is there a
switch that will insert chapter numbers with the page numbers?

Thanks,

Fred
 
J

Jean-Guy Marcil

Idaho Word Man said:
I'm creating a large multi-chapter document. I posted a question a while back
asking how to generate a table of contents that spanned all the chapters, and
Dian D. Chapman referred me to some instructions called Creating a Table of
Contents Spanning Multiple Documents
(http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=148)

I inserted the RD codes described in the article, but my problem is that the
page numbers in each chapter include the chapter number (3-1, 3-2, etc.).
When I regenerate the TOC, the chapter numbers do not show up. Is there a
switch that will insert chapter numbers with the page numbers?

I did a quick test on Word 2003 just to make sure, but right here right now
it works as expected. Chapter numbers (based on Heading 1 in the main
documents) do show up in my RD document.

In your RD document do ALT-F9, select the field code btween the {} for the
TOC and post back. Don't forget to do ALT-F9 a second time to toggle back to
field values instead of field codes.
 
I

Idaho Word Man

You lost me. When you say, "post back," what do you mean?

My TOC looks like this:

1 SITE CHARACTERISTICS.....................................1
1.1 Introduction.................................................1

I need it to look like this:

1 SITE CHARACTERISTICS.....................................1-1
1.1 Introduction.................................................1-1

My TOC field code looks like this:
{ TOC \o "1-1" \h \z \t "Heading 2,2,Heading 3,3,FrontMatterHeading,
1,AppTitle 1," ]

I'm running Office 2003 and Windows XP Professional SP2.

Thanks,

Fred
 
I

Idaho Word Man

On a related note, when I hit F9 to regenerate the TOC, the "Update Page
Numbers Only" option doesn't do anything. Only the "Update Entire Table"
works. Is that normal?

Thanks,

Fred
 
J

Jean-Guy Marcil

Idaho Word Man said:
You lost me. When you say, "post back," what do you mean?

You just did... :)
I meant, "Post back here with the requested information"
My TOC looks like this:

1 SITE CHARACTERISTICS.....................................1
1.1 Introduction.................................................1

I need it to look like this:

1 SITE CHARACTERISTICS.....................................1-1
1.1 Introduction.................................................1-1

My TOC field code looks like this:
{ TOC \o "1-1" \h \z \t "Heading 2,2,Heading 3,3,FrontMatterHeading,
1,AppTitle 1," ]

I'm running Office 2003 and Windows XP Professional SP2.

In your TOC field code, I do not see Heading 1 anywhere. It could be covered
by the "\o "1-1" switch if you are indeed using Heading 1 in your documents.
In which case, you shoud have \o "1-3" instead of \o "1-1" and "Heading
2,2,Heading 3,3,".

How did you set up the page numbering in your chapter documents so that
chapter numbers are included on each page? You must use Heading 1 if you want
to use a TOC that picks up on it, whether you are using RD fields or not.

Also, I believe you left out part of the code, it is missing a number after
the comma in "AppTitle 1,".

So, your TOC field should look like this:

{ TOC \o "1-3" \t "FrontMatterHeading,1,AppTitle 1,1" \h \z }

(Although I am guessing as to the TOC level for AppTitle 1.)
 
I

Idaho Word Man

Okay, this note helped me find the problem, and now I'm embarrassed.

I assumed that my text processor had used the switch that inserts the
chapter number (I had built the template to work that way). Instead, she had
typed in the chapter number by hand. I took out the manual number and used
the "Include Chapter Number" switch, and of course it worked fine.

Thanks.

Jean-Guy Marcil said:
Idaho Word Man said:
You lost me. When you say, "post back," what do you mean?

You just did... :)
I meant, "Post back here with the requested information"
My TOC looks like this:

1 SITE CHARACTERISTICS.....................................1
1.1 Introduction.................................................1

I need it to look like this:

1 SITE CHARACTERISTICS.....................................1-1
1.1 Introduction.................................................1-1

My TOC field code looks like this:
{ TOC \o "1-1" \h \z \t "Heading 2,2,Heading 3,3,FrontMatterHeading,
1,AppTitle 1," ]

I'm running Office 2003 and Windows XP Professional SP2.

In your TOC field code, I do not see Heading 1 anywhere. It could be covered
by the "\o "1-1" switch if you are indeed using Heading 1 in your documents.
In which case, you shoud have \o "1-3" instead of \o "1-1" and "Heading
2,2,Heading 3,3,".

How did you set up the page numbering in your chapter documents so that
chapter numbers are included on each page? You must use Heading 1 if you want
to use a TOC that picks up on it, whether you are using RD fields or not.

Also, I believe you left out part of the code, it is missing a number after
the comma in "AppTitle 1,".

So, your TOC field should look like this:

{ TOC \o "1-3" \t "FrontMatterHeading,1,AppTitle 1,1" \h \z }

(Although I am guessing as to the TOC level for AppTitle 1.)
 

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