3

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
  • 27,064
  • 61
  • 75
  • 116
poetyi
  • 133
  • 4

1 Answers1

2

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. 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

tohuwawohu
  • 10,303
  • 1
  • 35
  • 63
  • hmm, thank you so much, the solution with macro sounds good, because I have some programming skills. Do you have any example like this in macro? – poetyi Feb 16 '15 at 22:40
  • Sorry, no, i don't have an example. But [Andrew Pitonyaks's page](http://www.pitonyak.org/) is a great starting point regarding OOo macros. – tohuwawohu Feb 17 '15 at 07:10