Document Classeshyperref follows \caption not \label

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
jgassens
Posts: 14
Joined: Sat Dec 20, 2008 3:06 am

hyperref follows \caption not \label

Post by jgassens »

I'm using hyperref to make linked PDFs for my Dissertation and when it links from anywhere in the document it puts the caption at the top of the page -- which is a problem because, according to formatting rules, the figure must go on top of the caption, which effectively puts the image out of view. If I put the \caption at the top it will show the whole figure, but it would be far more convenient if it were to just go directly to \label or something else that doesn't show up in the final document.

In short, is there a way to fix my problem so that when a link is clicked in a PDF it doesn't put the image off the page?

Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Re: hyperref follows \caption not \label

Post by sommerfee »

Use the actual version 3.1 of the caption package -or- Use the hypcap package. Both will correct the hyperlinks to figures.
Post Reply