#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
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. |
#3
|
|||
|
|||
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. |
#4
|
|||
|
|||
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.
|
#5
|
|||
|
|||
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.
|
#6
|
||||
|
||||
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 |
#7
|
|||
|
|||
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. |
#8
|
|||
|
|||
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. |
#9
|
|||
|
|||
Problem appears to be solved. Thank you to everyone who contributed.
|
#10
|
|||
|
|||
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. |
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 |
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 |