In a LaTeX document I have several figures and tables and I need to reference some of them. I tried putting the label in different positions and figured out that it worked when I put the label next to the caption. However, when the hyperlink is clicked it goes to the caption and the next table is in view which might confuse the readers of the document. Furthermore, when I put the label code after the table environment, the number displayed in the pdf is the section number (and subsection if available). How can I make the references point to the actual graphics and have their number?
EDIT: I have solved the problem by using the package "hypcap" and using the command /capstart at the point I want the "hyperref" to anchor.
hypcappackage to your preamble. Keep\labelafter\caption. See href to an image label - how to jump to the image instead of the caption below the image? – Werner Dec 16 '13 at 23:23\labelafter the\captionexactly as @Werner said. Now, whn you wnt to make the crossref inside your document, then you must use the\refcommand. I see that your problem involves also thehyperrefpackage and there is the problem of the jump when you click over the link. That's something different. – Aradnix Dec 17 '13 at 01:04