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 the package hyperref, and it works perfectly. But I want that when I click in link generated by the package, the destination of the link, the figure or the equation, stays centralized on the screen, not at the extremes. How could I do this?

share|improve this question

For floats (figures and tables) the hypcap package (same author as hyperref) is useful. It takes care that the hyperlink jumps to the beginning of the float, not the caption of it. However, this doesn't guarantee that the whole float is displayed. Also, this most likely doesn't do anything for equations.

Simply load the hypcap package after hyperref.

In general it would also be possible to generate a hypertarget which displays a certain rectangle, like the whole figure or equation when used as a link target. For this the pdfview option must be set to FitR and the position of two diagonal corners must be known. These could be acquired using the zref-abspos package (again same author as hyperref :-) ).

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.