View Single Post
 
Old 05-02-2019, 09:27 AM
kdlsmith kdlsmith is offline Windows 7 64bit Office 2016
Novice
 
Join Date: May 2019
Posts: 4
kdlsmith is on a distinguished road
Default Table of Contents to point to paragraph number that follows

I need a Table of Contents that will direct to paragraph numbers. This is what I need:
  1. a TOC that is automatically generated
  2. a TOC that is automatically formatted
  3. a function that will automatically insert a SEQ ID into a defined and unique paragraph style
  4. a TOC based on the paragraph numbers, which will follow the heading label and the tab leaders
  5. no paragraph text should appear in the TOC.
I have played around with the \c "H-List" switch that will, at least, generate paragraph numbers -- { TOC \o "1-4" \c "H-List" \f \h \z } -- which produces (for example) the following table of contents:

I. Heading 11
[1] This is a test and the text of H1-Body after heading1
A. Heading 21
[5] heading 2 will look like this1
1. Heading 31
[8] body level 3 for H31
a. Heading 41
[11] Final entry for h4 1

Our organization is moving to more online posting (moving away from a heavy reliance on the print-based model).


In a PDF or a paper copy, referring a heading to a page number in the Table of Contents is standard and functional. However, such a reference is now problematic when the whole document exists as a single webpage (I'll not get into the discussion of chunking and breaking up text -- I am relying upon the headings to do that). Because pages are no longer the navigational touchstones for our documents, paragraphs will have to take up this function.

I have been asked to make, bog standard in our templates, a Table of Contents that refers to the paragraph number that follows a heading. I use styles and my paragraphs are numbered through the use of a multi-level list and my headings have also been structured using a multi-level list.

I do not want to have to do this by hand.

I have set my headings so that the following style will be a H1-Body, H2-Body, H3-Body, etc. style (and the style following the "H-Body" style is "Body" style).

In my test document, I have manually inserted a {seq H-List} at the beginning of the H-#Body styles, making sure only one SEQ ID is used.

I have played around with the \c "H-List" switch that will, at least, generate paragraph numbers -- { TOC \o "1-4" \c "H-List" \f \h \z } -- which produces (for example) the following table of contents:

I. Heading 11
[1] This is a test and the text of H1-Body after heading1
A. Heading 21
[5] heading 2 will look like this1
1. Heading 31
[8] body level 3 for H31
a. Heading 41
[11] Final entry for h4 1

Please note, I have lost my formatting (boo, no indenting or tab leaders); but I do have paragraph numbers (Yah!), but they follow on a separate line (so I'll have to manually adjust formatting) and they include the "H-Body" text, which I do not want.





I have taken this problem as far as I can (without more brainstorming, i.e., I think I'm missing something). This is what I need:
  1. automatically generated
  2. automatically formatted
  3. automatically insert the SEQ ID to the H#-Body style
  4. the paragraph numbers to follow the heading label and to follow the tab leaders
  5. no paragraph text should be included.

Last edited by kdlsmith; 05-02-2019 at 12:09 PM. Reason: For clarity: moved problem to top; editing
Reply With Quote