4

In LibreOffice Writer I cannot create a cross-reference to an image, it is only possible to create cross-reference to it's caption. By using the created link in PDF the screen jumps to the caption, not to the image.

fixer1234
  • 28,064
pnz1337
  • 143

1 Answers1

3

There are two solutions - depending on your needs:

  1. For single images, you could insert a bookmark above the image, and add a cross-reference pointing to that bookmark. In the resulting PDF, the crossref jumps to the image. Of course, this isn’t viable if there are a lot of pics to cross-ref (you may use a macro for this kind of task).

  2. Instead of cross references, use hyperlinks (Insert → Hyperlink … or Crl+K). While cross references can’t address objects like images directly and need a caption as target, hyperlinks may point to images directly.

  • Pro: No need to put additional bookmarks near your images.
  • Con: You can’t automatically use the target page number or caption as hyperlink text.

To insert a hyperlink to an image: Make sure to select “Document” at the left of the insert Hyperlink dialogue (1), then click the button at the right of the “Target” text field (2). A list of target categories appears, allowing to select the appropriate image:

Insert Hyperlink

When you have created your hyperlink, to reference it, do the following:

  1. Write the hyperlink text you want, e.g. ‘please see the image on hand position’.
  2. Select the part of the text which you want to make a hyperlink, e.g. ‘image on hand position’.
  3. Open the hyperlink panel again; again click “Document” and the target button.
  4. The new hyperlink will have a name beginning with hash (#), followed by the name you gave the image, but in all caps, a pipe (|) and the word figure (also in all caps); this is because the image gets renamed.
  5. Select the chosen hyperlinked image, and your new hyperlink text goes straight to that image, not the caption.
Canned Man
  • 173
  • 1
  • 12
tohuwawohu
  • 11,143