Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-02-2019, 09:27 AM
kdlsmith kdlsmith is offline Table of Contents to point to paragraph number that follows Windows 7 64bit Table of Contents to point to paragraph number that follows Office 2016
Novice
Table of Contents to point to paragraph number that follows
 
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
  #2  
Old 05-02-2019, 10:54 AM
Charles Kenyon Charles Kenyon is offline Table of Contents to point to paragraph number that follows Windows 10 Table of Contents to point to paragraph number that follows Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,083
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

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
Reply With Quote
  #3  
Old 05-02-2019, 12:01 PM
kdlsmith kdlsmith is offline Table of Contents to point to paragraph number that follows Windows 7 64bit Table of Contents to point to paragraph number that follows Office 2016
Novice
Table of Contents to point to paragraph number that follows
 
Join Date: May 2019
Posts: 4
kdlsmith is on a distinguished road
Default

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:
Originally Posted by Charles Kenyon View Post
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
Reply With Quote
  #4  
Old 05-02-2019, 01:44 PM
Charles Kenyon Charles Kenyon is offline Table of Contents to point to paragraph number that follows Windows 10 Table of Contents to point to paragraph number that follows Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,083
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

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
Reply With Quote
  #5  
Old 05-02-2019, 01:49 PM
Charles Kenyon Charles Kenyon is offline Table of Contents to point to paragraph number that follows Windows 10 Table of Contents to point to paragraph number that follows Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,083
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Quote:
Originally Posted by kdlsmith View Post
Charles,

Thank you for the reply.

I agree, "automatic numbering will not produce a SEQuence Field".
***
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?
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
  #6  
Old 05-02-2019, 03:32 PM
kdlsmith kdlsmith is offline Table of Contents to point to paragraph number that follows Windows 7 64bit Table of Contents to point to paragraph number that follows Office 2016
Novice
Table of Contents to point to paragraph number that follows
 
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
  #7  
Old 05-02-2019, 03:41 PM
Charles Kenyon Charles Kenyon is offline Table of Contents to point to paragraph number that follows Windows 10 Table of Contents to point to paragraph number that follows Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,083
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

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.
Reply With Quote
  #8  
Old 05-02-2019, 04:37 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Table of Contents to point to paragraph number that follows Windows 10 Table of Contents to point to paragraph number that follows Office 2019
Moderator
 
Join Date: Aug 2011
Posts: 3,872
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

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).
Attached Images
File Type: png ScreenCapMay32019.PNG (13.9 KB, 17 views)
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #9  
Old 05-02-2019, 06:19 PM
macropod's Avatar
macropod macropod is offline Table of Contents to point to paragraph number that follows Windows 7 64bit Table of Contents to point to paragraph number that follows Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by kdlsmith View Post
I need a Table of Contents that will direct to paragraph numbers.

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.
What you're asking for simply isn't possible with Word. If you want something to appear in a Table of Contents, that 'something' must be part of the same paragraph as the entry itself. Style separators can't be used for that, either. If your paragraph numbers are in a different paragraph from the heading, they'll at best appear as a separate entry in the Table of Contents. The obvious solution is to apply a suitable numbering scheme to the headings themselves.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #10  
Old 05-03-2019, 09:54 AM
kdlsmith kdlsmith is offline Table of Contents to point to paragraph number that follows Windows 7 64bit Table of Contents to point to paragraph number that follows Office 2016
Novice
Table of Contents to point to paragraph number that follows
 
Join Date: May 2019
Posts: 4
kdlsmith is on a distinguished road
Default

Paul,

Thank you for the information. I will try the Style Separator route and see if I can figure something out from there.


Quote:
Originally Posted by macropod View Post
What you're asking for simply isn't possible with Word. If you want something to appear in a Table of Contents, that 'something' must be part of the same paragraph as the entry itself. Style separators can't be used for that, either. If your paragraph numbers are in a different paragraph from the heading, they'll at best appear as a separate entry in the Table of Contents. The obvious solution is to apply a suitable numbering scheme to the headings themselves.
Reply With Quote
Reply

Tags
paragraph number, table of content, \c switch

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Table of Contents to point to paragraph number that follows Irritating formatting issue in Table of Contents - page number "dots" disappear Eriks Word 9 04-19-2019 06:18 PM
Table of Contents to point to paragraph number that follows 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
Table of Contents to point to paragraph number that follows Page number intend problem in table of contents cabr Word 1 07-16-2015 02:00 AM
Table of Contents to point to paragraph number that follows 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 to point to paragraph number that follows Table of contents without page number lollazzo Word 1 05-06-2014 05:09 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:36 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft