TOC entries for front matter are missing a dot leader

K

Kiwi_731

Dear experts

I am using Word 2002 SP3.

I have a document with numbered chapter, section and subsection headings,
all of which are referenced in a table of contents. So far so good.

I now want to add the various front matter headings to the TOC. Since I
don’t want these to be numbered, I have created a new level 1 style for the
front matter headings. This is based on the Heading 1 style except that it is
centred and has numbering disabled. Sure enough, when I update the TOC, there
they are – except that unlike the headings based on Heading 1-3 there is no
dot leader!

The field code is { TOC \o “1-3†\z \t “MD Front Matter Hdg, 1†} (though
the field code { TOC \o “1-3†\z \t } produces an identical result).

What have I missed?

TIA

Hopeful Kiwi
 
S

Suzanne S. Barnhill

What happens if you select the entries and press Ctrl+Q? FWIW, I would not
advise basing your front matter heading style on Heading 1. By all means
make it look just like Heading 1 but base it on Normal or No Style. Basing
an unnumbered style on a numbered style can cause problems, I think.

Note also that if you don't need to specify the front matter style in the
TOC field (because the style has an outline level of 1), then you don't need
the \t switch, either. It won't hurt, of course, but it's not needed. Word's
Help would lead you to expect that you need a \u switch (to pick up
paragraphs with outline levels in the included range), and in fact, if you
generate a TOC with the default settings (with "Outline levels" checked in
the Table of Contents Options dialog), you do get the \u switch.
 
K

Kiwi_731

I have tried your suggestions.

Ctrl Q and Ctrl Space make no difference. I have carefully avoided direct
formatting.

Also, redefining the front matter heading style independently of Heading 1
made no difference.

Note – I have a tab stop defined in the TOC 1/2/3 styles at 3cm in from the
LH margin in order to format the chapter and section headings with the
chapter or section number and name neatly separated. The problem seems to
arise from the fact that the front matter headings don’t have the number, so
the page number appears at the 3 cm stop instead of the one at the RH side of
the page (which has a dot leader defined).

Adding a trailing tab to the front matter heading makes no difference to its
TOC entry, even when I add the \w switch, which is supposed to preserve tabs.

I can add an extra tab in the heading entry itself, but this vanishes the
next time I update the TOC.

Hopeful Kiwi
 
S

Suzanne S. Barnhill

The tab stop was what I was afraid was the problem, and it leads to this
solution: Instead of giving your front matter headings an outline level of
1, make them Level 4. Then modify the TOC 4 style to look just like TOC 1
except without the hanging indent/tab stop. You'll need to include four
levels in your TOC, of course, and if you have used Heading 4, you'll need
to remove the 4 from beside it in the TOC Options dialog and hope for the
best (my experience with this runs counter to what Word's Help suggests will
happen).
 
K

Kiwi_731

Thanks Suzanne, will do.

I have re-read your "TOC Tips & Tricks" document and now see what you were
driving at re front matter entries.

You're brilliant.

Regards

Hopeful Kiwi
 

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