Caption Numbering and Chapter Heading

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I use different chapter headings for caption numbers? For instance,
figures in section 1.2 should be numbered Figure 1.2-1, Figure 1.2-2, etc.,
while figures in section 1.2.1 should be numbered Figure 1.2.1-1, Figure
1.2.1-2, etc. If I set a chapter heading style for one figure, all figures
in the document are changed to that chapter heading style. What should I be
doing differently?
 
I don't believe there is any way to do what you want through the Caption
dialog, but you can insert StyleRef fields in your captions to pick up the
numbering of the specific desired heading.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
For starters, you might want to look at Word's Help topic "Field codes:
StyleRef field." Then use Insert | Field to insert a StyleRef field
referring to your heading style, checking the box for "Insert paragraph
number" or "Insert paragraph number in full context."

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
How do I use different chapter headings for caption numbers? For instance,
figures in section 1.2 should be numbered Figure 1.2-1, Figure 1.2-2, etc.,
while figures in section 1.2.1 should be numbered Figure 1.2.1-1, Figure
1.2.1-2, etc. If I set a chapter heading style for one figure, all figures
in the document are changed to that chapter heading style. What should I be
doing differently?

I haven't actually tried this, but it might work...

Ignore the Caption feature. Instead, go to the Outline Numbering
series that you are using for your section numbers. Pick an unused
lower numbering level. Customize it to use the dash as separator, and
have "Figure" in front, and include higher level numbers, and restart
on any higher level number. Attach it to a paragraph style that you
create.

When you want a caption, type in the text and apply the custom style.

Bob S
 
Hi,

Do you know if it is possible, when retrieving the header number using the
StyleRef field, to extract only a specific sub-level. Like if you have
'7.1', is there a way to extract only the '1'?

Thanks!
 
I'd suggest experimenting with the "context" setting to see what the various
switches do.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Thanks! I played with pretty much all of the switches and could not get only
the sub-part. Is the 'context' setting part of the StyleRef field?
 
Yes, but I think I have bad news. If your paragraph number includes previous
levels, you will get them regardless. The "Field codes: StyleRef field" Help
topic explains the relevant switches this way:

\n Causes the field to display the entire paragraph number for a referenced
paragraph without trailing periods. No information about prior levels is
displayed unless it is included as part of the current level.

\r Inserts the entire paragraph number of the bookmarked paragraph in
relative context— or relative to the paragraph numbering scheme— without
trailing periods.

\w Inserts the paragraph number of the bookmarked paragraph in full context,
from anywhere in the document.
For example, when referencing paragraph "ii.," a STYLEREF field with the \w
switch would return "1.a.ii" as a result.


--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Back
Top