Skip to main content
Participant
January 12, 2025
Question

Override Parent List Style in Children

  • January 12, 2025
  • 2 replies
  • 464 views

I want to make a multilevel list in the following manner:

 

I. Title

1.1 Subtitle

1.2 Subtitle

1.3 Subtitle

II. Title

2.1 Subtitle

2.2 Subtitle

 

However, if I set the first-level numbering format to I, II, III, and second-level numbering to 1, 2, 3, 4 with the numbering as ^1.^2^t, it will display I.1, I.2, I.3, and so on instead of 1.1, 1.2, 1.3.

 

Is there any way to "override" the parent numbering style when referencing it? If not, I think it is a quite common scenario and I would like to add this feature. 

2 replies

FRIdNGE
January 13, 2025

Clearly:

 

 

(^/)  The Jedi

Barb Binder
Community Expert
Community Expert
January 13, 2025

Help me understand the "clearly" comment, @FRIdNGE

 

I see II, 1.4, 1.5, 1.6, 1.7 in your list

But unless I misunderstood, the OP wants II, 2.1, 2.2, 2.3, 2.4

 

I know you often see solutions where I see limitations, but the only way I am getting this to work is using 3 styles in two lists. If you can share your solution, great. If not, I will come back in the morning to explain mine to @Youxuan34444842hdxg.

 

~Barb

 

 

~Barb

~Barb at Rocky Mountain Training
FRIdNGE
January 13, 2025

Oops! Too bad, sorry!

 

We effectively need 3 para styles ["1" para style with leading = 0] and 2 lists! …

 

My contribution: … and 2 simple regex to quickly play the game:

 

 

 

 

 

 

(^/)

Willi Adelberger
Community Expert
Community Expert
January 12, 2025

This sill go automatically if all styles have the same list and different levels in their styles defined. 

James Gifford—NitroPress
Legend
January 13, 2025

Note that "same list" is crucial — you can't leave all the items in the default list, but must create a unique, named list and assign all of the levels that are to work together to that list. This detail is often overlooked, and without it things will "work" until they mysteriously don't. 🙂