Graphics, Figures & Tablescustom hyperref

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
jediwhelan
Posts: 16
Joined: Fri Jul 25, 2008 5:54 pm

custom hyperref

Post by jediwhelan »

Hi,

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
Last edited by jediwhelan on Mon Jul 25, 2011 11:00 pm, edited 1 time in total.

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
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

custom hyperref

Post by localghost »

You simply could have bumped the old topic [1]. And one of the reasons why didn't get an answer was that you didn't provide a true minimal example. And it's also missing here.

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
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

custom hyperref

Post by Stefan Kottwitz »

Hi Paul,

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
LaTeX.org admin
jediwhelan
Posts: 16
Joined: Fri Jul 25, 2008 5:54 pm

Re: custom hyperref

Post by jediwhelan »

Hi Stefan , Thorsten,

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}
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

custom hyperref

Post by localghost »

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 […]
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
Posts: 16
Joined: Fri Jul 25, 2008 5:54 pm

Re: custom hyperref

Post by jediwhelan »

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. Clearly, the simple answer was the one provided.

Paul
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

custom hyperref

Post by localghost »

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. […]
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.
Post Reply