TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using pdflatex to generate a document from hundreds of single-page PDF images. (The images are originally in Postscript but I use Ghostscript to convert them to PDF prior to running pdflatex). The Postscript images are actually Matlab/Simulink block diagrams which have a structure and hierarchy..

I'd like to add references/hyperlinks to these block diagrams so the reader can navigate through the document by clicking part of the block diagrams.

I can analyse the postscript images and gather cords for each block. Using Ghostscript I can add hyperlinks to individual PDFs at these cords. What I don't know is how do individual PDF images then get merged in pdflatex to allow the references to be updated. What URI should I use when adding the hyperlink. Should I use a hypertarget (anchor) on the target page?

share|improve this question
As far as I know, PDF included with \includegraphics lose the links. – egreg Feb 8 '13 at 17:37
@egreg: Yes. AFAIK ConTeXt mkIV can keep them. – Martin Schröder Feb 9 '13 at 12:32
Heiko Oberdiek's pax might be able to help. – egreg Feb 9 '13 at 13:16
As I'm calculating the pdfmark annotations anyway, could they be added to the TeX source instead? Kind of like an image map.. – chris Feb 11 '13 at 13:38
up vote 0 down vote accepted

This is not possible using pdflatex.

Switching to dvips and the \includegraphics command honors any pdfmark information contained in the input postscript image.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.