Bug 62032 - Outline numbering doesn't work when defined in Paragraph Styles
Summary: Outline numbering doesn't work when defined in Paragraph Styles
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version: 3.5.7.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
: 74552 (view as bug list)
Depends on:
Blocks: 83071
  Show dependency treegraph
 
Reported: 2013-03-08 17:41 UTC by Miguel
Modified: 2014-09-02 09:08 UTC (History)
5 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Proof of concept of the issue (11.47 KB, application/vnd.oasis.opendocument.text)
2013-03-08 17:41 UTC, Miguel
Details

Description Miguel 2013-03-08 17:41:29 UTC
Created attachment 76173 [details]
Proof of concept of the issue

Consider the attached file, where we have a Heading 1 (H1), a Heading 2 (H2) and a Heading 3 (H3).

One of the ways to define numberings (the only way if you intend to create a style template that you can then apply to existing documents) is do the following:

1) Tools-Outline numbering: Set "paragraph style" to (none) in first 3 levels
2) Styles & formatting - list styles: use Numbering 1 to define your numbering style
3) Styles & formatting - Paragraph styles: Change H1,H2,H3. Outline & numbering tab - set "numbering style" to Numbering 1 and Outline Level to 1,2 an 3 respectively.


Expected:
With these settings, you'd expect the following numbering:

1. Heading 1
1.1 Heading 2
1.1.1 Heading 3


Actual:
1. Heading 1
2. Heading 2
3. Heading 3

You can confirm this in the attachment, where the proof is even more evident because I set the prefix XX to Level 1 in the style Numbering 1. It should be applied to H1 only, but it's being applied to H1,H2 and H3!
Comment 1 Brenda Granados 2013-05-19 12:37:51 UTC
Hi, I can confirm that LibreOffice is behaving as you stated, but I am not very familiar with Styles and Outline numbering. Why do you think it should show

1. Heading 1
1.1 Heading 2
1.1.1 Heading 3

I will do some more research to understand what the expected behavior should be.

Thanks,

Brenda
Comment 2 sophie 2014-03-24 16:08:12 UTC
Confirmed but this is really not a good way to set a chapter numbering. 
Using the Numbering 1 style alone works as expected, i.e demoting the levels gives:
1.
1.1
1.1.1
But once set in the Heading style dialogs, the full numbering is not displayed.
Verified with 4.1.5.3 and 4.2.3.1
Set as New - Sophie
Comment 3 Albrecht Müller 2014-09-02 09:04:52 UTC
My current understanding of concepts of outline numbering is:

You can define outline levels for paragraph styles, and you can attach list styles the paragraph styles. The numbering level you see is independent of the outline level.

This implies that you have to set the numbering level by hand. If your outline level is "Body Text" that is usually what you want. If the outline level is something else I think you usually expect that the numbering level reflects the outline level. This is what happens if you define the numbering using the Tools -> Outline Numbering window.

I think it is not possible to fix this issue by automatically linking the numbering level to the outline level: This would break existing documents that rely on the fact that the applied numbering level is independent of the outline level.

A possible solution may be to add a check-box that allows you to specify if the resulting numbering level should depend on the outline level.

I think bug 74552 is essentially a duplicate of this one.
Comment 4 Albrecht Müller 2014-09-02 09:08:29 UTC
*** Bug 74552 has been marked as a duplicate of this bug. ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.