Hello everyone,
When I put the label in the caption for a figure, if I click on the link to this label (hyperref is used), the PDF viewer will go to the caption itself and, because the caption is under the figure, I have to scroll up to see the figure.
Is there a way to put the label at the top of the figure without moving the caption?
Guillaume
Graphics, Figures & Tables ⇒ hyperref | Let Label point to Top of a Figure
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
hyperref | Let Label point to Top of a Figure
LaTeX.org admin
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
hyperref | Let Label point to Top of a Figure
The caption package supports this. See Sections 6.5 and 6.6 of its manual.
Best regards and welcome to the board
Thorsten
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: hyperref | Let Label point to Top of a Figure
Thank you very much!
@ localghost (nice name^^), in the pdf file you gave me, the links are either red either pink. Did you use the hyperref package to make this? Because my links are 'framed' (not sure of the english word here) in red. Do you know how to change it?
@ localghost (nice name^^), in the pdf file you gave me, the links are either red either pink. Did you use the hyperref package to make this? Because my links are 'framed' (not sure of the english word here) in red. Do you know how to change it?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
hyperref | Let Label point to Top of a Figure
I did not give you a PDF, just a link to the CTAN entry of a package. And you should not turn away from the original topic here. Is your question answered? If so, accept the answer that led you to the solution. If not, inquire to get more details.gcomte10 wrote:[…] in the pdf file you gave me, the links are either red either pink. Did you use the hyperref package to make this? Because my links are 'framed' (not sure of the english word here) in red. Do you know how to change it?
How to generate colored instead of boxed (or framed) links in a PDF is a FAQ and as such can be answered by reading the relevant passages in the hyperref manual.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10