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.
With these settings, you'd expect the following numbering:
1. Heading 1
1.1 Heading 2
1.1.1 Heading 3
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!
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.
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:
But once set in the Heading style dialogs, the full numbering is not displayed.
Verified with 22.214.171.124 and 126.96.36.199
Set as New - Sophie
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.
*** Bug 74552 has been marked as a duplicate of this bug. ***
(In reply to Albrecht Müller from comment #3)
> 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.
I just want to add to (and largely agree with) what has been stated above. There is currently a hopeless confusion between styling ordered list items (associating paragraph and list styles; Format > Bullets and Numbering...; using the list toolbar buttons) and setting heading outline numbering (Tools > Outline numbering). This is largely due to how the related options are exposed to the user in the UI (modify style > Outline and Numbering tab; Format > Bullets and Numbering > Options tab). The two use similar terminology to that in the Tools > Outline Numbering facility and yet generate quite different XML in the background.
I have almost given up trying to explain the differences over on the AskLO site as the UI indicates that the on-screen results should be similar. While ordered lists can be defined to use an outline style of numbering it needs to be remembered that headings are not list items. At this point there may be little that can be done to improve the situation with the term "outline" being used for both headings and lists. Perhaps we can more clearly indicate in the UI which relates to headings and which to list items? It may be that the core problem here relates to shortcomings with the ODF specification or a need for OOXML interoperability? In any case this is not a problem that I see being resolved any time soon.
** Please read this message in its entirety before responding **
To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.
There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.
If you have time, please do the following:
Test to see if the bug is still present on a currently supported version of LibreOffice
(5.0.5 or 5.1.0) https://www.libreoffice.org/download/
If the bug is present, please leave a comment that includes the version of LibreOffice and
your operating system, and any changes you see in the bug behavior
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave
a short comment that includes your version of LibreOffice and Operating System
Please DO NOT
Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not
appropriate in this case)
If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3)
2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword
Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa
Thank you for your help!
-- The LibreOffice QA Team This NEW Message was generated on: 2016-02-21
Still a problem in:
Build ID: d54a8868f08a7b39642414cf2c8ef2f228f780cf
CPU Threads: 8; OS Version: Mac OS X 10.12.3; UI Render: GL;
Locale: en-US (en_US.UTF-8); Calc: group
I simply don't understand what value the "Outline level" setting in the "Outline & Numbering" tab of the Paragraph Style settings window provides, if not to automatically set the outline level.
For document authors of structured documents, this is quite a serious problem. The user has the ability to define a paragraph style that includes an outline level, which sets the expectation that if a paragraph has its style set, that its outline level will be set accordingly.
If the Document Foundation hopes that LibreOffice and the Open Document formats are to become more broadly adopted as a document format in professional organizations such as technology standards bodies (several of which I take part in and NONE of them use ODF or LibreOffice) this issue MUST be resolved.
The outline level is set correctly, but the paragraph does not get a list-level, which corresponds to the outline level.
The list level is not given by an attribute in the file format, but by nesting lists, which is a structure.
I have looked around in the ODF 1.2 specification, whether it is possible to specify an associated list level. If I understand the spec correctly, it would be possible to use the attribute "style:list-level" in the paragraph style. That is section 19.495 in http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html. It seems, that currently LibreOffice does not evaluate that attribute at all. At least adding it manually to the file has no effect and resaving the document removes this attribute.
With that attribute it would be possible to build a set of paragraph styles similar to "Heading 1", "Heading 2", ..., so that when assigning the paragraph style, LibreOffice knows, that it has to put the paragraph to the specified list level, which means to generate the nested lists accordingly.
If I'm correct with my interpretation, then implementing the attribute could solve the problem. In this sense this bug report would be an enhancement request.
*** Bug 104206 has been marked as a duplicate of this bug. ***
*** Bug 78519 has been marked as a duplicate of this bug. ***
*** Bug 86905 has been marked as a duplicate of this bug. ***
I can reproduce the problem using attachment 76173 [details] with
Version: 188.8.131.52.beta1 (x64)
Build ID: 4d7e5b0c40ed843384704eca3ce21981d4e98920
CPU threads: 8; OS: Windows 10.0 Build 18363; UI render: GL; VCL: win;
Locale: da-DK (en_DK); UI-Language: en-US
1. Outline level "Heading 1" was set to "Text Body" (but it did not seem to matter if it was subsequently changed to "Level 1")
2. Selecting the three lines, and toggling the number list (F12) or from toolbar gave THREE different appearances (but I cannot explain why).
3. After trying to modify a style, then this effect disappears.
4. Tried to get things to work (without success) by modifying the styles. Is it correct to believe that it is impossible with this method?
5. Open attachment 76173 [details], use Tools > Chapter Numbering. Levels 1 to 4 have No paragraph style, and "Show sublevels" is 1 for each level.
(In reply to Regina Henschel from comment #8)
> If I'm correct with my interpretation, then implementing the attribute
> could solve the problem. In this sense this bug report would be an
> enhancement request.
I get the impression that this has been attempted (linking list styles with paragraph styles) - which may be why Tools - Chapter Numbering works. See here:
(In reply to sdc.blanco from comment #12)
> I get the impression that this has been attempted (linking list styles with
> paragraph styles) - which may be why Tools - Chapter Numbering works.
Sorry -- I should have specified that the technique for linking list styles with paragraph styles seems to have been worked out Headings. I understand that in this case, there is an attempt to link list styles with paragraph styles, which does not seem to be possible manually.
Have changed bug summary to better express the problem.
To understand the problem.
Start in a Paragraph Style dialog box (e.g., Format > Paragraph for any line).
0. Ignore "Outline Level" in this dialog box. It is not relevant for this issue.
1. Click on drop-down box in Numbering Style, choose one you like.
2. Now, edit that chosen Numbering Style (i.e., View > Styles (F11), click on List Style icon.
3. Find the Style chosen in step 1, right-click, Modify
4. For different levels, set different values for Number.
Now here is the problem.....how do you tell your paragraph style which numbering level (which was set in step 4) to use for the numbering style chosen in step 1? (The claim is: You can't -- with one exception noted below).
You can specify the numbering style in the Paragraph style dialog box. And you can specify the appearance of each level in the Numbering Style dialog box. But you cannot link these two dialogs (i.e., to specify which numbering level should be used in the chosen paragraph style, so you always get Level 1). That is the problem reported in this bug.
This is consistent with Regina's hypothesis (comment #8), that there is no way in the Paragraph style dialog to give a level to the numbering style.
It is possible -- as discussed in bug #42920 - to use the Tab key or the Promote/Demote icons in the Bullets and Numbering Toolbar to introduce these levels in the document, but there is no way for a user to specify these levels in the Paragraph style.
A solution, as requested in bug #42920, would be to add a drop-down box in the Paragraph dialog box in the Numbering section, for example, under the Numbering Style, where the Level could be specified.
*** Bug 126887 has been marked as a duplicate of this bug. ***
Changing priority back to 'high' since the number of duplicates is 5 or more
Wasn't this a use case in which you have to type TAB at the start of the heading to move it to the next level?
(In reply to Cor Nouws from comment #17)
> Wasn't this a use case in which you have to type TAB at the start of the
> heading to move it to the next level?
Sort of but you shouldn't have to type TAB - it should assume the right numbering level based on the style. You shouldn't have to touch the style AND the numbering.