Section number is alway 0 in figure or table caption

G

Guest

I am trying to insert the section numbers into the Figure and Table caption
lines and all I’m getting this Figure 0-1 or Table 0-1 vs. Figure 1-1 or
Table 2-1 etc. Each section starts with a Header 1 font and I am using
section breaks in the document. I read the help section on caption and but I
am still getting 0 for all sections.

When I tried to verify that the caption was setup correctly I did the
following:
Insert-reference->caption
I pressed the AutoCaption button
Checked all the word option on the list (there were 3)
Selected Figure for use label
Pressed the number button
Checked the use chapter number box
Style is Header 1

However I am still getting 0 for the section.

Section break(s)
Section 1 – OPS <style Header 1>

Figure { STYLEREF 1 \S }-{ SEQ Figure \* ARABIC \S 1 }, Operational
Environment
Or
Figure 0-1, Operational Environment

Section break

is what I see when I do an Alt-F9.

Any ideas why I am always getting 0 for the section?
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?Sm9obiBLZXJpY2g=?=,

thank you for the very detailed problem description :) The misunderstanding is
clear, I hope the work-arounds I'm going to suggest is, as well.

1. Word provides no functionality for numbering captions according to section.
It can only number according to Heading.

2. You're using Heading styles - this is good. The problem is that you're not
NUMBERING the headings in the style. StyleRef picks up the literal text from the
style. Since you've not included a number, you're getting 0.

3. The "simplest" answer would be to add numbering to the Heading 1 styles. (We
can tell you how to do this in detail if you tell us the version of Word you're
using - that's the one thing missing in your problem description.) If you don't
want to see the numbering in the text, then you can modify the font *for the
numbering* to be "hidden".

4. If you don't want to use numbering at all in your style, even hidden, then
you can substitute a SECTION field for the StyleRef field. The SECTION field
will show the current section number. Note that, in this case, you can't use
AutoCaption. you'd want to save a "Caption" paragraph as an AutoText entry and
insert it as required.
I am trying to insert the section numbers into the Figure and Table caption
lines and all I’m getting this Figure 0-1 or Table 0-1 vs. Figure 1-1 or
Table 2-1 etc. Each section starts with a Header 1 font and I am using
section breaks in the document. I read the help section on caption and but I
am still getting 0 for all sections.

When I tried to verify that the caption was setup correctly I did the
following:
Insert-reference->caption
I pressed the AutoCaption button
Checked all the word option on the list (there were 3)
Selected Figure for use label
Pressed the number button
Checked the use chapter number box
Style is Header 1

However I am still getting 0 for the section.

Section break(s)
Section 1 – OPS <style Header 1>

Figure { STYLEREF 1 \S }-{ SEQ Figure \* ARABIC \S 1 }, Operational
Environment
Or
Figure 0-1, Operational Environment

Section break

is what I see when I do an Alt-F9.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
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 :)
 
S

Suzanne S. Barnhill

Did you read Cindy's reply?

--
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.
 
G

Guest

I have exactly the same problem. I want to use the 'NUMBERING of Headings'
method.
I am using Word 2007.

Can you help me please?

Thanks in advance.
 
G

Guest

I wanted to add my experience to this one.

I had the first two tables in a section (section used in the sense of 2.0
Heading Text, not as word uses 'section break') would be numbered fine, Table
2-1 and Table 2-2, but after that it skipped back to Table 0-1 and Table 0-2.
The next section started OK as well with Table 3-1 but then went to Table 0-1
again.

My numbering was fine, the styles were defined properly. I even copied the
table titles and pasted without formatting to try and break whatever had gone
wrong.

Unfortunately there were a few misplaced Style codes between the lines.
Using Show/Hide Paragraph Marks and slowly arrowing down through my document,
I found an extraneous heading style on an empty paragraph line in Section 2.
In Section 3 I found the previous caption had a line beneath it with the
[unused to us] Caption3 style applied.

After a quick "Clear Formatting" applied to these lines, I updated my table
caption codes and they fell right into place.

Hope this can help someone else!!
 
S

Stefan Blom

Indeed, when a heading number included with a caption displays zero, the
cause is usually blank paragraphs.

--
Stefan Blom
Microsoft Word MVP


in message
news:[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