Forum Discussion
ToC page numbers not working correctly
However, do you really need the Table of Contents, List of Figures and List of Tables entries in the Table of Contents
Thanks Doug_Robbins_Word_MVP! I checked the List of Tables/Figures page with hidden characters displayed, and there is no section break between the two.
One thing I can think of is that the List of Figures heading is a different style than the rest of the headings. The other headings in the document (styled as Section Headings) have a built-in page break beforehand so that they will start on their own page. However, since this is not a desired behavior for the List of Figures, I created a separate style called Table of Figures Heading which is identical to the Section Heading style except without the page break before.
Then, I modified the Table of Contents to look for both "Section Heading" text and "Table of Figures Heading" text so that all will be included properly in the table. Since the List of Figures heading is a different style than everything else in the table, and it's the only thing with incorrectly formatted page numbers, maybe this has something to do with it.
- dylanm312Jun 09, 2022Copper Contributor
I got it! There was a hidden section break between "List of Tables" and the "Table.......Page" subheading below it. I'm not sure why this didn't show up when I turned on hidden characters, but in any case, removing that section break fixed the problem.