Forum Discussion
How can I get my Table of Contents in Word to ignore line breaks that are in the body of my text?
- Jul 18, 2023
TomVassos The word Dedication was still in the Heading 2 Style
After changing it to the Normal Style
and then updating the table of contents, this was the result
TomVassos @Doug_Robbins_Word_MVP
Hi Doug, sorry to trouble you... in case you might know the answer, I'm having 2 more problems with my Table of Contents. See this image:
1. You will notice that it has picked up the fancy font for the word "Dedication" that I used on my Dedication page, but in the Table of Contents of course, I only want it to use a regular Cambria font, identical to the other font in the other Heading 2 titles in the TOC. I know I can change this manually, but is there any way to get it to do it automatically every time the TOC is updated?
2. You will notice that for the Part A title (Heading 1), it is indenting the first line but I don't want it to do that... I want the first line in that title to be all the way over to the left like the second line is. It's easy to change that manually, all I have to do is to move the little margin tab at the top of the page, but is there any way to get it to do it automatically every time the TOC is updated?
Thanks for any ideas you might have... 🙂
I agree with Doug that a sample document would be helpful to diagnose this in detail.
Generally, though, regarding #1, many aspects of direct font formatting (font name, font color) will be reflected in a table of contents. See the screen shot below.
- TomVassosJul 17, 2023Copper Contributor
Stefan_Blom You're wonderful, here is a screen capture of the offending page:
...and attached is a copy of the Word document... Thanks! 🙂
- Jul 17, 2023
TomVassos Stefan has given you the reason for the Dedication entry in the table of contents appearing in the way that it does. The same also applies to the Chapter by Chapter Overview and Appendix by Appendix Overview entries.
The work around for that is to remove the Heading style for such entries and insert a TC field (which being formatted as hidden text, will not be printed and thus will not interfere with the layout - as it does in the following screen shot)
It is then necessary to modify the Table of Contents so that it is also based on The use of Table entry fields
The issue with the indent of the Part A entry in the table of contents is that the TOC 1 style is formatted with a first line indent of 9 mm.
That style should almost certainly have a first line indent of 0 which will result in the following layout
- TomVassosJul 17, 2023Copper Contributor
Thanks so much. For the "Part" titles, I thought I already made that change but I guess not... I tried it and it worked... thanks!
Regarding the "Dedication" TC entry, I can't find where to insert a TC entry, where is that? Instead I just manually added this TC entry and it didn't work:
It was hard for me to read the screen capture you sent me... does that entry include "1 2" or "I 2"? The screen capture was too blurry.
Thanks!!!