Hi Van,
yes, each chapter is a separate file. The heading 'Section 3 ...' is a paragrpah format 'Section Title'; the heading 'Chapter 1 ...' is a paragraph format 'Chapter Title'; the next level down is a paragraph format 'Main Heading'. All are located on the Body page in a text frame. The TOC is setup to include these three paragraph formats. There is nothing in the header/footers that is used in the generation of the TOC. Here's a screen shot to show my TOC setup. I don't believe that doing an index is the way to go (thanks anyway) because that will only make it harder when I actually have to create a proper index. I'll persevere with examining variables in the TOC reference page and see if that doesn't shed any light - if nothing else this willhave been a learning experience.
Cheers
Carl
Are you putting a Section Title paragraph in each Chapter? If so, that's the problem -- there should only be one Section Title paragraph, in the chapter where the section actually starts. Succeeding chapters that are within that section should not have a Section Title.
That's where you're mix-and-matching with the concept of "grouping" and the workings of an Index.
TOCs work by selecting the actual paragraph text for each specified tag -- FM doesn't "roll up" all Section Title paragraphs even if they're the same.
If you need to have the text of the Section title repeated on each subsequent chapter start, I'd suggest that you make a new paratag, e.g. "Section Repeater", and then not include that tag in your TOC, of course. There are other methods to repeat content, too, such as using variables and markers, but let's not get the thread too confused just yet.