Strange Numbering TOC situation

L

Laura Townsend

Hi All,

I've got a document that contains auto numbered paragraphs. For level 2 of
the outline, I want to include the first sentence of SOME of the level 2
paragraphs in the TOC.

Normally, I would use a hidden paragraph (or the word 2002 style separator)
to separate the paragraph into two parts, and include the first part in the
TOC. The TOC would know what I wanted 'cause the first part would have a
level 2 style on it.

In this doc though, there are SOME level 2 paragraphs that need to be
numbered automatically but that I don't want ANY of the paragraph in the
TOC. I don't want to force the user to manually mark the text for TOC
because the Auto Numbering doesn't go into the TOC Code and it's a royal
pain.

I've seen macros written by others where the user can click in the paragraph
and some "marker" is inserted. Then when you run the TOC you tell it to
look for those markers (NOT the styles) and include only the text to the
left of those markers. THAT WAY the paragraphs with no marker can be auto
numbered like the rest, but aren't included in the TOC.

Does anyone know HOW this is done? Any ideas?
Sorry so verbose...
Laura
 
J

Jezebel

They're called TC fields. Click Options on the Table of Contents dialog: you
have the choice of creating the TOC from styles and/or Table Entry Fields.

You can insert these fields in the same way as other fields (eg Insert >
Fields or Ctrl-F9). If you're doing it a lot you might want to create a
macro that does it, but it's not essential and probably not worth it for
just one document.
 
D

dz

What you need to do is use internal paragraph numbering on
the level 2's that should not be inserted in the table of
contents. That way, they will number correctly, you won't
need to mess with any TC codes, and they won't be included
in the toc.

Make sure you use the listnum field (I have created a
toolbar entry for quick access that prompts the user for
which level to use).

{LISTNUM \l 2} provides a level 2.

You will need to indent the first line to the appropriate
place, insert the code, then use a tab. However, this
really beats messing with the TC codes - it's a really
slow process for macros to interpret TC codes that aren't
fully entered by the user (i.e., {TC} vs. {TC "this is the
entry" \l 2} - I've done it both ways, and using hidden
paragraphs is definitely easier and faster).

Good luck
 

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