#1
|
|||
|
|||
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:
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:
Last edited by kdlsmith; 05-02-2019 at 12:09 PM. Reason: For clarity: moved problem to top; editing |
#2
|
|||
|
|||
Automatic numbering will not produce a SEQuence Field.
you would want to use AutoText for that. your numbering should be set up How to create numbered headings or outline numbering in Ribbon Versions of Word by Shauna Kelly |
#3
|
|||
|
|||
Charles,
Thank you for the reply. I agree, "automatic numbering will not produce a SEQuence Field". As for using "AutoText for that", when I go into Insert>Quick Parts>AutoText, it has a greyed out "Save selection to AutoText". As I am creating a template that will be used by who knows who with who knows what in their clipboard, I'm uncertain how AutoText is going to create a SEQuence Field. I really do need the static SEQuence Field to be inserted only when a particular style is used (which may or may not be used in the document, i.e., if no headings are used in the document, then there will be no need to create a table of contents on either paragraph numbers or pages). I agree, my "numbering should be set up" as Shauna Kelly has advised: as far as I know, they are. Which is to say, my headings fall under a defined list style called "Headings" (step 3 of Kelly's instructions) and my paragraphs fall under a defined list style called "BodyList" (step 4 of Kelly's instructions). Is your implicit suggestion that I fold all my numbering into only one defined list style and that doing so will allow me to create a table of contents on paragraph numbering more easily? I'm not certain, but I don't think this question has anything to do with numbering or lists, as the <\c "H-List"> switch is giving me all the numbering I need. But again, thank you for the reply. Quote:
|
#4
|
|||
|
|||
If you had read further in the link on the seq field, you would have seen instructions on creating the Autotext entry.
Automated Boilerplate Using Microsoft Word |
#5
|
|||
|
|||
Quote:
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 |
#6
|
|||
|
|||
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(gives the same result as the \c TOC, but retains formatting (which is preferred)) Quote:
|
#7
|
|||
|
|||
Could you post a sample document with the parts you want in your TOC?
How to attach a screenshot or file in this forum. The sample should also include a typed non-field TOC formatted the way you want. |
#8
|
||||
|
||||
You can add a style separator in the paragraph where you want to omit the text. Make sure that the number (the first part of the paragraph) is formatted in a style that is included in the TOC and that the text following the style separator is formatted in a non-heading style (which won't be included in the TOC).
__________________
Stefan Blom Microsoft Word MVP Microsoft 365 apps for business Windows 11 Professional |
#9
|
||||
|
||||
Quote:
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#10
|
|||
|
|||
Paul,
Thank you for the information. I will try the Style Separator route and see if I can figure something out from there. Quote:
|
Tags |
paragraph number, table of content, \c switch |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Irritating formatting issue in Table of Contents - page number "dots" disappear | Eriks | Word | 9 | 04-19-2019 06:18 PM |
How to number table cells continuously from a fixed point within the table in Word 2013 | wondermuse | Word Tables | 15 | 12-07-2015 12:16 AM |
Page number intend problem in table of contents | cabr | Word | 1 | 07-16-2015 02:00 AM |
Customize styles for Chapters and paragraph titles on pages and table of contents | tzanarella | Word | 1 | 07-11-2014 12:17 PM |
Table of contents without page number | lollazzo | Word | 1 | 05-06-2014 05:09 AM |