Hi:
I am trying to put some hyperlinks in my document but they point to the caption instead of the figure itself. I read about the hypcap package addressing this problem but it appears to be ignored. If I try to go to the last page then it shows the whole graphic but if the graphic is in the middle of the document,the hyperlink points to the caption. I have attached the graphic used for the example below: Thanks for your help
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
The hypcap package is only addressing hyperlinks made by \label and \ref.
But if you would like to use \hyperlink and \hypertarget instead, why don't you just put the \hypertarget at the beginning of the figure (and not into the caption)?
I did try to put the \hypertarget{} by the beginning of the figure but messes up my graphic and the \begin{landscape} gets ignored. I wouldn't mind using \ref if that fixes my problem but I am going to have to see how is done.
Thanks sommerfee, I wanted to use \hyperlink because it colors the hyperlinked like in this case: Go to \hyperlink{bar}{bar graphic}\\, {bar graphic} is colored.
I think \ref and \autoref do the job and I will be getting familiar with it but from the top of your head do you know how \hyperlink and \hypertarget can be used with \begin{landscape}
It is all good now!!!, I just made it work. For some reason \hipertarget{} didn't like to be before my landscaped page and I went ahead and inserted \newpage right before it and it worked like a charm. Thanks for your time in this matter.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p