I don't have a better answer than using a GREP Find/Change in the generated TOC to search for the numbers at the beginning of a line followed by a ¶ and then replace the ¶ with a tab. You can save the query so that it's quick, but you'll have to run it after each TOC update, or wait until the book edits have been completed, and just do it once.
Just need to only include the "Title" and "Sub-Title" para styles in the TOC targets and have the corresponding para styles with auto-numbering!
Thank you for the replies.
It sounds like a good idea to include both title styles in the TOC targets. Could you explain how to do that? How do I combine the styles?
Thanks for the help.
1 person found this helpful
I'm sorry, ira_ira_ira_ira . Since Obi Wan came up with the solution, I thought he would have responded to your first request for more information to get credit for the answer.
Here's a way to handle this without a Find/Change:
- When you create the TOC, only pull in the non-numbered subtitles.
- In the Table of Contents dialog box, map both of those to new style names like SectionTitle TOC and SubSectionTitle TOC using Entry Style.
- This will generate the correct TOC, without any paragraph numbers, and will assign style names to both levels.
- In the Paragraph Styles panel, edit the two new styles (SectionTitle TOC and SubSectionTitle TOC) and add the numbers back in to these paragraphs, matching the system you used in the document.
Set up correctly, if you edit your document and the section numbers change, you can use Layout > Update Table of Contents and these will update as well. If you have any questions, feel free to ask me.