cross-references in includetext do not update

M

Marc Trumpi

I have a document consisting of several sub-documents linked to one another
through the includetext field. Everything is in docx format.
The problem is that all cross-references included in the text linking to
numbers that depend on a location (for instance chapter numbers or captions
number) do not update when I hit F9. So if the chapter number shows as 1 in
the original doc, a figure would be numbered 'Figure 1-x', in the assembled
document it should show the new chapter number, for instance 3, in the
caption as 'Figure 3-x'. This happens, but the cross-reference in the text
still shows "Figure 1-x'.
Anyone know what's going wrong?
 
J

Jean-Guy Marcil

Marc Trumpi said:
I have a document consisting of several sub-documents linked to one another
through the includetext field. Everything is in docx format.
The problem is that all cross-references included in the text linking to
numbers that depend on a location (for instance chapter numbers or captions
number) do not update when I hit F9. So if the chapter number shows as 1 in
the original doc, a figure would be numbered 'Figure 1-x', in the assembled
document it should show the new chapter number, for instance 3, in the
caption as 'Figure 3-x'. This happens, but the cross-reference in the text
still shows "Figure 1-x'.
Anyone know what's going wrong?

How are chapter numbers changing in the assembled documents?

Make sure you do not have a "\!" switch in the INCLUDETEXT field. That
switch prevents the updating of the fields within the included text.
 
M

Marc Trumpi

Jean-Guy Marcil said:
How are chapter numbers changing in the assembled documents?

Make sure you do not have a "\!" switch in the INCLUDETEXT field. That
switch prevents the updating of the fields within the included text.

The chapter numbers are changing just fine, as they are simple heading1
styles. There also are no /! switches, in fact there are no switches at all.
The problem also doesn't occur in the captions, they number just fine, but
only in the cross-refs to the captions. Neither the chapter number nor the
individual number in the cross-ref changes, no matter how often I hit ctrl+a,
f9.
 
J

Jean-Guy Marcil

Marc Trumpi said:
The chapter numbers are changing just fine, as they are simple heading1
styles. There also are no /! switches, in fact there are no switches at all.
The problem also doesn't occur in the captions, they number just fine, but
only in the cross-refs to the captions. Neither the chapter number nor the
individual number in the cross-ref changes, no matter how often I hit ctrl+a,
f9.

OK.

From what I gather, the problem is that when you insert cross-references
using the wizard, Word creates hidden bookmarks so that teh cross-reference
is kinked to its source.

It probably happens that your cross-references in your sub documents all
point to the same hidden bookmark. Word may have given the same name to all
the bookmarks in each separate document.

So, to check if you do have this problem,
from your master document, display the Bookmark dialog and check the hidden
bookmark option. If you have less bookmarks than you have referenced
captions, you do have this problem.

To fix this, you have to go in all sub documents, then:

Insert > Bookmarks... >Check "Hidden Bookmarks"
Select the first one that starts with an underscore and click on Go To.
If you land on a caption, notice the number, let us say it is caption 1-3.
Leave it selected as is by the bookmark dialog. Type a new name in the
"Bookmark name:" field of the bookmark dialogue, something like Doc1_Fig_3.

Then, go to each cross reference that points to that caption, select it, hit
SHIFT-F9 to toggle the field code, replace the hidden bookmark name by the
one you just typed (You could have copied it from the Boookmark dialog before
closing it) and hit F9 to update it and make sure it is OK.

And so on for each caption that has cross-references in all documents,
except in the first document (Which can keep its automated names).
 
M

Marc Trumpi

Jean-Guy Marcil said:
OK.

From what I gather, the problem is that when you insert cross-references
using the wizard, Word creates hidden bookmarks so that teh cross-reference
is kinked to its source.

It probably happens that your cross-references in your sub documents all
point to the same hidden bookmark. Word may have given the same name to all
the bookmarks in each separate document.

So, to check if you do have this problem,
from your master document, display the Bookmark dialog and check the hidden
bookmark option. If you have less bookmarks than you have referenced
captions, you do have this problem.

To fix this, you have to go in all sub documents, then:

Insert > Bookmarks... >Check "Hidden Bookmarks"
Select the first one that starts with an underscore and click on Go To.
If you land on a caption, notice the number, let us say it is caption 1-3.
Leave it selected as is by the bookmark dialog. Type a new name in the
"Bookmark name:" field of the bookmark dialogue, something like Doc1_Fig_3.

Then, go to each cross reference that points to that caption, select it, hit
SHIFT-F9 to toggle the field code, replace the hidden bookmark name by the
one you just typed (You could have copied it from the Boookmark dialog before
closing it) and hit F9 to update it and make sure it is OK.

And so on for each caption that has cross-references in all documents,
except in the first document (Which can keep its automated names).

Nope, that's not it. Although the bookmarks are all unique I changed them,
but the same problem remains.
 
M

Marc Trumpi

Marc Trumpi said:
Nope, that's not it. Although the bookmarks are all unique I changed them,
but the same problem remains.

I found something new: when I try to update the fields in the doc containing
all subdocs the status bar briefly shows the following message: "one or more
fields within the selection could not be updated". Unfortunately the help,
nor the online support seem to know anything about this. So I'm still in the
dark about the reason that these fields can't update. Any thoughts?
 

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