# Fields in master documents: referencing a header title from another document [closed]

I am working with several files (eg: file1.odt file2.odt) which are combined in a master document and I would like to add a field to a chapter's title (header) that belongs to another file (eg: I would like to add a field in file1.odt pointing to chapter 3 in file2.odt). I know it is possible to add fields using Insert\Fields\More Fields (CTRL+F2 and then select the desired header from the "Cross Reference" tab (it may be labelled something else, as I am not using an English version), provided I have used headers (which I have done so). Unfortunately the header list only displays the headers within the same document, so I haven't found any way to link to a header belonging to another file.

Is there any way to fix that?

edit retag reopen merge delete

### Closed for the following reason the question is answered, right answer was accepted by Alex Kemp close date 2020-08-12 16:57:05.303530

Sort by » oldest newest most voted

You need to do it in the "old school way". This is the procedure:

1- Open file1.odt and select the paragraph used to mark the "chapter 3", either by painting it with the mouse or by triple clicking on it.

2- Insert → Field → More fields → Cross reference tab. On Type select Set reference, give the reference a Name and press Insert.

3- Let's say the reference name is "Cap3". Now open file2.odt and go to the point where you need the cross reference. Insert → Field → More fields → Cross reference tab, but this time on Type select Insert reference. The list will be empty, but just type "Cap3" on Name and then press Insert.

You'll see an error message on the document (Error: Reference source not found) but don't worry: on the master document everything will be OK.

more