Skip to main content
Known Participant
December 20, 2017
Answered

How do I restart H2 sub numbering e.g. 1. & 1.1, 2 & 2.1? etc.

  • December 20, 2017
  • 1 reply
  • 896 views

Hi, I'm using FM 13.03 and I'm trying to get the 2nd level number in a Heading2 tag to reset to 1 so that I get:

1.  Heading 1

1.1  Heading 2

Text & pictures

2. Heading 1

2.1 Heading 2

Text & pictures

My current tags are:

Heading 1 = H:<n+ >

Heading 2 = H:<n>.<n+>

And they give me

1. Heading 1

1.1 Heading 2

Text & pictures

2. Heading 1

2.2 Heading 2

Text & pictures

Is there a way to restart the 2nd number in the Heading 2 to be 1 when it follows a Heading 1 tag, e.g. in the above example it would be 2.1?

This topic has been closed for replies.
Correct answer Barb Binder

They should be:

Heading 1 = H:<n+>< =0>

Heading 2 = H:<n>.<n+>

~Barb

1 reply

Barb Binder
Community Expert
Barb BinderCommunity ExpertCorrect answer
Community Expert
December 20, 2017

They should be:

Heading 1 = H:<n+>< =0>

Heading 2 = H:<n>.<n+>

~Barb

~Barb at Rocky Mountain Training
Ian Proudfoot
Legend
December 20, 2017

Barb,

When I saw the original post, I thought the autonumber strings looked just fine. That's the way I've done it for the last 25 years without  any sort of problem. So I checked just to be sure and it does indeed work as expected using FM 13.05.547. I really can't see any reason for the results that paul_newb is seeing, because it's not wrong. That behaviour doesn't make sense when you consider the way that FM autonumber building blocks work. Very strange...

Ian

Matt-Tech Comm Tools
Community Expert
Community Expert
December 20, 2017

Ian, without the < =0> reset code, what would cause the 2nd level autonumber to reset?

The only way I see to reset it without the building block is to use Heading1 as a chapter title, and use the numbering properties on the file/book to reset paragraph numbering at the start of each chapter.

Either way, I'd consider Barb's strings to be best practice.

-Matt Sullivan, FrameMaker Course Creator, Author, Trainer, Consultant