Bug 158520 - Writer: Index-tagged headings not considered headings cross-reference-wise
Summary: Writer: Index-tagged headings not considered headings cross-reference-wise
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Fields-Cross-Reference
  Show dependency treegraph
 
Reported: 2023-12-04 15:19 UTC by ajlittoz
Modified: 2023-12-21 03:12 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Index entries for TOC not cross-referenceable (20.78 KB, application/vnd.oasis.opendocument.text)
2023-12-04 15:19 UTC, ajlittoz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ajlittoz 2023-12-04 15:19:12 UTC
Created attachment 191229 [details]
Index entries for TOC not cross-referenceable

LO 7.6.3.1
Linux 6.6.3, KDE Plasma desktop (Qt-based) -- Fedora 39

Version: 7.6.3.1 (X86_64)
Build ID: 60(Build:1)
CPU threads: 4; OS: Linux 6.6; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Calc: threaded

TOC can be extended with special index entries where the target table is chosen from a drop-down menu. These entries are assigned an outline level so that they appear and are formatted at the right level.

They behave like headings and can be used for special effect such as run-in headings, even several in the same line. The only difference with paragraph-headings is they can't be numbered with a list style because a list style attaches to a paragraph not a portion of a line.

However, when cross-referencing text, index entries are not listed under the Headings category and cannot therefore be referenced.

Even if they have (presently) no chapter number, why can't they be listed among the headings?
Comment 1 Dieter 2023-12-19 21:24:23 UTC
Ajlittoz, thank you for reporting the bug, but I'm afraid, I don't understand everything.

Index entry is not a heading and so it is not expected to appear as selectable heading in cross-reference tab of the fields dialog.

I understand, that your aim is to insert a field with a cross reference to an index entry. So possible solution would be to add index entry as new type in cross-reference dialog. Does this makes sense to you?

=> NEEDINFO
Comment 2 ajlittoz 2023-12-20 10:38:38 UTC
(In reply to Dieter from comment #1)

> Index entry is not a heading
Granted.
But the TOC dialog allows to create a TOC from various sources: headings, additional styles and index entries.

>and so it is not expected to appear as
> selectable heading in cross-reference tab of the fields dialog.
I expected that when this last option was ticked, index entries would appear in the cross-reference dialog the same as heading items when type Headings is selected.

I was exploring a way to create unnumbered inline/run-in headings, which is not a present feature. The alternate approach is to add hidden headings and visible cross-reference where the run-in should be located. This is tricky, error-prone and not simple.

The "index-heading" looked to me an "elegant" workaround. Indeed, it works quite nicely. You only need to select "Table of Contents" for the destination of the index entry. This completely separate the "traditional" index entries from this TOC usage.

Since the "special" index entries are tagged "Table of Contents" at creation time, they can't be confused with alphabetical entries which will go into the Alphabetical Index. This should be enough to be able to include them in the cross-reference headings list in order to make them cross-referenceable like the other "standard" headings.

> So possible solution would be to add index entry as new type
> in cross-reference dialog. Does this makes sense to you?
This would create more problems, I think. Semantically, cross-references for "normal" index entries *IS* the alphabetical index and it was invented for that purpose.

My request was only about those "special" index entries designated to be part of TOC. The request is related to Run-in/inline headings. If such a feature is ever implemented, my request becomes pointless. Among other points, there is the difficulty to number the index-TOC entries. It can partially be done with a number range prefixed with outline level. But number ranges can't be reset. Therefore, the index entry number can't be reset when switching to another chapter, sub-chapter, … This requires one number range per chapter, sub-chapter, … which is not manageable at all and makes maintenance very difficult when blocks of text are moved because the number range must be changed to match the new context.
Comment 3 QA Administrators 2023-12-21 03:12:37 UTC Comment hidden (obsolete)