Figure captions with chapter numbers using Includetext

C

Curran

Hi all. I'm working on a long thesis, and therefore split my document
into a number of separate files for each chapter. Each file is
then brought into a single file using the INCLUDETEXT field.
The chapter titles are in the Heading 1 style.

I want to number my figures "Figure 4-2" where 4 would be the
chapter number and 2 the figure number in that chapter.
In each individual file, the captions come out like "Figure 1-2" since
each file only contains 1 heading, starting at 1.
When I look in the main file, the actual captions all number correctly.
The problem comes when I cross-reference to the captions. If the
cross-reference is before the caption itself, the chapter number is
wrong (always 1) whereas if the reference if after the caption it
seems to work (ie updates the correct Heading 1 refence based
on the position in the whole document).

Does anyone know a way to fix this? Thanks!
 
C

Cindy M -WordMVP-

Hi Curran,

If you Ctrl+A, then F9 twice, do all the cross-refs look correct?
I want to number my figures "Figure 4-2" where 4 would be the
chapter number and 2 the figure number in that chapter.
In each individual file, the captions come out like "Figure 1-2" since
each file only contains 1 heading, starting at 1.
When I look in the main file, the actual captions all number correctly.
The problem comes when I cross-reference to the captions. If the
cross-reference is before the caption itself, the chapter number is
wrong (always 1) whereas if the reference if after the caption it
seems to work (ie updates the correct Heading 1 refence based
on the position in the whole document).

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
C

Curran

Unfortunately no. I've also tried using my own sequence fields to do
the chapter numbering (and then also with the \c field in the figure
caption) but the same error occurs.
 
J

John McGhie [MVP - Word]

This is a limitation of the INCLUDETEXT method. The fields and numbering
and cross-references cannot "see" anything outside the document that they
are in. To solve this:

Before you print, make a new document.

Add the separate files using Insert>File to bring them in as part of the
main document.

Then update your fields and they will all put themselves right. Word will
work happily with a single file up to around 500 pages without raising a
sweat. It will go up to 5,000 pages if you know how.

If it gets a bit slow, remove your pictures from the document and put them
back in as Linked but NOT embedded. (Make sure the picture files are in the
same folder as the document file for ease of use). This produces a dramatic
speed-up for saving and scrolling.

Work in Normal View on long documents so that Word does not stop to paginate
the whole document each time you make a change.

Hope this helps


from said:
Unfortunately no. I've also tried using my own sequence fields to do
the chapter numbering (and then also with the \c field in the figure
caption) but the same error occurs.

--

Please respond only to the newsgroup to preserve the thread.

John McGhie, Consultant Technical Writer,
McGhie Information Engineering Pty Ltd
Sydney, Australia. GMT + 10 Hrs
+61 4 1209 1410, mailto:[email protected]
 
C

Curran

John,
That's quite the limitation! I need to print the doc quite a numeber of
times
while developing it for editing/etc. by my supervisor. I think there is some
bug in there though, because the INCLUDETEXT does work on some
of the cross-references, such as bookmarks in other files and references
to captions as long as I reference them after the actual caption line.
The heading styles etc. also know about the other chapter numbers and
update fine. I do realize the within each sub-file, the document obviously
has no knowledge of numbering in the other documents.

I think I'll go back to one main document; I already link to pictures to
reduce file size. I've also been having a pain with section page formatting
when using INCLUDETEXT. Hope you're right about handling that
many pages in modern versions of Word. Or maybe there will someday
be a working version of real Master Document functionality.

Thanks for your thoughts.
 
J

John McGhie [MVP - Word]

Hi Curran:

Yes, you are correct: links to Hypertext Targets that include an explicit
path name to a saved document will work in INCLUDETEXT. If the document has
not been saved when you insert the reference the link is not written as a
full-qualified path, or if you move the document after inserting such a
link, the link will break. It is indeed a bug in my opinion, although
Microsoft considers it a "limitation".

Cross-references (which are not hyperlinks) will not work outside the
current file, and neither will some types of numbering. With list-based
(Heading) numbering, you can fake it. With Captions, you can't (well, you
can by setting the caption starting number manually in the first SEQ field,
but that's a high-maintenance solution).

Word 2003 master documents are quite stable provided you are working in
HTML. The fix to Master Documents is HTML/XML. So yes, the fix has
arrived. But you need a seriously powerful computer to operate this way:
HTML is very slow compared to the Word .DOC format.

The number of pages in a Word file actually has nothing to do with things,
because "pages" do not exist in a Word document, they are inserted into the
print stream when you print or display.

The limit is "32 megabytes of text, NOT including graphics" or an overall
file-size of 2 GB. You can easily exceed the 32 MB on Windows XP provided
that you are using NTFS as your file system.

However, workstations with sufficient power to handle huge documents are not
universally supplied on corporate desktops. You need a 3 GHz processor and
1 GB of real memory plus a nice fast SCSI disk drive for a happy life.

Now let me say something that will really annoy you: Master Documents will
work fine in Word 2000 or above provided you know how to use them perfectly
and are capable of operating that way.

That statement really is an absurdity, because no human being operates that
perfectly all the time. But it's user error that breaks master documents,
not Word. Things like changing numbering improperly, deleting paragraphs
next to tables, drag-and-drop editing, etc etc.

I had a 2,600-page master document survive in daily editing for six months
once. But it means you have to operate perfectly: do all of your formatting
with styles, define your numbering and bullet styles perfectly, don't do any
hack-and-chop editing and don't use Tracked Changes or Versions.

Not, in my view, practical either.

Sorry


from said:
John,
That's quite the limitation! I need to print the doc quite a numeber of
times
while developing it for editing/etc. by my supervisor. I think there is some
bug in there though, because the INCLUDETEXT does work on some
of the cross-references, such as bookmarks in other files and references
to captions as long as I reference them after the actual caption line.
The heading styles etc. also know about the other chapter numbers and
update fine. I do realize the within each sub-file, the document obviously
has no knowledge of numbering in the other documents.

I think I'll go back to one main document; I already link to pictures to
reduce file size. I've also been having a pain with section page formatting
when using INCLUDETEXT. Hope you're right about handling that
many pages in modern versions of Word. Or maybe there will someday
be a working version of real Master Document functionality.

Thanks for your thoughts.

--

Please respond only to the newsgroup to preserve the thread.

John McGhie, Consultant Technical Writer,
McGhie Information Engineering Pty Ltd
Sydney, Australia. GMT + 10 Hrs
+61 4 1209 1410, mailto:[email protected]
 

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