Cross-referencing chapters inside a master document

Hi

Referencing another chapter/document can be carried with hyperlinks. For example, if I reference chapter 15 in chapter 3, all I have to do is to create an hyperlink.

However, when chapters are assembled in a master document, the hyperlink still points to the individual chapter and not the linked chapter inside the master document. The issue raises as well when exporting to PDF.

Except for a manual refactor of the links, is there a trick I missed?

Cheers!

Olivier

May be when you “compile” the master document to a single document, the links can point to the correct section ?
Can you test it?

Compile” to a single document:

  1. Export the master document to odt format
  2. Unlink external links

For example you have defined a bookmark ‘part03_bookmark07’ in a sub-document ‘chapter3.odt’. Now you open a sub-document ‘chapter15.odt’. To insert a link to the bookmark you mark the link text and press Ctrl+K.
In that ‘Hyperlink’ dialog you chose ‘Document’ tab in the left column. Then you click on the file-picker icon at the right side of the ‘Path’ field of section ‘Document’. In the file picker dialog open the file ‘chapter3.odt’. Then click on the icon on the right side of field ‘Target’. You should now get a dialog where you can chose the bookmark ‘part03_bookmark07’. Klick ‘Apply’ and ‘CLose’.
Back in the ‘Hyperlink’ dialog, you see that the generated paths contain an absolute part. Now the trick: Go back to the field ‘Path’ and delete its content. Notice that not only this field is now empty, but the shown URL in the section ‘Target in Document’ in relative now as well. Finish the dialog with ‘OK’.
Of cause, the hyperlink will not work while you edit the sub-document. But is will work, when you use the hyperlink in the global document.

Or do you mean something different?

1 Like