Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-29-2024, 10:49 PM
Jamal NUMAN Jamal NUMAN is offline Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Windows 7 64bit Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Office 2010 64bit
Expert
Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it
 
Join Date: Nov 2010
Posts: 615
Jamal NUMAN is on a distinguished road
Question Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it

Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it instead of at the edge of the page.




In the screenshot below, I couldn’t figure out why the page number of a heading in the table of contents (TOC) appears directly next to it instead of at the edge of the page.


How this issue can be fixed?
Attached Images
File Type: jpg Clip_1278.jpg (219.9 KB, 42 views)
Reply With Quote
  #2  
Old 08-30-2024, 12:36 AM
macropod's Avatar
macropod macropod is offline Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Windows 10 Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,343
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

See: How to align table of figures or contents
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 09-03-2024, 08:57 AM
jthomas666 jthomas666 is offline Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Windows 11 Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Office 2021
Competent Performer
 
Join Date: Jun 2016
Location: Warner Robins, GA
Posts: 200
jthomas666 will become famous soon enough
Default

I think it that in certain situations manual tab stops can confuse the TOC generator. Notice how in the instances where the page numbers aren't aligned to the far right, they're all aligned on the manual tab stop? Deleting that tab stop in the paragraph style might fix the problem. Also, try putting your cursor in front of the number and pressing the spacebar. That should move the number to the far right.
Reply With Quote
  #4  
Old 09-03-2024, 03:20 PM
Guessed's Avatar
Guessed Guessed is offline Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Windows 10 Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,158
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

The alignment issue looks a lot like a Jason tab issue.

I recommend you check out this link or do some further searching on "Jason tab"
Word: Getting rid of the ‘Jason tab’ in a TOC | CyberText Newsletter
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #5  
Old 09-03-2024, 04:52 PM
jthomas666 jthomas666 is offline Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Windows 11 Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Office 2021
Competent Performer
 
Join Date: Jun 2016
Location: Warner Robins, GA
Posts: 200
jthomas666 will become famous soon enough
Default

Huh. I had this problem regularly in my last job; for some reason it never occurred to me that Word might be putting the tab stop in on its own. But it does sound like a classic Word "feature, not a bug".

Thanks for the info!
Reply With Quote
  #6  
Old 09-04-2024, 12:44 AM
Guessed's Avatar
Guessed Guessed is offline Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Windows 10 Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,158
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

After you've updated the TOC you can select it and press Ctrl-Q to reset the TOC paragraphs to their style definitions. This should be sufficient to remove the Jason tabs.

I use a macro to update the TOCs in order not to worry about the Jason tab issue.
Code:
  'remove the jason tabs (local formatting tabs inserted in toc with hanging text)
  Dim aTOC as TableOfContents
  For Each aTOC In ActiveDocument.TablesOfContents
    aTOC.Update
    aTOC.Range.ParagraphFormat.Reset
  Next aTOC
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #7  
Old 09-09-2024, 12:34 PM
Jamal NUMAN Jamal NUMAN is offline Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Windows 7 64bit Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Office 2010 64bit
Expert
Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it
 
Join Date: Nov 2010
Posts: 615
Jamal NUMAN is on a distinguished road
Question

But in all cases, why might the same style have different presentations in the Table of Contents?


For example, entries styled as TOC4 do not have the same format in the Table of Content!


What could be the issue here?
Attached Images
File Type: jpg Clip_1319.jpg (224.9 KB, 25 views)
Reply With Quote
  #8  
Old 09-09-2024, 01:36 PM
Italophile Italophile is offline Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Windows 11 Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Office 2021
Expert
 
Join Date: Mar 2022
Posts: 538
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

Because there is probably a rogue tab stop, either in those paragraphs or in the TOC 4 style. This is evidenced by the longer entries where the text goes beyond the first tab stop.
Reply With Quote
  #9  
Old 09-09-2024, 11:09 PM
Jamal NUMAN Jamal NUMAN is offline Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Windows 7 64bit Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Office 2010 64bit
Expert
Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it
 
Join Date: Nov 2010
Posts: 615
Jamal NUMAN is on a distinguished road
Default

Unfortunately, I checked the style settings and tab stop positions, and attempted to remove the Jason tab with the code, but nothing worked. It's very frustrating.


What other options do I have to resolve this issue?


The template file, on which my current document is built, is attached
Attached Images
File Type: jpg Clip_327.jpg (233.9 KB, 21 views)
File Type: jpg Clip_328.jpg (207.0 KB, 21 views)
File Type: jpg Clip_329.jpg (186.0 KB, 21 views)
Attached Files
File Type: docx Thesis Template V1.5 USM Library and IPS_02.docx (74.7 KB, 5 views)
Reply With Quote
  #10  
Old 09-10-2024, 05:27 AM
jthomas666 jthomas666 is offline Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Windows 11 Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Office 2021
Competent Performer
 
Join Date: Jun 2016
Location: Warner Robins, GA
Posts: 200
jthomas666 will become famous soon enough
Default

I can think of two options

1. After generating the ToC, go to each truncated entry, put the cursor in front of the page number, and press <Tab>. Of course, you have to do that every time, and yes, it gets annoying.

2. Lengthen the affected headings. If they're long enough, they won't be affected by the Jason tab.
Reply With Quote
  #11  
Old 09-10-2024, 05:51 AM
Italophile Italophile is offline Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Windows 11 Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Office 2021
Expert
 
Join Date: Mar 2022
Posts: 538
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

The tab stop is clearly visible in your screenshot.
If it isn't in the TOC4 style it is probably in the Heading 4 style because you are still not following the instructions you have repeatedly been given to set numbering up correctly using a List Style.
When the number is followed by a tab you should always leave "Add tab stop at" unchecked.
Attached Images
File Type: jpg Clip_328.jpg (92.2 KB, 18 views)
File Type: png Screenshot 2024-09-10 134749.png (23.7 KB, 17 views)
File Type: png Screenshot 2024-09-10 141925.png (13.2 KB, 20 views)
Reply With Quote
  #12  
Old 09-10-2024, 06:01 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Windows 11 Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Office 2021
Moderator
 
Join Date: Aug 2011
Posts: 4,001
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

Since you are setting up numbering for the table of contents and NOT for the headings in the body of the document, I would suggest that you reformat the TOC styles using the Multilevel List dialog box. Click in the very first TOC 1 in your document and click Home > Multilevel List > Define New Multilevel List. Carefully verify the numbering and indents for each level.
Attached Images
File Type: png ModifyTOCsetup.png (73.1 KB, 20 views)
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #13  
Old 09-10-2024, 12:37 PM
Jamal NUMAN Jamal NUMAN is offline Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Windows 7 64bit Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Office 2010 64bit
Expert
Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it
 
Join Date: Nov 2010
Posts: 615
Jamal NUMAN is on a distinguished road
Question

Right. It appears that the issue is with the “tab stop position” of the “TOC4” style. Removing the 4.7 cm tab stop position seems to resolve the issue.


However, when the TOC is updated, the 4.7 cm tab stop position reappears for the TOC4 style. What could be causing this issue?
Attached Images
File Type: jpg Clip_1328.jpg (213.6 KB, 17 views)
File Type: jpg Clip_1329.jpg (206.0 KB, 18 views)
File Type: jpg Clip_1330.jpg (217.1 KB, 17 views)
File Type: jpg Clip_1331.jpg (209.6 KB, 17 views)
File Type: jpg Clip_1332.jpg (203.1 KB, 18 views)
Reply With Quote
  #14  
Old 09-11-2024, 12:37 PM
jthomas666 jthomas666 is offline Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Windows 11 Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Office 2021
Competent Performer
 
Join Date: Jun 2016
Location: Warner Robins, GA
Posts: 200
jthomas666 will become famous soon enough
Default

Try this:

1. Create a new paragraph that's not part of the TOC.
2. Format it with the TOC4 style. Is the rogue tab stop present? If so, delete the tab stop and update the style.
3. Then regenerate the TOC. If the tab stop returns, then it's almost certainly the Jason tab referenced earlier, and you may just have to live with it--Every time you generate the TOC, delete the tab stop and update the style--that should correct all the affected TOC paragraphs.
Reply With Quote
  #15  
Old 09-11-2024, 01:56 PM
Charles Kenyon Charles Kenyon is offline Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Windows 11 Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,455
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

See my post in your parallel question about sources of these images:
Formatting a Table of Contents Intricacies
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Office 2021: How do I control the space between the heading text and its number? Jamal NUMAN Word 8 09-05-2024 04:05 PM
Table of contents puts page number next to heading redyar Word 2 06-18-2020 09:33 AM
Number the table of contents, even though heading style has no numbering Kiminator321 Word 5 04-21-2020 05:49 AM
Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it Page number intend problem in table of contents cabr Word 1 07-16-2015 02:00 AM
Office 2021: The page number of a heading in the table of contents (TOC) appears directly next to it 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 10:52 PM.


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