inline linked graphics and cross-referencing

G

Guy Worthington

I have searcheth the online help; I have traveled to
word.mvps.org and read the records; with mine own hand,
and according to my knowledge, I did query at the house
of google; but I still knoweth not. So most powerful,
most merciful, all-wise creators of the MS Word document,
your humble and unworthy servant beseeches thee; for
without thine help I cannot tameth the beast.

It has come to pass that I must insert an inline link to
an .eps graphic above a caption, yea, even with graphic
and caption being bound together as one. Below is an
abridgement of mine needs in the picture which I have
cutteth and pasteth (without permission) from the house of
http://the.sunnyspot.org/asciiart/gallery/cat.html.


,/| _.--''^``-...___.._.,;
/, \'. _-' ,--,,,--'''
{ \ `_-'' ' /}
`;;' ; ; ;
._.--'' ._,,, _..' .;.'
(,_....----''' (,..--''

figure 1: the matriarch of the house

And it came to pass that this caption should be created
automatically wherefore it can be referenced elsewhere
in the text.

How do I have a picture style (which contains a link to
a graphic) and a caption style (which automatically
creates a figure number that can be cross-referenced)
and link them together? I use Word 97.

Yours in all humility,

your faithful servant
 
T

Tim Murray

How do I have a picture style (which contains a link to
a graphic) and a caption style (which automatically
creates a figure number that can be cross-referenced)
and link them together? I use Word 97.

I have a question about the part "and link them together". You can provide a
link, or cross-reference, to the caption quite easily. But what do you mean
by "together"?
 
S

Suzanne S. Barnhill

Format the graphic style as "Keep with next." Then it will stay with the
caption below it.
 
G

Guy Worthington

Tim said:
Guy Worthington wrote:

Hello Tim Murray :
I have a question about the part "and link them together". You can provide a
link, or cross-reference, to the caption quite easily. But what do you mean
by "together"?

And I was sure that the introduction to my problem had the
clarity of an azure sky. It's nothing complicated: I expect
a picture-caption style which'll contain a file link to
a graphic, and a caption describing the graphic. I expect
this style to satisfy four constraints[1]:

1) the picture-caption style is separated from the text
by a spacing above and below;

2) the caption stays with the picture when the picture moves;

3) the caption has an automatically created figure number;

4) the figure number is available as a cross-reference
in the text.

Amazingly no paragraph style can satisfy these constraints.

[1] In my heart of hearts I also expect Word to relieve me
of the menial task of positioning the graphic in the text.
But floating graphics and cross-references don't mix.
 
G

Guy Worthington

Suzanne said:
Guy Worthington wrote:

Hello Suzanne Barnhill:
[How do I design a sane style for a graphic]
Format the graphic style as "Keep with next." Then it will stay with the
caption below it.

On the radio the other day a professor was asking
this physics question: If you heat a copper sphere
with a hole drilled in the top, would the hole
close over or become bigger. Well of course,
not being the greatest physicist, I immediately
thought what type of person drills a hole in a
copper sphere and then heats it. Now I think I've
met one. You're not trained as a physicist are you?

After putting the keywords "Barnhill", "caption",
and "next" into google, I found your solution:
use two styles linked together with a "keep with
next" constraint. Remarkably, this round-about
solution seems to work.
 
C

Chad DeMeyer

Guy, see comments below:
And I was sure that the introduction to my problem had the
clarity of an azure sky. It's nothing complicated: I expect
a picture-caption style which'll contain a file link to
a graphic, and a caption describing the graphic. I expect
this style to satisfy four constraints[1]:

1) the picture-caption style is separated from the text
by a spacing above and below;

That can easily be accomplished in the style definition for a paragraph
style.
2) the caption stays with the picture when the picture moves;

Also easily accomplished by using 'Keep with next' in the style definition
of the picture style, as Suzanne stated, if you use a separate style and
paragraph for each element, picture and caption. However, it sounds like
you're driving for a single style/paragraph for each picture/caption pair.
If you must go that route, then use 'Keep lines together' instead.
3) the caption has an automatically created figure number;

4) the figure number is available as a cross-reference
in the text.

Use the Insert Caption command. It supplies an automatically created figure
number that:
1) Automatically changes to reflect its place in the document when captions
with the same label are created, deleted, or moved around in the document.
2) Can be easily cross-referenced using the built-in Insert>Cross reference
feature.
3) Can be easily compiled into a Table of Figures at the front of the
document.
Amazingly no paragraph style can satisfy these constraints.

Well, not by itself, at least not without some complex and outlandish style
customization, but the combined with the Insert>Caption feature, I think
your needs are addressed.

Regards,
Chad DeMeyer
 
S

Suzanne S. Barnhill

I'm not sure why that is a "round-about solution." You have two elements
here, a graphic and a caption, with a style for each.

The style for the graphic includes the space before and after. It is
formatted as "Keep with next" so that the caption will stay with the graphic
(note that this does not prevent you from dragging the graphic or caption
elsewhere and thus separating them; this formatting just keeps the graphic
with whatever paragraph happens to follow it; if the caption is forced to
the next page, the graphic will go with it).

Then you use Insert | Caption to insert your caption, which will be
autonumbered and can be easily cross-referenced. The built-in Caption style
(which is used for captions) is ugly, but you can modify it as desired.

There are variations on this approach: you can insert the graphic and the
caption in two cells of a single-column, two-row, borderless table, but
you'll still need apppropriate styles for both. You can select both graphic
and caption and use Insert | Frame to put them both in a frame. This *will*
keep them together as a unit and will also permit you to wrap text around
them, but floating graphics can have a mind of their own when it comes to
page position, so leaving the graphic and caption inline is preferable.



Guy Worthington said:
Suzanne said:
Guy Worthington wrote:

Hello Suzanne Barnhill:
[How do I design a sane style for a graphic]
Format the graphic style as "Keep with next." Then it will stay with the
caption below it.

On the radio the other day a professor was asking
this physics question: If you heat a copper sphere
with a hole drilled in the top, would the hole
close over or become bigger. Well of course,
not being the greatest physicist, I immediately
thought what type of person drills a hole in a
copper sphere and then heats it. Now I think I've
met one. You're not trained as a physicist are you?

After putting the keywords "Barnhill", "caption",
and "next" into google, I found your solution:
use two styles linked together with a "keep with
next" constraint. Remarkably, this round-about
solution seems to work.
 
Top