Bug 160203 - Add ability to reference total number of list items
Summary: Add ability to reference total number of list items
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.5.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-14 18:53 UTC by William Friedman
Modified: 2024-04-08 03:14 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description William Friedman 2024-03-14 18:53:56 UTC
Description:
At present, there is no way to insert the total number of elements of a list as a field variable. E.g.:

There are X examples, as per the following list:

1. A
2. B
3. C
4. D.

There is a kludge: Fields | Cross-references | Numbered Paragraphs, and insert a cross-reference to the current final element of the list. For this kludge to work, however, one must always make sure the current final element remains the final element, only ever inserting new elements before it, which forces manual adjustment by cutting and pasting the existing final element into a newly inserted list element.

In order to properly implement this, it would seem that lists, which are currently all lumped under Fields | Cross-references | Type: Numbered Paragraphs, would have to be individually named or numbered in order to be disambiguated so that their individual total number of elements could be displayed.

Steps to Reproduce:
1. Go to Fields | Insert Cross-references | Type: Numbered Paragraphs.


Actual Results:
No option to insert a reference to the total number of numbered paragraphs.

Expected Results:
An option to insert a reference to the total number of numbered paragraphs.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.6.5.2 (X86_64) / LibreOffice Community
Build ID: 38d5f62f85355c192ef5f1dd47c5c0c0c6d6598b
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 1 Dieter 2024-04-07 11:00:02 UTC
William, thank you for your report. Just for clarificatio. Idea is, that you have a list of let's say 8 items (bullets, numbers, ...) and you want to insert a field, that displays numbers of items, correct? And if number of items increases or discreases, filed should be updated, correct?
=> NEEDINFO
Comment 2 William Friedman 2024-04-07 19:50:58 UTC
(In reply to Dieter from comment #1)
> William, thank you for your report. Just for clarificatio. Idea is, that you
> have a list of let's say 8 items (bullets, numbers, ...) and you want to
> insert a field, that displays numbers of items, correct? And if number of
> items increases or discreases, filed should be updated, correct?
> => NEEDINFO

Yes on all counts. But please note that it won't work just to implement a field that counts the total number of instances of list items, since they are currently all lumped together as if they're a single list. Individual lists would have to be identified somehow.