Because you want to number your acts independently from your chapters, you need two distinct counters. I keep “chapter numbering” associated with your chapter headings so that you can have subchapters numbered as usual "per chapter. The other counter is assigned to “acts”.
-
Create a new “list style” (ill-named because they really define a sequence counter)
- In the style sidepane (
F11
if not already there) toolbar, click on the fifth icon from the left.
- Right-click in the list and
New
.
- Give it name Act in the
Organizer
tab.
- Ignore
Bullets
, Numbering Style
, Outline
and Image
; if you click here after having started to configure your style you’ll mess up everything and will be compelled to restart from scratch.
- In
Customize
tab, configure Level 1 (the only one we will use) for Number 1, 2, 3 …
, Separator Before "Act " (note the trailing space).
- Tab
Position
allows you to position the numbering and eventual heading as you like. You can do it later through style editing.
-
Temporarily detach Heading 1 from chapter numbering so that you can customise it
-
Tools
>Chapter Numbering
- In
Numbering
tab, click on Level 1 and assign Paragraph style [None]
(instead of Heading 1
)
-
Modify Heading 1
- In the style sidepane toolbar, click on the first icon at left for paragraph styles
- Right-click on Header 1 and
Modify
.
- In
Outline & Numbering
, the Outline level is now Text Body
because the style has been detached from chapter numbering. Select Act
for *Numbering style. Assign back Outline level 1.
-
Reattach Heading 1 to chapter numbering so that it is included in the TOC
-
Tools
>Chapter Numbering
- In
Numbering
tab, click on Level 1 and assign Paragraph style Heading 1
Style your act heading Heading 1 and your chapter heading Heading 2. If your act headings reduce to simply “Act #”, then type a space to guarantee the “number” will be there (it is frequently automatically suppresses on empty paragraphs.
Your TOC is generated, as usual, with Insert
>TOC & Index
>TOC, Index or Bibliography
. Records in the TOC are formatted with Contents n paragraph styles.
Special requirements:
-
Chapter numbering and heading on separate lines
Tools
>Chapter Numbering
, Position
tab, for Level 2, Numbering followed by: New Line
-
Different formatting for number and heading (as suggested by your use of <H2>
and <H3>
in your sample.
Heading 2 will format the heading. To have a different formatting for the number, create a dedicated character style. In Tools
>Chapter Numbering
, Numbering
tab, for Level 2, select this character style in Character style: to replace None
.
-
Adding a colon in the TOC between chapter number and heading
- Define a character style (with name Hidden or another one at your convenience) with Hidden checked in
Font Effects
tab (and nothing else in any other tab)
1.In your chapter headings (paragraphs styles *Heading 2), add ": " (colon + space) before the first word of the heading; select this string and style it Hidden (your special character style)
Note: there will be a space before the colon in the TOC because the line break is transformed into a space. Make sure anyway that Separator After in chapter numbering is empty for level 2 (otherwise, you’ll have more spaces).
To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!
In case you need clarification, edit your question (not an answer which is reserved for solutions) or comment the relevant answer.