Issue 109776 - Restart numbering and continue previous numbering of headings
Summary: Restart numbering and continue previous numbering of headings
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: OOO320m9
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-03 15:39 UTC by wdonne
Modified: 2017-05-20 10:44 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description wdonne 2010-03-03 15:39:59 UTC
Turn on outline numbering and make two level one headings separated by a numbered list containing at 
least two items. Then set restart numbering on the second heading. Its number will be "1.". Then set 
continue previous numbering for the same heading. It will now have the number that follows the number 
of the last list item instead of the first heading. The numbering of the second heading will also take over 
the numbering style of the list. The ODF-spec says you can only continue numbering from a preceding 
element if the list style is the same, which is not the case here.

I have version OOO320m12.
Comment 1 michael.ruess 2010-03-04 08:48:18 UTC
MRU->OD / FL: IMO we should disable the option "Continue previous numbering" for
outline paragraphs. Though it might be "logical" to use it for outline
paragraphs, it is more misleading, I think. 
Comment 2 aschwarz 2013-10-02 19:44:58 UTC
Any idea when you're going to be able to work on this? I have Header 4.4.1 twice, the second should be 4.4.2, and can't repair the problem. The document will have to be published with two section 4.4.1's and an apology.
Comment 3 Oliver-Rainer Wittmann 2013-10-07 07:04:59 UTC
(In reply to aschwarz from comment #2)
> Any idea when you're going to be able to work on this? I have Header 4.4.1
> twice, the second should be 4.4.2, and can't repair the problem. The
> document will have to be published with two section 4.4.1's and an apology.

I assume that disabling the function "Continue previous numbering" will not fix your document.

aschwarz@acm.org:
Without having your document I can only guess how to 'correct' your document.
May be option "Restart at this paragraph" is active at the second heading. Please check status of this option in dialog Menu Format - Paragraph - Outline & Numbering. If this option is active, deactivate it.

You can also send me your document via private mail? I think I am able to correct it. If your document contains confidential information, I ensure that I will keep your document confidential.
Comment 4 George Allaman 2014-04-17 19:52:01 UTC
I also have this issue and I confess it drives me nuts. I can work around it but the workaround is pretty draconian. I'll make a stab a describing it completely. My version of LibreOffice is 4.2.2.1 on a Mac Mini.

I have the Heading paragraph styles (Heading 1, Heading 2, etc.) configured for outline numbering. Everything works fine until I put a non-heading list in. When I create a new paragraph after the non-heading list and change its style to a Heading type, the number is reset, e.g. 1 1.1, 1.1.1, depending on the Heading level. This would indicate that the Heading's paragraph style has "Restart at this paragraph" checked, but it is not. This by itself is wrong. Then I select "Continue Previous Numbering" to get the correct numbering and the result is determined by the non-heading list - if it is bullets, I get a bullet in my heading; if it is numbered I get the next number in the non-heading list sequence, not the next number in the Heading sequence.

I've tried format paintbrush and it does not work. I've tried creating a new heading just after the next heading back in the document (this new heading will have the correct heading numbering) and cut-and-pasting it to the position where I need the new heading and this does not work. The only workaround that works for me is to remove any lists between the new heading I am trying to create and the next heading back in the document. I can do this either of two ways: cut the lists altogether or simply make them Text Body with no numbers or bullets. Then when I change the paragraph style of the line where I want a correctly numbered heading from Text Body to Heading X, I get the correct numbering. Then I can restore the lists and the numbering remains correct.

I have also noticed that when I change a Heading's paragraph style to Text Body, the heading number is retained, i.e. the paragraph's font and size changes correctly but the outline number and indent is retained as if it were a heading. If I backspace over the outline number to remove it and the indent, the numbering of subsequent numbered headings adjusts correctly, so the sequence remains intact.

It appears that the heading number when a new heading is created is taking its number from the closest previous list of any sort in the document, not from the closest previous heading. However, when lists are changed after the heading has been created and forced to be correct, the heading numbering remains correct.

As an engineer I must use numbered headings so for me at least this bug affects my workflow a lot. But thank you for a phenomenally useful tool.
Comment 5 zora_db 2014-04-28 20:44:11 UTC
I have the same problem, but in my case nothing fixes it. My heading numbering goes 1,2,3,4,5,8,5,3,4 - it takes the number from the last numbered list at any level, not from the last header.
Comment 6 Marcus 2017-05-20 10:44:10 UTC
Reset the assignee to the default "issues@openoffice.apache.org".