Caption numbering in appendix

D

dOinK

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://word.mvps.org/FAQs/TblsFldsFms/AppendixCaptions.htm,
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)
 
S

Stefan Blom

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.
 

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