Caption numbering in appendix

Caption numbering in appendix

Post by dOin » Fri, 20 May 2005 17:38:51


I'm composing a document in Word 2003 where I have one or more appendices
with subsections, and have defined new heading styles as follows:

Appendix A (style named "Appx", outline/numbering level 1)
A.1 (style named "AppxSub1", outline/numbering level 2)

I want to have caption numbering in the appendices linked to the level 2
heading (AppxSub1), like this:

Figure A.1-n

where n is the sequence number in the respective subsection. I followed the
description in http://www.yqcomputer.com/ ,
which suggested a caption code similar to this:

Figure {STYLEREF "AppxSub1" \s }-{ SEQ AppxFig \* ARABIC \s "AppxSub1" }

My problem is the second part of the code; the sequence number does not
restart at the custom level 2 heading (AppxSub1), but seems to be totally
independent of the headings altogether. The only way I am able to restart
the numbering is to create a new sequence (e.g. AppxFigA2), but that's not
very elegant.

Does this mean that it is impossible to make a sequence number that restarts
at a given heading level, unless it's a built-in heading (e.g. Heading 2, in
which case the last "AppxSub1" would be replaced by 2), or is there
something wrong with my field code?

Kind regards
dOinK

PS: I know I could use and redefine the built-in heading styles (e.g. above
level 5) for appendix headings, that's not the solution or answer I am
looking for here (it has some unwanted consequences related to the outline
level)
 
 
 

Caption numbering in appendix

Post by Stefan Blo » Fri, 20 May 2005 18:51:34

In my experience, the \s switch of SEQ fields recognizes only built-in
headings. You have to manually restart SEQ field numbering with the \r
switch.

One way to manage this is to include { SEQ AppxFig \r 0 \h } with each
appendix heading that should restart numbering. The \r switch sets
numbering to zero, which means that the following SEQ field will be
numbered 1, and the \h switch hides the field, so that the number zero
does not display in your heading.

Alternatively, you can use a style for caption numbering within your
appendix, and link it to the same numbering scheme as your appendix
heading styles.

--
Stefan Blom
Microsoft Word MVP




appendices
level 2
followed the
http://www.yqcomputer.com/ ,
"AppxSub1" }
not
totally
restart
that's not
restarts
Heading 2, in
(e.g. above
am
outline

 
 
 

Caption numbering in appendix

Post by dOin » Fri, 20 May 2005 19:40:11

Thanks a lot, Stefan - this was really helpful!
 
 
 

Caption numbering in appendix

Post by Stefan Blo » Fri, 20 May 2005 19:54:33

I'm glad I could help.

--
Stefan Blom
Microsoft Word MVP