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
John McGhie [MVP - Word and Word Macintosh] - 28 Oct 2006 07:10 GMT
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
On 28/10/06 3:04 AM, in article
1161968655.690680.173430@e3g2000cwe.googlegroups.com, "Karitaat"
<karitaat@hotmail.com> wrote:
> Hi all,
>
[quoted text clipped - 25 lines]
> regards,
> peter

Signature
Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.
John McGhie <john@mcghie.name>
Microsoft MVP, Word and Word for Macintosh. Business Analyst, Consultant
Technical Writer.
Sydney, Australia +61 (0) 4 1209 1410
Stefan Blom - 30 Oct 2006 13:28 GMT
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?

Signature
Stefan Blom
Microsoft Word MVP
> Hi all,
>
[quoted text clipped - 25 lines]
> regards,
> peter
Karitaat - 30 Oct 2006 14:49 GMT
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:
> Sometimes, Word doesn't like it when there are spaces between TOC
> levels and style names. If you replace
[quoted text clipped - 41 lines]
> > regards,
> > peter
Suzanne S. Barnhill - 30 Oct 2006 15:07 GMT
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!

Signature
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
> John and Stefan;
>
[quoted text clipped - 99 lines]
> > > regards,
> > > peter
Stefan Blom - 31 Oct 2006 15:03 GMT
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.

Signature
Stefan Blom
Microsoft Word MVP
> John and Stefan;
>
[quoted text clipped - 99 lines]
> > > regards,
> > > peter
Karitaat - 02 Nov 2006 00:34 GMT
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:
> 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
[quoted text clipped - 116 lines]
> > > > regards,
> > > > peter