Hi,
Is there a way to only include the first occurrence of each chapters heading?
My use-case is the following:
In PowerPoint like documents/presentation slides you normally have headlines on every page. Chapters often span multiple pages and so use the same heading on consecutive pages and only differ in the subheading. The TOC feature of indesign lists all occurrences of the heading elements which uses the given paragraph style regardless of their repeating contents on consecutive pages. We often have to prepare presentations with up to 150 pages using 10 chapters with 2 or sometimes 3 levels header structure.
I’ve once wrote a script (10 years ago :O) that removes these double entries based on their numbering at the beginning (1., 1.2, 1.2.3, …) but that lacks many features and doesn’t account for some special cases.
I’ve also tried using textvariables (running headers) together with a 2nd header style that is not included in the toc but that again violates a special case where a numbering scheme within the header is used in the form of “Header (2/10)” which is not possible then.
Thanks in advance!