Bug 145676 - Enhancement: Insert cross-references to Headings in other subdocuments
Summary: Enhancement: Insert cross-references to Headings in other subdocuments
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.2.1 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-11-14 13:35 UTC by Ben.Engbers@Be-Logical.nl
Modified: 2024-03-21 03:19 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 Ben.Engbers@Be-Logical.nl 2021-11-14 13:35:38 UTC
I am working on a document which consists of 1 masterdocument and several subdocuments. It is possible to create a cross-refence to a word in another document by entering that word in the dialog and then inserting the reference.
With references to headings this is not possible.

Is it possible to add creating crossreferences to other documents as a new feature?

Ben
Comment 1 Dieter 2021-11-29 07:35:19 UTC
Ben, thank you for your idea.
It is already possible with Insert -> Hyperlink -> Document (select document and the heading as target in document)

Does this solve your problem?
=> NEEDINFO

BTW: I don't see how it is possible to create a cross-reference to a word in another document.
Comment 2 Ben.Engbers@Be-Logical.nl 2021-11-29 09:28:50 UTC
I didn't know of the the possibility to use Hyperlinks to other document. I'll see if that solves my problem.

Using a cross-reference inside a document is easy. Step 1 is to create the reference. In step 2 you go to the position where the reference is needed and in the dialog, you select the desired reference.
When you need a reference to a word in another document, instead of selecting the desired reference as in step 2 (this can't be done since the word does not show in the list), you can also manually enter that word in the name-field at the bottom of the dialog.
After inserting the reference, you get an error-message (source can not be found), but when you go to the master document an in the navigator (F5) you update all the indexes, the reference is resolved correctly.
Comment 3 QA Administrators 2021-11-30 04:27:33 UTC Comment hidden (obsolete)
Comment 4 Dieter 2021-12-06 16:23:32 UTC
Thank you for your explanation. Icould insert a cross-reference to a word in a sub-document and also to a heading of a sub-document. So I don't know, why you're not able to do so. But you see the headings in navigator?
Comment 5 Ben.Engbers@Be-Logical.nl 2021-12-06 17:17:15 UTC
In the same way as creating a cross-reference to a **word** in a subdocument, I also managed to create a cross-reference to the **words** in the heading but not to the **heading** itself.
How did you create a cross-reference to a heading in a sub-document?
Comment 6 Dieter 2021-12-06 17:21:54 UTC
(In reply to Ben.Engbers@Be-Logical.nl from comment #5)
> How did you create a cross-reference to a heading in a sub-document?

Insert -> Field -> More Fields -> Cross-references -> Type "Headings": All headings of the document are displyed and you can select one.
Comment 7 Ben.Engbers@Be-Logical.nl 2021-12-06 17:26:46 UTC
You can only see or select the headings in the same sub-document and not those in other sub-documents.
Comment 8 Dieter 2021-12-08 11:17:08 UTC
(In reply to Ben.Engbers@Be-Logical.nl from comment #7)
> You can only see or select the headings in the same sub-document and not
> those in other sub-documents.

That's clear. But also references in sub-document A are not visible in sub-document B. 

But if you open master-document and place cursor in text area of that master document (not in a part with sub-document) you can insert a cross-reference to any heading of a sub-document.
Comment 9 Dieter 2023-11-21 09:41:47 UTC
(In reply to Dieter from comment #8)
> (In reply to Ben.Engbers@Be-Logical.nl from comment #7)
> But if you open master-document and place cursor in text area of that master
> document (not in a part with sub-document) you can insert a cross-reference
> to any heading of a sub-document.

Does this solve your problem?

=> NEEDINFO
Comment 10 Ben.Engbers@Be-Logical.nl 2023-11-24 14:08:03 UTC
No,
I agree that in the master document one can insert a cross-reference to any heading (even those in subdocuments). This changes only the master document.
But what I needed was the possibility when working in subdocuments to select a cross-reference to a heading that is used/created in another subdocument.
Comment 11 Ben.Engbers@Be-Logical.nl 2023-11-24 14:10:53 UTC
Sorry, I forgot to change the status to UNCONFIRMED
Comment 12 W Cole 2023-11-26 15:54:08 UTC
Prior versions of Writer allowed one to click on a cross-reference item [Insert Reference] and then be taken to that page in the document.  I use this extensively.  In the 7.6.2.1 version clicking on a cross-referenced item [Insert Reference] only opens the Indexes window, highlighting the cross-referenced entry that was clicked-on.  If I right-click on that highlighted item and select GoTo nothing - that I can see - happens.  I can no longer figure out how to go to the cross-referenced page.  Looks like a bug, but I could well be wrong and should be doing something different.  Advice very welcomed.