Table of Contents problems

K

Karitaat

Hi all,

I have the following HeadingStyle setup:
Heading 1 through Heading 4 are used for Chapter-headings
Heading 6 through Heading 9 are used for Appendix-headings

Heading 5 need NOT be in the Table of Contents

Heading 1 and Heading 6 share TOC1-style
Same for Heading 2 and Heading 7: TOC2-style
etc.

My TOC-field is as follows:
{TOC \o "1-4" \t "Heading 6,1, Heading 7,2, Heading 8,3, Heading 9,4"}

Most of the times Word shows me the TOC for Chapters AND Appendices.
Sometimes it won't show Appedices-TOC
And I don't know why.

I know a solution:
* have separate TOCs for Chapters and Appendices
but there are reasons why I prefer one TOC.

Does anybody have na idea why my setup sometimes fails?

Word 2002; SP3

regards,
peter
 
J

John McGhie [MVP - Word and Word Macintosh]

Hi Karitaat:

I don't know: that "should" work, calling in headings 1 to 4 and 6 to 9.

You may want to check that
* Headings 6 to 9 are actually Paragraph styles, and
* that they are actually part of the built-in series of Heading styles and
* that the styles Headings 6 through 9 are actually the styles applied to
the paragraphs.

The only reason that TOC field would fail is if the styles on the paragraphs
are not the ones you think they are. For example if the document contains
Linked Styles that have been created as descendents of the Heading styles.

Linked styles ("Heading 6 char" or "Heading 6 Char Char"...) may not work.

That's all I can think of...

Cheers

Hi all,

I have the following HeadingStyle setup:
Heading 1 through Heading 4 are used for Chapter-headings
Heading 6 through Heading 9 are used for Appendix-headings

Heading 5 need NOT be in the Table of Contents

Heading 1 and Heading 6 share TOC1-style
Same for Heading 2 and Heading 7: TOC2-style
etc.

My TOC-field is as follows:
{TOC \o "1-4" \t "Heading 6,1, Heading 7,2, Heading 8,3, Heading 9,4"}

Most of the times Word shows me the TOC for Chapters AND Appendices.
Sometimes it won't show Appedices-TOC
And I don't know why.

I know a solution:
* have separate TOCs for Chapters and Appendices
but there are reasons why I prefer one TOC.

Does anybody have na idea why my setup sometimes fails?

Word 2002; SP3

regards,
peter

--

Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.

John McGhie <[email protected]>
Microsoft MVP, Word and Word for Macintosh. Business Analyst, Consultant
Technical Writer.
Sydney, Australia +61 (0) 4 1209 1410
 
S

Stefan Blom

Sometimes, Word doesn't like it when there are spaces between TOC
levels and style names. If you replace

\t "Heading 6,1, Heading 7,2, Heading 8,3, Heading 9,4"

with

\t "Heading 6,1,Heading 7,2,Heading 8,3,Heading 9,4"

does that fix the problem?

--
Stefan Blom
Microsoft Word MVP


in message
news:[email protected]...
 
K

Karitaat

John and Stefan;

a G'day to you mates...

Things are a little more complicated than I thought.
I am in Europe (the Netherlands) working for an international firm.
We write Reports in Dutch and in (UK) English.

Normally our users have the Dutch Locale in WinXP.
The ListSeparator in the Dutch locale is ';'

Sometimes our users need to switch to the UK/US English locale; because
they need the English decimal point.

And now things get interesting.
If I generate a TOC-field (through Insert > Reference etc) AND leave
'Heading 5' out of the TOC; Word gives me a TOC-field that looks like:
{TOC \o "1-4" \t "Heading 6!1! Heading 7!2! Heading 8!3! Heading 9!4"}
where ! is the ListSeparator in my Regional settings.

Now suppose that is ";"
{TOC \o "1-4" \t "Heading 6;1; Heading 7;2; Heading 8;3; Heading 9;4"}
will be OK in ANY document language IF the Locale is Dutch.
It will NOT be OK in ANY document language if the Locale is English:
Word-TOC won't find the "Headings-part"

Luckily enough Microsoft suplies a Registry-fix for this problem in
Word2000
http://support.microsoft.com/kb/302865/EN-US/
I have taken the liberty of changing the fix for WordXP.

But now things are getting messy. Microsoft says in above KB-item:
"The AlternateTOCDelimiter registry key causes Microsoft Word to
interpret the table of contents delimiter based on the language
formatting of the surrounding text instead of from Control Panel."

After extreme testing I can confirm this is true for WordXP as well.
Without the fix: the TOC-separator needs to be the same as the Locale
ListSeparator.
There is no single TOC-separator that is valid for both an UK/US AND an
NL locale.

With the Fix: there is no single TOC-separator that is valid in both an
UK AND an NL document-language.

So I am between the hammer and the anvil.

Ah well... I'll set up a dual TOC:
one {TOC \o "1-4"} for Chapters and
one {TOC \o "6-9"} for Appendices.

Sigh...

regards,
peter




Stefan Blom schreef:
 
S

Suzanne S. Barnhill

At least in this situation your Headings 6-9 do all follow all the Headings
1-4, so you *can* make separate TOCs; just be glad they're not intermingled!
 
S

Stefan Blom

In this case, you seem to be able to do it with two separate tables of
contents. If, in the future, you do need a solution, see if the
"Field numbering problem related to different French/English list
separator" thread in microsoft.public.word.numbering can help.

--
Stefan Blom
Microsoft Word MVP


in message
 
K

Karitaat

Stefan,

Hmm... interesting thought of Jean-Guy Marcil
Thank you for pointing it out to me.

But yes: I've got it working with two Autotext-entries that I push.

regards,
peter



Stefan Blom schreef:
 

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