Chapter Numbering - TOC Problems

A

Anton

I have followed the advice in Andrew Gabb's "Using Word 97 for Complex
Documents", to enable me to get the Appendix pages in a document
numbered
"A-1".
I did this using the
{ SEQ Snum \r \1 \s \* MERGEFORMAT }
field. My page numbers in the footer are perfectly indicated as "A-1".
I have some success with repeating the page numbers in the TOC, but it
insists on printing them "1-1" etc. My TOC field is
{ TOC \T "APPENDIX" \S }.
The document is in Word 97. How do I get the TOC to display the
alphabetical numbering scheme? There are several similar postings on
this group, but nobody seemed to get stuck right here. Any help is
greatly appreciated.
 
B

Bruce Brown

Anton & Suzanne

Your posts led to some fascinating discoveries about the TOC field.

1) Word Help is all wet when it says of the \o switch: "Builds a
table of contents from paragraphs formatted with built-in Heading
styles. For example, { TOC \o "1-3" } lists *only* headings formatted
with the styles Heading 1 through Heading 3. [emphasis added]"

On the contrary, the \o switch lists *any old style* whose Outline
level on the paragraph dialog has been set to a level from 1-9 instead
of Body Text. That includes the built-in Heading styles, to be sure,
but is not *limited* to them as Help claims.

2) Help is also in error when it says of the \u switch: "Builds a
table of contents by using the applied paragraph outline level."

That's actually what the \o switch does. What the \u switch does is
uncontrollably grab any built-in Heading style at *any* level, plus
*any level* of any other style with the Outline level set to a
numbered level instead of Body Text.

The \u switch is quite omnivorous, and you can't limit the number of
levels to be captured as you can with the \o switch. It also comes
with a strange 'either/or' glitch: *either* you get every
outline-level style in the document *or* you get TC fields. One or
t'other, take your pick, but not both. The \u switch stands for
uncontrollable.

3) The switch that gives you absolute control over styles is the \t
switch:

{ TOC \t "Heading 1,1,Heading 2,2,Title,1,Schedule1,1" } means *take
only* these styles at these levels. Interestingly, the style's
Outline level can be set to Body Text and it won't matter -- the \t
switch will faithfully pick up that style at the level you specify in
the TOC field.

You can put the styles and their levels in any old order you want, as
you can with other TOC switches like \h for hyperlinks and \z for web
formatting. And you can include fields when the \f switch used along
with the \t switch.

4) OK, now for Anton's problem. First, I'm not sure this matters or
not, but you don't need all that junk in the hidden SEQ field; you
should be able to get away with { SEQ Snum \*Alphabetic \*Upper }
hidden somewhere around the Appendix heading. By default the field
will start at 1 and increment by 1 with nothing further added.

In the footer, it's got to have the \c switch to continue without
incrementing { SEQ Snum \c \*Alphabetic \*Upper }

The probable source of your grief in the TOC is that when you use the
\s switch in the TOC field, it adds a number and a dash in front of
the page number whether you want it or not.

Therefore, you need *two different TOC fields* to achieve what you
want -- one to list the main body of the document with regular page
numbers (i.e., without an \s switch) and one for just the Appendices
*with* an \s switch. The \s switch must *name* the SEQ field it's
looking for, which in this case is Snum.

Your two TOC fields would probably look something like this:

{ TOC \t "Heading 1,1,Heading 2,2" } <----The main body of numbering
{ TOC \t "Appendix,1" \s Snum } <----Only the appendices

Should've warned you: I'm working in Word 2002 so it may not work in
Word 97 the first time around. But keep playing around with it, you'll
get there.

-Bruce.
 
A

Anton

Hi Bruce,

I want to thank you. It solved my problem completely. This will
definitely not get the attention from my pointy-haired boss, but it
helped me a whole bunch.

Obviously it works under Word '97 as well.

Regards
Anton
 

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