View Single Post
 
Old 05-02-2019, 03:32 PM
kdlsmith kdlsmith is offline Windows 7 64bit Office 2016
Novice
 
Join Date: May 2019
Posts: 4
kdlsmith is on a distinguished road
Default

Charles,

I should have done a stepwise request rather than the whole thing.

I will try to re-state my question.
___________________

I have the following TOC code: { TOC \o "1-4" \c "H-List" \n \p " " \u }

It produces a table of contents that displays Headings 1-4 and also displays the paragraph number and text that has been tagged with a { seq H-List } identifier:

Table of Contents
I. This is Heading 1
[1] This is H1-Body text and the paragraph number I want (but not the text).
A. This is Heading 2
[5] H2-Body text follows and the number before it is the paragraph number.
1. This is Heading 3
[8] The H3-Body style will follow the third heading.
a.This is Heading 4
[11] A final set of texts to illustrate entry H4-Body.

I do not want any of the text that follows the numbers in square bracket. I.e., I would like my table of contents to look like this:

Table of Contents
I. This is Heading 1
[1]
A. This is Heading 2
[5]
1. This is Heading 3
[8]
a.This is Heading 4
[11]

(Which means that my Heading 1 refers to a paragraph number and not a page number, but I do not include the paragraph text).

I just don't have the skill to adjust the switches to not include the paragraph text but to include the paragraph number.

The table of contents is generated from the following layout:

I. This is Heading 1

[1] This is H1-Body text and the paragraph number I want.
[2] BodyText
A. This is Heading 2

[3] H2-Body text follows and the number before it is the paragraph number.
[4] BodyText
1. This is Heading 3

[5] The H3-Body style will follow the third heading.
[6] BodyText
a. This is Heading 4

[7] A final set of texts to illustrate entry H4-Body.
[8] BodyText



I also get a similar table of contents with the following, { TOC \o "1-4" \n \t "Body-H1,1,Body-H2,2,Body-H3,3,Body-H4,4" }:
I.This is Heading 1
[1]This is H1-Body text and the paragraph number I want.
A.This is Heading 2
[3]H2-Body text follows and the number before it is the paragraph number.
1.This is Heading 3
a.This is Heading 4
[4] A final set of texts to illustrate entry H4-Body
(gives the same result as the \c TOC, but retains formatting (which is preferred))

Quote:
Originally Posted by Charles Kenyon View Post
No.

To say that I do not understand what it is you want is an understatement.

There are many ways to get things into a TOC.
TOC Tips and Tricks by Suzanne Barnhill, MVP
Reply With Quote