Paragraph number in TOC

R

Rob

Hi all,

Is it possible to include a paragraph number in the table of contents? I
think that I could use a SEQ field although any help anyone could provde
would be fantastic,

Cheers
Rob
 
R

Rob

Yes, any table of contents created based on styles will include
paragraph numbers. For more on how to create one, see the following
article:

http://www.shaunakelly.com/word/toc/CreateATOC.html

For information on how to correctly apply outline numbering to
headings, please see:

http://www.shaunakelly.com/word/numbering/OutlineNumbering.html

Thanks for the reply Stefan,

I think that I may have misworded my question. What I am after is the
following sort of format:

Information Para Page
Heading......................... 1.1 1

I thought that using sequence fields might help but not sure, back to the
books!

Cheers
Rob
 
S

Stefan Blom

You can use LISTNUM fields if you want to put numbers somewhere else
than to the left of a paragraph. In particular, you can use LISTNUM
with the built-in LegalDefault list name if you want the "1.", "1.1.",
"1.1.1." format. (Unfortunately, there is no way to delete the
trailing period when using this built-in LISTNUM format.)

However, if you want the number to be in one position for the actual
heading and in another position for the table of contents, then you're
out of luck.

How to insert a LISTNUM LegalDefault field:

1. Remove outline numbering for each heading style.

2. Press CTRL+F9 to insert field delimiters: { }.

3. Within these delimiters, type LISTNUM LegalDefault.

4. Press F9 to display the field result.

5. Use copy and paste to create more occurrences of this field.

The numbering level should reflect the level of the heading style,
that is, all Heading 1 paragraphs get the 1, 2, 3, format; all Heading
2 paragraphs get the 1.1, 1.2, ... format, etc. If you want to
override this default behavior, or if it doesn't give you the expected
result (I know that it might not work within table cells, for
example), you can explicitly specify the numbering level by adding the
\l (lowercase "L") switch to the field code, or by simply displaying
the context menu for a LISTNUM field and then choosing "Increase
Indent" and "Decrease Indent", respectively.
 
R

Rob

You can use LISTNUM fields if you want to put numbers somewhere else
than to the left of a paragraph. In particular, you can use LISTNUM
with the built-in LegalDefault list name if you want the "1.", "1.1.",
"1.1.1." format. (Unfortunately, there is no way to delete the
trailing period when using this built-in LISTNUM format.)

However, if you want the number to be in one position for the actual
heading and in another position for the table of contents, then you're
out of luck.

How to insert a LISTNUM LegalDefault field:

1. Remove outline numbering for each heading style.

2. Press CTRL+F9 to insert field delimiters: { }.

3. Within these delimiters, type LISTNUM LegalDefault.

4. Press F9 to display the field result.

5. Use copy and paste to create more occurrences of this field.

The numbering level should reflect the level of the heading style,
that is, all Heading 1 paragraphs get the 1, 2, 3, format; all Heading
2 paragraphs get the 1.1, 1.2, ... format, etc. If you want to
override this default behavior, or if it doesn't give you the expected
result (I know that it might not work within table cells, for
example), you can explicitly specify the numbering level by adding the
\l (lowercase "L") switch to the field code, or by simply displaying
the context menu for a LISTNUM field and then choosing "Increase
Indent" and "Decrease Indent", respectively.

Thanks again Stefan. It seems that I am out of luck. I want the paragraph
numbers to be on the left in the document and on the right in the Table of
contents. I will ask our standards department to remove the requirement
for this para numbering as it means that each TOC would have to be manually
created,

Thanks for all your help,
Cheers
Rob
 
S

Stefan Blom

If you can't convince your standards department to drop the
requirement, you won't be able to use the Index and Tables dialog box
to create your tables of contents. But you can do it the following
way: Create a table of contents consisting of cross-references to (a)
the text, (b) the outline number, and (c) the page number of each
heading.

With this approach, as soon as the document is edited, you must of
course add any new headings manually. If you change the style of a
heading to (say) Normal or Body Text, you would have to delete the
corresponding cross-references from your TOC. Also, any removed
heading must be deleted; otherwise updating the fields will yield an
error message.

I guess it's possible to write a macro to maintain this (although I
wouldn't be able to), but it feels a little like reinventing the
wheel, since it is relatively similar to functionality already
available in Word.
 

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