Copy link to clipboard
Copied
Hi,
I've been passed a template that has the section titles done in 2 lines, the number alone and the title on the following line, like the following example:
1
Section title
1.1
Subsection title
I'm creating paragraphs styles to be able to automatically number those sections. The problem is, I'll have to create a Numbered section title (for the first line) and a non-numbered section title for the second line.
Now, once I create my table of contents, I'll need them both to appear in one line:
1. Section title
1.1 Subsection title
Considering that I have created now 2 separate paragraph styles, I'm not sure of how to do this. Is there anything I should be doing differently?
The document is quite large and with many subsections, so it's crucial to have automatic numbering.
Any help would be highly appreciated.
Thanks.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Hi Barb,
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!
That's all!
(^/)
Copy link to clipboard
Copied
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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:
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.
~Barb
Copy link to clipboard
Copied