View Single Post
  #1   Report Post  
Posted to microsoft.public.word.newusers
book_worm71[_2_] book_worm71[_2_] is offline
external usenet poster
 
Posts: 12
Default IF field causing problem with TOC

For now I've given up on the TOC issue I was having in one of my chapters,
but this problem is occurring in the main document and is becoming a
deal-breaker. Any help is appreciated.

I'm using includetext to add chapters to my document. Some of these chapters
are included conditionally.

Every chapter that is included conditionally (using the "IF" field) causes a
phantom heading to show up in the TOC of my main document. It looks like this:

23 Include........28
24 MACROS........29
25 Segmentation........31
1........34
26 Instruction Formats........34
1........38
27 Addressing Mode........38

And it is as simple as that. If I remove the "IF" field that surrounds the
included chapters, the TOC appears normal.

If I apply heading styles in the main documents over the original headings
in the included documents (and preserve them using \* MERGEFORMAT) this also
solves the problem, but this is not a viable solution for many reasons.

Can anyone help or tell me what I'm doing wrong? Thanks in advance.