Apache OpenOffice (AOO) Bugzilla – Issue 70748
RFE: inserting headings into text documents
Last modified: 2013-08-07 14:43:11 UTC
Currently, the only way to get a heading on a certain outline level into a text document is to apply a certain paragraph style to a paragraph. This paragraph style has to be assigned to the corresponding list level of the outline style - the outline style is a special list style, which is managed via menu "Tools - Outline Numbering". By default, these paragraph styles are "Heading 1" for outline level 1, "Heading 2" for outline level 2, ... and "Heading 10" for outline level 10. Thus, each heading by default is numbered according to the outline style definition - by default, the outline style definition has numbering "none" on each list level. Insertion of headings into a text document should be independent from a certain paragraph style and the outline style. The Writer should directly support headings, which aren't numbered. This feature makes the Writer more usable in the handling with headings. This feature is also important for the compatibility to Microsoft Word.
accepted.
adding keywords.
complementary links http://blogs.sun.com/GullFOSS/entry/make_everything_as_simple_as http://specs.openoffice.org/writer/numbering/OutlineLevel.odt
*** Issue 78355 has been marked as a duplicate of this issue. ***
For some reason the paragraph style -> numering style has been changed from <blank> to <none>, which results in no numbering. It is however not possible at the moment to change the numbering style back to <blank>. Is there a possible workaround, to set the numbering style back to <blank>?
OD->rbos: A <blank> numbering style means, that an automatic (internal and unnamed) numbering style is applied at the paragraph or the paragraph style. The special numbering style for the outline/headings, which is managed under menu Tools - Outline Numbering, is also such an automatic numbering style. (Note: Hopefully, I will get the resources for OOo 3.0 to change these unnamed numbering styles into named ones.) I think you experienced a defect in OOo Writer, but the information you have given is too less. I propose, that you submit a new defect issue for this - this issue is a feature issue to implement a the new feature specified in the given specification. Please provide as many information as you can about your defect in the new issue and if possible attach a corresponding text document to reproduce the defect. Thx.
rbos->od I don't think I encountered a bug, it seems to work as designed. I though it does not work as it is not intuitive what is currently happening. I changed a setting via: "Styles and Formatting" (F11) -> Heading 1 (modify) The Paragraph Style: Heading 1 pops up -> in the tab "numbering" Numbering style is "blank". Change change Numbering Style to "none". This removes the number in front of the Heading 1 texts. Now to get this back one has to go to tools -> outline numbering -> numbering -> Change paragraph style from "none" to Heading 1. While one would expect to be able to change this via the "Styles and Formatting" (F11) -> Heading 1 (modify) The Paragraph Style: Heading 1 widget.....
OD->rbos: Sorry, I misunderstood you first comment. Yes, you are right - this is the current inconsistent behavior. Please have a look at the specification "Introduction of an outline level attribute for paragraphs and paragraph styles", found at http://specs.openoffice.org/writer/numbering/OutlineLevel.odt. In sub chapter 1.4 you will find the changes, we want to implement. Namely, we want to disable the list box for the numbering style in the format paragraph style dialog, pane "Numbering", if the paragraph style is assign to the outline style (menu Tools - Outline Numbering). By the way, the above given specification is the specification for this feature issue, but I've forgotten to post it here. Now, it's done ;-)
target 3.0
issue 5038 should be solved by the implementation of above mentioned specification
assigning to zhaojianwei, who is working on the implementation in cws outlinelevel
accepted
change milestone from OOo3.0 to OOo3.1
Will this handy feature be implemented in OOo 3.1?
OD->lendo: Yes. zhaojianwei has finished the main work in cws outlinelevel. We are currently doing testing. There are also smaller task opened, which needed to be done, before given the cws into the QA.
done in cws outlinelevel
OD->MRU: Please verify.
Verified in CWS outlinelevel.
->OD. This fix has the same spec as 5038, so I doubt it addresses the problem (specifically wrt figure and table numbering incrementing inside chapters, but independant of headings). Very happy to test it, but this issue is not listed in the latest snapshot. Any link to a build with this issue 'fixed'?
->OD: Actually, looking at 78301 & 5038, I think 5038 is not a duplicate of this issue, if anything this issue is a subset of 5038. Ditto 78301. In some sense the dependency tree should look like 70748-+ + ---- 5038 78301-+
Will verify check as soon as I can find an installer with this version. My main concerns are that: - If I have a Heading 1 in Chapter 1, numbered 1.1, and I cut and paste this to appendix 1, is should automatically be numbered A.1. - I need to be able to define table, figure, map & plate numbering that is independant of heading numbering, but increments inside chapters. So if the first FIGURE appears under a Heading 3 item that is numbered 5.2.3, then I would expect the figure to be numbered 5.1. - If I change the top level heading format in a chapter from 'Chapter' to 'Appendix', all sub-headings should automatically change appropriately (g. from '5.2.3' to 'A.2.3'). - The ability to construct a List-of-Figures (and List-of-Plates etc) that works like a TOC, but for the specified paragraph types. - The ability to have sub-figures (eg. Fig 1(a)) that function similarly to paragraphs in terms of counter incrementing etc. I'll be very happy if this has all been achieved!
->warnerpj: Regarding the dependence structure of the mentioned issues you may be right. I think implementing the specification of this issue is the first big step to solve the problems and enhancement wishes of these issues. When cws outlinelevel is integrated into the DEV300 code line of OOo 3.1, we can continue to work out what is still missing around with feature area. Regarding your concerns: <quote> - If I have a Heading 1 in Chapter 1, numbered 1.1, and I cut and paste this to appendix 1, is should automatically be numbered A.1. </quote> I think this will not work in cws outlinelevel. Such a feature depends on how you build up your numbering. One condition that is needed to be hold to make this feature work is that the cut-and-pasted paragraph (numbered 1.1) and the paragraph "appendix 1" (numbered A) needs to be in the same list OR the cut-and-pasted paragraph has to be moved from its list to the list of paragraph "appendix 1". <quote> - I need to be able to define table, figure, map & plate numbering that is independant of heading numbering, but increments inside chapters. So if the first FIGURE appears under a Heading 3 item that is numbered 5.2.3, then I would expect the figure to be numbered 5.1. </quote> This is already possible since OOo 1.x. Menu Insert - Fields - Others - pane "Variables" - type "Number range" - e.g. selection "Table" - use feature "Numbering by chapter" <quote> - If I change the top level heading format in a chapter from 'Chapter' to 'Appendix', all sub-headings should automatically change appropriately (g. from '5.2.3' to 'A.2.3'). </quote> This seems to be something like your first point. <quote> - The ability to construct a List-of-Figures (and List-of-Plates etc) that works like a TOC, but for the specified paragraph types. </quote> I do not know what you really mean. You can already create a table of contents, which is only build-up by user defined paragraph styles. <quote> - The ability to have sub-figures (eg. Fig 1(a)) that function similarly to paragraphs in terms of counter incrementing etc. </quote> Here I am also unsure about what kind of feature do you mean.
->OD: Thanks for the quick reply! <quote> Regarding the dependence structure of the mentioned issues you may be right. I think implementing the specification of this issue is the first big step... </quote> Sounds reasonable, but you may want to change the status of Issue 5038 to reflect this. Otherwise the efforts of various contributors to 5038 will be lost. <quote> <quote> - If I have a Heading 1 in Chapter 1, numbered 1.1, and I cut and paste this to appendix 1, is should automatically be numbered A.1. </quote> I think this will not work in cws outlinelevel.... and the paragraph "appendix 1" (numbered A) needs to be in the same list OR the cut-and-pasted paragraph has to be moved from its list to the list of paragraph "appendix 1". </quote> It would be great if we could define/override numbering formats at the paragraph level so that an 'Appendix' paragraph format could be defined based on 'Chapter' that just overrides the numbering (and restarts it). <quote> <quote> - I need to be able to define table, figure, map & plate numbering that is independant of heading numbering, but increments inside chapters. So if the first FIGURE appears under a Heading 3 item that is numbered 5.2.3, then I would expect the figure to be numbered 5.1. </quote> This is already possible since OOo 1.x. </quote> Last time I looked it was hard to define a 'Figure 2' (and 'Figure 3') format that worked like 'heading 2/3' in terms of numbering; I want to be able to specify that 'Figure 2' has numbering 'inside' of 'Figure 1' and that that the format is lower case alpha. eg. 'Figure 1(a)'. <quote> <quote> - If I change the top level heading format in a chapter from 'Chapter' to 'Appendix', all sub-headings should automatically change appropriately (eg. from '5.2.3' to 'A.2.3'). </quote> This seems to be something like your first point. </quote> You are correct; I just wanted to emphasize the point and make it clear the extent to which I htink it needs to be integrated. <quote> <quote> - The ability to construct a List-of-Figures (and List-of-Plates etc) that works like a TOC, but for the specified paragraph types. </quote> I do not know what you really mean. You can already create a table of contents, which is only build-up by user defined paragraph styles. </quote> afaict, TOC workd only on 'outline' paragraphs. We need a parallel mechanism that produces a 'List of Figures' which is exactly like a TOC, but for 'Figure 1', 'Figure 2' etc. Ditto for 'List of Plates' (based on paragraph formats for 'Plate 1', 'Plate 2' etc. These lists are separate from the TOC, but would be formatted similarly. Bear in mind that some books number Plates (usually pictures) in a numbering system that is *outside* Chapter numbering, while others number them inside chapters. <quote> <quote> - The ability to have sub-figures (eg. Fig 1(a)) that function similarly to paragraphs in terms of counter incrementing etc. </quote> Here I am also unsure about what kind of feature do you mean. </quote> See above. Let me know if you need more clarification. I am very happy to help. The above requirements are why I suggested it would be more useful to associate a counter with a paragraph format (in the thread for Issue 5038), and that we should allow a counter to have an (optional) parent. We would also need to allow the paragraph to specify/overide the numbering at the given outline level.
Checked in DEV300m39.