Hi both
This seems to be one of those now you see it, now you don't problems ;-)
Every time I test this, I can't make it occur. But there have been
sufficient posts here, and times I've seen it happen in documents I've been
reformatting, to know that Word will sometimes include a manual page break
inserted before a heading as an item in its own right, or get the page
numbering wrong based on where the page break is, or some other daftness
like duplicating an entry.
I'm sure it has something to do with what gets caught into the hidden
bookmark that is (re) created when Word builds TOCs. Obviously what happens
when Word is working 'correctly' is that the page break at the start of a
heading is left outside, despite 'logically' being styled as part of the
heading. If you insert a page break at the start of a heading it will be put
inside any bookmark that exists - but normally when Word remakes the TOC it
puts the bookmark back in the right place. Except when it doesn't.
The best solution is definitely to use 'page break before', which avoids the
issue altogether. If you do have to use manual page breaks you need to be
particularly careful to update the TOC fully (not just page numbers) and to
check the result.
Beats me why Word uses 'wrap around' bookmarks at all for TOCs and X-refs,
when you are marking the paragraph, not its current text. The TOC rebuild is
just a workaround, and doesn't apply to X-refs, alas, where it is only too
common to find the references expanded to include whatever got inserted
before the heading.