Forum Discussion

Ami001955's avatar
Ami001955
Copper Contributor
Aug 10, 2024

Auto-restart numbering for custom styles

Greetings word experts,

Thanks for reading this.

I have created custom styles for use in a script document. 
I've created a "Chapter" style which is based on heading 1, and a "Topic" style which is based on heading 2. Both are set to use numbering with the text "Chapter x" and "Topic x" respectively where "x" is the auto number. This way, if I decide to move chapters or topics around the document my numbering remains correct and is updated automatically. 
My challenge is having the topic number auto-restart to 1 for each new chapter.
Currently, when I start a new chapter and then start a new topic, the topic numbering continues from the last chapter.
I can correct it manually for each chapter, but I'm wondering if there is a way for an auto-restart after encountering a 'higher level' heading as part of the style definition.
Your help will be appreciated, and have a great day!