Chapter numbering not working on one chapter

I’m having trouble with the Heading numbers not working properly in one of my chapters in LibreOffice 7.4.2.3.

I have a master document and several separate chapters that are included into the master document. Each chapter document has the form: (pretend the leading “x” is not there, otherwise this site’s markdown wants to renumber.)
x 1. Heading1
chapter n text
x 1.1 Heading2 (optional)

The master document, after updating everything, shows:
x 1. Chapter 1 title
x 2. Chapter 2 title
x 1.1 Chapter 2 heading 2 title
x 1.2 chapter 2 heading 2 title

x 3. Chapter 3 title
x 3.1 Chapter 3 heading 2 title

All the other chapters, starting with #3, are numbered correctly. BTW, Chapter 1 happens to have no level 2 headers. (It’s an intro chapter.)

I have copied the Styles and Chapter Numbering from one of the chapters into the chapter 2 document (as well as all the chapters), but that doesn’t change the Heading2 numbers for chapter 2.
I set the chapter numbers via Tools->Chapter Numbers in all my chapters and my master document to use the hierarchical, numeric numbering scheme (1, 1.1, 1.1.1, etc.)

Update: If I move chapter 3 in front of chapter 2, I get the following numbering:

x 1 Heading 1 title
x 1 Heading 1 title from ch 2 (this should be numbered 2)
x 1.1 Heading 2 title (this should be numbered 2.1)
x 1.2 Heading 2 title (this should be numbered 2.2)
x …
x 1.9 Heading 2 from ch 3 (this should be numbered 2.9)
x 2 Heading 1 from old chapter 2 (this should be numbered 3)
x 1.9 Heading 2 title (this should be numbered 3.1)
x 1.10 Heading 2 title (this should be numbered 3.2)

x 2 Heading 1 from ch 4 (this should be numbered 4)
x 2.1 Heading 2 from ch 4 (this should be numbered 4.1)

So, my guess is that something in Ch1 is not setting the chapter numbering correctly, because either file as ch 2 gets numbered 1.
Also, something in my old ch 2 is not resetting the Heading 2 numbers!

Any idea what’s wrong?
Looking at another bug, somebody was messing with the Outline numbering, but I haven’t touched that.

I found a solution!
I tried deleting the heading by backspacing over it, then shift-backspacing it. Didn’t work.
I upgraded from 7.3.5 to 7.4.2. That didn’t fix it either.
Finally, I changed the offending Heading 1 to Text Body, then back to Heading 1. All better!

1 Like

What you describe is typical of a conflict caused by pressing at some time in the past on a “numbering list” button in the toolbar. You then create a second numbering sequence not synchronised with Tools>Chapter numbering. By applying Text Body, you clear parts of added attributes (in this case the offending numbering). Now, Heading 1 is applied strictly as it is defined.

Note that spurious numbering can’t be cleared by Ctrl+M. Using Bksp only creates an unnumbered entry in the list without clearing the membership to a list.

For the future, take special care not to mix, even accidentally, list numbering and chapter numbering.

2 Likes