https://bugs.documentfoundation.org/show_bug.cgi?id=174480
Bug ID: 174480
Summary: Numbered Paragraphs
Product: LibreOffice
Version: 26.8.2.2 release
Hardware: x86-64 (AMD64)
OS: Windows (All)
Status: UNCONFIRMED
Severity: enhancement
Priority: medium
Component: LibreOffice
Assignee: [email protected]
Reporter: [email protected]
Summary
LibreOffice Writer provides powerful heading numbering and list numbering
facilities. However, there is a limitation when users need to number ordinary
paragraphs sequentially within each main heading, independently of the
document's nested heading structure.
Currently, Heading Numbering allows only one paragraph style to be assigned to
each numbering level. This makes it difficult to combine numbered headings and
numbered body paragraphs within a single coherent numbering system.
I propose introducing a native automatic paragraph numbering feature that
allows ordinary paragraphs to inherit the current Heading 1 number as a prefix,
while maintaining their own sequential numbering.
The paragraph numbering would automatically restart at each new Heading 1,
irrespective of intervening Heading 2, Heading 3 or Heading 4 headings.
This functionality should be independent of ordinary numbered and bulleted
lists.
2. The Problem
Writer currently provides:
• Heading Numbering for hierarchical heading structures.
• List Styles for numbered and bulleted lists.
• Paragraph styles for controlling paragraph formatting.
These facilities work well individually, but they do not provide a
straightforward way to achieve the following numbering arrangement:
• Heading 1 establishes the main section number.
• Ordinary paragraphs receive sequential numbers under that Heading 1.
• Nested headings do not interrupt or restart the paragraph numbering.
• A new Heading 1 automatically restarts the paragraph numbering.
• Changes to heading numbering automatically update the paragraph-number
prefixes.
Users currently have to consider workarounds involving multiple numbering
levels, separate list styles, manual restarts or macros.
These approaches are unnecessarily complicated for what is a common
document-structuring requirement.
3. Proposed Functionality
Introduce a dedicated numbering option for paragraph styles.
The user should be able to select a paragraph style, such as Numbered
Paragraph, and configure its numbering relationship to a heading level.
For example:
Numbering source: Heading 1
Restart numbering: At each new Heading 1
Number format: Heading 1 number + paragraph sequence
Starting paragraph number: 1
The paragraph number would consist of two components:
1. The automatically retrieved number of the current Heading 1.
2. A sequential paragraph counter.
These components would be displayed together.
4. Expected Numbering Behaviour
The following example illustrates the proposed functionality.
1 General Provisions
1.1 First numbered paragraph.
1.2 Second numbered paragraph.
1.2.1 Interpretation
1.3 Third numbered paragraph.
1.4 Fourth numbered paragraph.
1.2.1.1 Further Interpretation
1.5 Fifth numbered paragraph.
1.6 Sixth numbered paragraph.
2 Administration
2.1 First numbered paragraph.
2.2 Second numbered paragraph.
Notice that the paragraph numbering continues through nested headings without
restarting.
The paragraph numbering restarts only when a new Heading 1 begins.
5. Automatic Renumbering Requirements
The proposed feature should support automatic updates when:
• A numbered paragraph is inserted.
• A numbered paragraph is deleted.
• Numbered paragraphs are moved.
• A Heading 1 is inserted.
• A Heading 1 is deleted.
• Heading numbering changes.
• The order of headings changes.
• Paragraphs are moved between Heading 1 sections.
The displayed paragraph numbers should always reflect the current document
structure.
Numbers should not be stored as manually typed text.
6. Independence from Other Numbering Systems
The proposed feature must not interfere with existing Writer functionality.
In particular:
Heading Numbering
Heading 1 through Heading 4 must retain their existing independent hierarchical
numbering.
Numbered Paragraphs
A dedicated paragraph style should control the automatic paragraph numbering
linked to Heading 1.
Numbered Lists
Existing List Styles should remain independent. Users should be able to apply
one List Style to an entire list, including multiple indentation levels using
Tab and Shift+Tab.
Bulleted Lists
Bulleted lists should remain independent of heading and paragraph numbering.
Ordinary Paragraphs
Normal body paragraphs should remain unnumbered.
7. Suggested User Interface
I suggest adding a section to the paragraph style properties, possibly under
Outline & List, called:
Automatic Paragraph Numbering
Possible settings:
Setting Description
Enable numbering Turns the feature on or off
Numbering source Select Heading 1–10
Prefix Include the selected heading number
Separator Select period, hyphen or another separator
Start at Initial paragraph number
Restart condition New selected heading
Include nested headings Continue numbering through lower heading levels
Number format Configure displayed number format
The feature should be accessible through paragraph styles so that users can
create reusable document templates.
8. Additional Benefits
This enhancement would be particularly useful for:
• Legal documents.
• Legislation and regulations.
• Technical specifications.
• Engineering documentation.
• Policies and procedures.
• Standards and manuals.
• Academic and research publications.
• Large reports.
It would also reduce dependence on macros and manual numbering adjustments.
9. Backward Compatibility
The enhancement should be optional.
Existing documents should continue to behave exactly as they do currently
unless the user explicitly enables the new functionality.
The feature should work with existing paragraph styles, heading styles and List
Styles.
10. Conclusion
LibreOffice Writer already provides the essential components for sophisticated
document numbering.
What is missing is a native connection between the hierarchical heading
numbering system and an independent sequential paragraph numbering system.
I recommend adding this functionality as a future enhancement.
It would provide users with a much more flexible document numbering system
while preserving the existing separation between headings, numbered paragraphs
and ordinary lists.
The proposed feature would make LibreOffice Writer considerably more capable
for users preparing complex, highly structured documents.
--
You are receiving this mail because:
You are the assignee for the bug.