I am using LO Writer 6.4.2.2 and I have a table of contents which is fairly well customized. I am not using Heading 1, etc. but rather my own styles. Everything was working fine, until I got some strange results.
Basically, each chapter starts with a Chapter Number which is followed by a Chapter Title (these are the names of the styles). After Chapter Title comes Text Body. This is true in all chapters except the first one which is Introduction. It has a Chapter Name but no Chapter Number (I have played around with this and adding a Chapter Number before the Chapter Title does not fix anything).
So, in the introduction, after the Chapter Title, there are Text Body words, like the other chapters. However, the Text Body words in Introduction actually show up in the Table of Contents. This behavior is not repeated in other chapters, just the Introduction.
I have tried changing styles in various places to fix the problem, but I have not found success.
Could anyone help me identify why this problem is happening (or better yet, how to correct it)?
The file in question is attached here: BrokenToC.odt