Graphics, Figures & Tables ⇒ custom hyperref
-
jediwhelan
- Posts: 16
- Joined: Fri Jul 25, 2008 5:54 pm
custom hyperref
I posted this question a couple weeks ago but didn't receive an answer so let me simplify the question:
is it possible to have this custom hyperref point from table titles (i.e., Table 1) to a specific anchor
in the text? Something like going backwards from a hyperref to a table.
any suggestions would be much appreciated.
Thanks
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
custom hyperref
Regarding the problem this might be possible with an additional anchor at the place of reference. For details see the hyperref manual.
[1] View topic: hyperref | Dynamic Float Linking
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
custom hyperref
I guess the other question did not get an answer because there was no miminal working example. A piece of code would be a good start to create a solution. Without code it's quite theoretical.
You could use the commands \hypertarget and \hyperlink of the hyperref package.
Stefan
-
jediwhelan
- Posts: 16
- Joined: Fri Jul 25, 2008 5:54 pm
Re: custom hyperref
My original post did have a minimal working example no? I re-paste it here with the solution you Stephan gave - thanks - I think this is very cool :
\begin{document}
\section{some title}
Blah Blah Blah, see figure \ref{table:intro} , blah blah blah ...
\begin{center}
[Insert figure \ref{table:intro} about here. \hypertarget{table:intro}{}]
\end{center}
..... rest of paper .....
\appendix
\section{Appendix}
\begin{table}[p]
stuff
\caption{ Caption Text ... \hyperlink{table:intro}{Go Back} }
\label{table:intro}
\end{table}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
custom hyperref
The fact that you consider your useless code snippet a true minimal example shows that you neither have read the rules nor followed the links that Stefan and I gave you in our replies.jediwhelan wrote:[…] My original post did have a minimal working example no? I re-paste it here with the solution you Stephan gave - thanks - I think this is very cool […]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
jediwhelan
- Posts: 16
- Joined: Fri Jul 25, 2008 5:54 pm
Re: custom hyperref
Paul
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
custom hyperref
And that's exactly the purpose of a MWE. To reinforce a question and to show clearly what is desired. And first of all a MWE shows how you are things doing. Code snippets are always useless if not provided in a corresponding context. Even if they represent a solution. It is best to provide an example that is compilable out of the box.jediwhelan wrote:I fail to see the point of providing a MWE when I have no unexplained behaviour or error messages. It was simply a question which I provided a code snippet for since it may not have been clear in words what I was trying to achieve. […]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10