Warning: This Help page is relevant to LibreOffice up to version 6.0.
For updated Help pages, visit https://help.libreoffice.org.

Cross-references

From LibreOffice Help
Jump to: navigation, search

This is where you insert the references or referenced fields into the current document. References are referenced fields within the same document or within sub-documents of a master document.

The advantage of entering a cross-reference as a field is that you do not have to adjust the references manually every time you change the document. Just update the fields with F9 and the references in the document are updated too.

Choose Insert - Fields - Other - Cross-references tab

Choose Insert - Cross-reference

Inserting Cross-References

Type

Lists the available field types. To add a field to your document, click a field type, click a field in the Selection list, and then click Insert. The following fields are available:

Type Meaning
Set Reference Set target for a referenced field. Under Name, enter a name for the reference. When inserting the reference, the name will then appear as an identification in the list box Selection.

In an HTML document, reference fields entered this way will be ignored. For the target in HTML documents, you have to insert a bookmark.

Insert Reference Inserting a reference to another position in the document. The corresponding text position has to be defined with "Set Reference" first. Otherwise, inserting a reference by choosing a field name under Selection is not possible.

In master documents, you can also reference from one sub-document to another. Note that the reference name will not appear in the selection field and has to be entered "by hand".

In an HTML document, reference fields entered this way will be ignored. For referenced fields in HTML documents, you have to insert a hyperlink.

Headings The Selection box shows a list of all headings in the order of their appearance in the document.
Numbered Paragraphs The Selection box shows a list of all numbered headings and numbered paragraphs in the order of their appearance in the document.
Bookmarks After inserting a bookmark in the document with Insert - Bookmark, the bookmarks entry on the References tab becomes usable. Bookmarks are used to mark certain text passages in a document. In a text document, you can use the bookmarks, for example, to jump from one passage in the document to another.

In an HTML document, these bookmarks become anchors <A name>, which determine the target of hyperlinks for example.

Footnotes If your documents contains a footnote, you can select the Footnotes entry. A reference to a footnote returns the footnote number.
(Inserted objects with captions) You can set references to objects that have captions applied. For example, insert a picture, right-click the picture, choose Caption. Now the object shows up as a numbered "Illustration" in the list.
Tip.png References are fields. To remove a reference, delete the field. If you set a longer text as a reference and you do not want to reenter it after deleting the reference, select the text and copy it to the clipboard. You can then reinsert it as "unformatted text" at the same position using the command Edit - Paste special. The text remains intact while the reference is deleted.

Selection

Lists the available fields for the field type selected in the Type list. To insert a field, click the field, select a format in the "Insert reference to" list, and then click Insert.

Tip.png To quickly insert a field from the list, hold down Ctrl and double-click the field.

In the Insert reference to list, click the format that you want to use.

Insert reference to

Select the format that you want to use for the selected reference field. The following formats are available:

Format Meaning
Page Inserts the number of the page containing the reference target.
Reference Inserts the complete reference target text. For footnotes the footnote number is inserted.
Above/Below Inserts "above" or "below", depending on the location of the reference target relative to the position of the reference field.
As Page Style Inserts the number of the page containing the reference target using the format specified in the page style.
Number Inserts the number of the heading or numbered paragraph, including superior levels depending on the context. See note below this table for more information.
Number (no context) Inserts only the number of the heading or numbered paragraph.
Number (full context) Inserts the number of the heading or numbered paragraph, including all superior levels.
Chapter Inserts the number of the chapter containing the reference target.
Category and Number Inserts the category (caption type) and the number of the reference target. This option is only available when the reference target is an object with a caption.
Caption Text Inserts the caption label of the reference target. This option is only available when the reference target is an object with a caption.
Numbering Inserts the caption number of the reference target. This option is only available when the reference target is an object with a caption.
Note.png The "Number" format inserts the number of the heading or numbered paragraph. The superior levels are included depending on the context, as necessary.
Note.png For example, when you are in a chapter 1, subchapter 2, subpart 5, this may be numbered as 1.2.5. When you insert here a reference to text in the previous subpart "1.2.4" and you apply the "Number" format, then the reference will be shown as "4". If in this example the numbering is set to show more sublevels, the same reference will be shown as "2.4" or "1.2.4", depending on the setting. If you use the "Number (full context)" format, you will always see "1.2.4", no matter how the numbered paragraph is formatted.

Name

Type the name of the user-defined field that you want to create. To set a target, click "Set Reference" in the Type list, type a name in this box, and then click Insert. To reference the new target, click the target name in the Selection list.

In a master document, targets that are in different sub-documents are not displayed in the Selection list. If you want to insert a reference to the target, you must type the path and the name in the Name box.

Value

Enter the contents that you want to add to a user-defined field.

If you select text in the document, and then insert a reference, the selected text becomes the contents of the field that you insert.