Bug 44931 - EDITING, FILEOPEN: cross-referencing HEADINGS in a sub-document from master-document fails
Summary: EDITING, FILEOPEN: cross-referencing HEADINGS in a sub-document from master-d...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version: 3.5.0 Beta3
Hardware: x86-64 (AMD64) All
: medium major
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-19 02:27 UTC by gui
Modified: 2014-02-09 12:00 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
MASTER and SUB-docs with failing cross-references (24.06 KB, application/x-zip)
2012-01-19 02:27 UTC, gui
Details
Repaired MASTER and SUB-document with functionall cross-references (29.34 KB, application/x-zip)
2012-01-19 02:29 UTC, gui
Details

Description gui 2012-01-19 02:27:24 UTC
Created attachment 55768 [details]
MASTER and SUB-docs with failing cross-references

but only if HEADINGS in the sub-document ARE NOT local cross-referenced from itself...
Or, in other words, if you write a sub-document in wich you make cross-references to some of its headins, you will then cross-reference this headins from a master document in wich you have inserted the sub-doc; the rest of the headings will look OK when you insert the cross-reference, but doing a "Tools/Update/Update All" will convert all cross-references in a "Error: Reference source not found" message.
Here you are a demo of a master and sub document with failing cross-references...
Comment 1 gui 2012-01-19 02:29:53 UTC
Created attachment 55769 [details]
Repaired MASTER and SUB-document with functionall cross-references

To cross-reference the sub-document HEADINGS from the master-document, first you should cross-reference them from the same sub-document
Comment 2 Owen Genat 2014-02-09 11:37:57 UTC
I think this is merely a clearer description of the workaround indicated in comment 1 (although I am not certain). Added for clarity, in any case:

1. In the sub-document, at the required location (or highlighting the required range), Insert > Cross-reference... > Cross-references tab > Type of "Set reference" / "Bookmarks" > enter a meaningful Name > click Insert.

2. In the master document, Insert > Cross-reference... > Cross-references tab > Type of "Insert reference" / "Bookmarks" > select the required mark > click Insert.

It may be that the current problem highlighted by this bug is actually a limitation of ODF. The ODF v1.2 specification is not very clear about how inter-document citations (of headings, bookmarks, or reference mark) are to be treated.
Comment 3 Owen Genat 2014-02-09 12:00:17 UTC
I forgot to mention that the provided examples still fail under:

- Debian 7.3.0 x86_64 using v4.1.4.2 Build ID: 0a0440ccc0227ad9829de5f46be37cfb6edcf72 
- Crunchbang 11 x86_64 using
v4.2.0.4 Build ID: 05dceb5d363845f2cf968344d7adab8dcfb2ba71

OS set to All. The Writer Guide v4.0, Ch. 13, pp. 377-380, does however mention that this type of cross-reference between documents requires a reference mark to be set at the anchor point, so it may even be that this particular case is not a bug.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.