Import Doc with TOC

B

book_worm71

I haven't been able to solve this issue. If there's no workaround for this
(or it's not reproducable), might anyone know of a better way to include a
chapter with its own TOC in my main document? Thanks.

I'm using IncludeText to insert chapters into my main document. One of the
chapters has it's own TOC, for the level 2 elements that it contains:

{TOC \o "2-2"}

When I simply use IncludeText to insert the file, the TOC appears and
updates perfectly. However, if I use an IF field around the IncludeText, I
get a bunch of blank headings that show up in the TOC right before the real
headings.

Here's how the output appears:

1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................Inherent Addressing 42
1.2....................Immediate Mode (IMM) 42
1.3....................Direct Mode (DIR) 43
1.4....................Extended Addressing (EXT) 43
1.5....................Indexed 5-Bit Constant Offset (IDX) 43
1.6....................Indexed Auto Pre/Post Decrement/Increment (IDX) 44
1.7....................Indexed Accumulator Offset (IDX) 44
1.8....................Indexed 9-Bit Constant Offset (IDX1) 44
1.9....................Indexed 16-Bit Constant Offset (IDX2) 45
1.10....................Indexed 16-Bit Constant Indirect ([IDX2]) 45
1.11....................Indexed D-Indirect ([D,IDX]) 45
1.12....................Multiple Addressing Modes 46

My code is as follows:

{if value="content" {includetext "document.doc"}}

Any help would be appreciated, thanks.
 
S

Stefan Blom

I see no apparent problem with having tables of contents in files inserted
via INCLUDETEXT fields.

Try adding the \! switch to the INCLUDETEXT fields; that way, the tables of
contents (or any other fields in the included documents, for that matter)
cannot be updated from the target document, but only from the source
documents. Does that make a difference?
 
B

book_worm71

Stefan, thanks again - the /! switch seems to fix the problem that occurs
when I use the {IF} field. The table of contents now appears properly. I
really appreciate your help.

Sincerely,
Keith

Stefan Blom said:
I see no apparent problem with having tables of contents in files inserted
via INCLUDETEXT fields.

Try adding the \! switch to the INCLUDETEXT fields; that way, the tables of
contents (or any other fields in the included documents, for that matter)
cannot be updated from the target document, but only from the source
documents. Does that make a difference?

--
Stefan Blom
Microsoft Word MVP



book_worm71 said:
I haven't been able to solve this issue. If there's no workaround for this
(or it's not reproducable), might anyone know of a better way to include a
chapter with its own TOC in my main document? Thanks.

I'm using IncludeText to insert chapters into my main document. One of the
chapters has it's own TOC, for the level 2 elements that it contains:

{TOC \o "2-2"}

When I simply use IncludeText to insert the file, the TOC appears and
updates perfectly. However, if I use an IF field around the IncludeText, I
get a bunch of blank headings that show up in the TOC right before the
real
headings.

Here's how the output appears:

1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................Inherent Addressing 42
1.2....................Immediate Mode (IMM) 42
1.3....................Direct Mode (DIR) 43
1.4....................Extended Addressing (EXT) 43
1.5....................Indexed 5-Bit Constant Offset (IDX) 43
1.6....................Indexed Auto Pre/Post Decrement/Increment (IDX) 44
1.7....................Indexed Accumulator Offset (IDX) 44
1.8....................Indexed 9-Bit Constant Offset (IDX1) 44
1.9....................Indexed 16-Bit Constant Offset (IDX2) 45
1.10....................Indexed 16-Bit Constant Indirect ([IDX2]) 45
1.11....................Indexed D-Indirect ([D,IDX]) 45
1.12....................Multiple Addressing Modes 46

My code is as follows:

{if value="content" {includetext "document.doc"}}

Any help would be appreciated, thanks.
 
S

Stefan Blom

You are welcome, and thank you for the feedback. :)

--
Stefan Blom
Microsoft Word MVP



book_worm71 said:
Stefan, thanks again - the /! switch seems to fix the problem that occurs
when I use the {IF} field. The table of contents now appears properly. I
really appreciate your help.

Sincerely,
Keith

Stefan Blom said:
I see no apparent problem with having tables of contents in files
inserted
via INCLUDETEXT fields.

Try adding the \! switch to the INCLUDETEXT fields; that way, the tables
of
contents (or any other fields in the included documents, for that matter)
cannot be updated from the target document, but only from the source
documents. Does that make a difference?

--
Stefan Blom
Microsoft Word MVP



book_worm71 said:
I haven't been able to solve this issue. If there's no workaround for
this
(or it's not reproducable), might anyone know of a better way to
include a
chapter with its own TOC in my main document? Thanks.

I'm using IncludeText to insert chapters into my main document. One of
the
chapters has it's own TOC, for the level 2 elements that it contains:

{TOC \o "2-2"}

When I simply use IncludeText to insert the file, the TOC appears and
updates perfectly. However, if I use an IF field around the
IncludeText, I
get a bunch of blank headings that show up in the TOC right before the
real
headings.

Here's how the output appears:

1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................Inherent Addressing 42
1.2....................Immediate Mode (IMM) 42
1.3....................Direct Mode (DIR) 43
1.4....................Extended Addressing (EXT) 43
1.5....................Indexed 5-Bit Constant Offset (IDX) 43
1.6....................Indexed Auto Pre/Post Decrement/Increment (IDX)
44
1.7....................Indexed Accumulator Offset (IDX) 44
1.8....................Indexed 9-Bit Constant Offset (IDX1) 44
1.9....................Indexed 16-Bit Constant Offset (IDX2) 45
1.10....................Indexed 16-Bit Constant Indirect ([IDX2]) 45
1.11....................Indexed D-Indirect ([D,IDX]) 45
1.12....................Multiple Addressing Modes 46

My code is as follows:

{if value="content" {includetext "document.doc"}}

Any help would be appreciated, thanks.
 

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