Bug 152488 - Omit Table of contents entries from User Index
Summary: Omit Table of contents entries from User Index
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: TableofContents-Indexes
  Show dependency treegraph
 
Reported: 2022-12-12 15:43 UTC by rferraro
Modified: 2023-01-29 10:49 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
test document (12.37 KB, application/vnd.oasis.opendocument.text)
2022-12-26 21:49 UTC, Dieter
Details
Sample from my document (122.83 KB, image/jpeg)
2023-01-19 16:40 UTC, rferraro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rferraro 2022-12-12 15:43:59 UTC
Description:
When I create an alphabetical index, it also lists occurrences of that index entry that are in the Table of Contents. I use a concordance file but it occurs with manual index entries too.

For example, I have index entry Moon. So, in the index it shows Moon.... ix, 14, 30, 32, 49 etc. The ix is the page number format I use for Alphabetical Index.

This is undesirable and it means I need to manually edit the Index. I found no way of preventing this from occurring.

Steps to Reproduce:
1. Create a Table of Contents
2. Take one of the words that is also in the Table of Contents as well as in the text, and add it to the Concordance file.
2. Create an alphabetical index and you will see the page number that it is in the TOC will also occur in the index.

Actual Results:
See above

Expected Results:
See above


Reproducible: Always


User Profile Reset: No

Additional Info:
See above
Comment 1 Dieter 2022-12-26 21:49:36 UTC
Created attachment 184360 [details]
test document

I can't confirm it with

Version: 7.5.0.1 (X86_64) / LibreOffice Community
Build ID: 77cd3d7ad4445740a0c6cf977992dafd8ebad8df
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded
Comment 2 rferraro 2023-01-19 16:40:16 UTC
Created attachment 184782 [details]
Sample from my document

Please see attached image. The entries in Roman numerals are from my table of contents. The regular numbers are from instances in the body.
Comment 3 Robert Großkopf 2023-01-20 09:38:10 UTC
Could confirm the buggy behavior.
Took https://bugs.documentfoundation.org/attachment.cgi?id=184360 and added a new entry (again a header) without any problem.
Then created a concordance file.
Set the index to use this file.
Entries of TOC will appear in alphabetical index.
Removed the concordance file but the entries won't be removed.

The bug only appears together with concordance file.

Tested with
Version: 7.5.0.2 (X86_64) / LibreOffice Community
Build ID: c0dd1bc3f1a385d110b88e26ece634da94921f58
CPU threads: 6; OS: Linux 5.3; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded

(OpenSUSE 15.3 64bit rpm Linux)