Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-24-2018, 02:43 PM
tantle1961 tantle1961 is offline Table of Contents not generating correctly Windows 10 Table of Contents not generating correctly Office 2016
Novice
Table of Contents not generating correctly
 
Join Date: Dec 2018
Posts: 9
tantle1961 is on a distinguished road
Default Table of Contents not generating correctly


I have a document that has a table of contents that was generated correctly weeks ago when I started this document. All of the sudden my TOC is all messed up. Attached is an example of what has it looks like. The entire TOC is showing the formatting codes and even when I toggle the codes, the indention is wrong and the format codes come back when I select update all fields. I even deleted the TOC and when I regenerate, it is still wrong. I know Word uses the Heading1 and Heading2, etc to generate the TOC and the document headers look fine. Does anyone know what I might have done to mess this up?
Attached Files
File Type: docx Toggle Field Codes.docx (48.0 KB, 10 views)
Reply With Quote
  #2  
Old 12-24-2018, 04:01 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Table of Contents not generating correctly Windows 10 Table of Contents not generating correctly Office 2016
Moderator
 
Join Date: Aug 2011
Posts: 3,903
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

If the entries display incorrectly even after you hidden the field codes and updated the TOC, you will have to modify the paragraph styles TOC 1 and TOC 2 which control the formatting of TOC levels one and two, respectively.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional

Last edited by Stefan Blom; 12-24-2018 at 06:19 PM.
Reply With Quote
  #3  
Old 12-24-2018, 04:01 PM
Charles Kenyon Charles Kenyon is offline Table of Contents not generating correctly Windows 10 Table of Contents not generating correctly Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,125
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

Can't really tell from screenshots (which is what is in your attached document).
You do not want to be viewing Field codes when you are viewing/using your document. They are diagnostic. The codes displayed look fine.
Reply With Quote
  #4  
Old 12-24-2018, 05:56 PM
tantle1961 tantle1961 is offline Table of Contents not generating correctly Windows 10 Table of Contents not generating correctly Office 2016
Novice
Table of Contents not generating correctly
 
Join Date: Dec 2018
Posts: 9
tantle1961 is on a distinguished road
Default

I know they are not supposed to be displayed. I've been using Word for many years and have never seen this. The "field codes" are being displayed when I generate the TOC. I don't know what has caused this and how to get them to display properly.
Reply With Quote
  #5  
Old 12-24-2018, 06:11 PM
tantle1961 tantle1961 is offline Table of Contents not generating correctly Windows 10 Table of Contents not generating correctly Office 2016
Novice
Table of Contents not generating correctly
 
Join Date: Dec 2018
Posts: 9
tantle1961 is on a distinguished road
Default Table of Contents not generating correctly

I created a sample document with a TOC - see attached. Apparently my settings have changed the way TOC are generated. All I did was open a blank document, put a few letters defined as Heading1 and create at TOC. The "field codes" in my version are what are displayed.
Attached Files
File Type: docx Table of Contents - Example.docx (14.2 KB, 8 views)
Reply With Quote
  #6  
Old 12-24-2018, 06:27 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Table of Contents not generating correctly Windows 10 Table of Contents not generating correctly Office 2016
Moderator
 
Join Date: Aug 2011
Posts: 3,903
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

Press Alt+F9 to toggle the display of field codes. Alternatively, click File | Options | Advanced and clear the check box next to "Show field codes instead of their values."
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #7  
Old 12-24-2018, 07:37 PM
tantle1961 tantle1961 is offline Table of Contents not generating correctly Windows 10 Table of Contents not generating correctly Office 2016
Novice
Table of Contents not generating correctly
 
Join Date: Dec 2018
Posts: 9
tantle1961 is on a distinguished road
Default Table of Contents not generating correctly

Thanks for the settings tip. My settings must have gotten changed somehow. Changed it back and it appears correctly.

The only problem I have now is the indents. In my sample document, the indents are correct but in my real document, the indents are reversed. Is there another setting for that? See attached.
Attached Files
File Type: docx Table of Contents.docx (31.3 KB, 6 views)
File Type: docx Table of Contents - Example.docx (14.7 KB, 7 views)
Reply With Quote
  #8  
Old 12-24-2018, 07:52 PM
Charles Kenyon Charles Kenyon is offline Table of Contents not generating correctly Windows 10 Table of Contents not generating correctly Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,125
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

The settings are in the TOC styles which are contained in the document.
By default, these automatically update. That may be the source of your problem.
Take a look at the first article I linked.
Reply With Quote
  #9  
Old 12-24-2018, 08:06 PM
tantle1961 tantle1961 is offline Table of Contents not generating correctly Windows 10 Table of Contents not generating correctly Office 2016
Novice
Table of Contents not generating correctly
 
Join Date: Dec 2018
Posts: 9
tantle1961 is on a distinguished road
Default

Problem appears to be solved. Thank you to everyone who contributed.
Reply With Quote
  #10  
Old 12-24-2018, 08:06 PM
Charles Kenyon Charles Kenyon is offline Table of Contents not generating correctly Windows 10 Table of Contents not generating correctly Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,125
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

Looking at your document, with field shading on, I see this:


That looks pretty normal to me.


Is this what you want?


To get that, I changed the Indent for one of the level 2 entries. The others automatically updated.
Reply With Quote
Reply

Tags
heading1, heading2, toc



Similar Threads
Thread Thread Starter Forum Replies Last Post
Generating text from table selections valdavaux Word 3 10-11-2017 08:46 AM
Table Not Shading Correctly busybeas Word Tables 1 02-01-2017 09:14 AM
Table of Contents not generating correctly How to Correctly Format a Table of Contents DMC1987 Word 1 01-17-2017 10:13 AM
problem with formatting correctly Table of Contents mepossem Word 7 01-13-2017 04:19 AM
Table of contents not displaying correctly while print preview sumayya.shaikh Word 5 01-05-2015 02:52 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:28 PM.


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