Possible Duplicate:
Making TikZ nodes hyperlinkable
something that has been giving me trouble for some time now. I would like to attribute a hyperlink to a shape, that is, not to text but to a whole area. For eg. in the MWE below, I would like the whole of the green circle to react as the mouse is positioned on top of it.
\documentclass{article}
\usepackage{tikz}
\usepackage{hyperref}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}
\node[circle, draw=black, fill=red!20, minimum size=2cm] (c1) {\hyperlink{t1}{long text}};
\node[circle, draw=black, fill=red!20, minimum size=2cm, right= 3cm of c1] (c1) {\hyperlink{t1}{}};
\end{tikzpicture}
\newpage
\begin{tikzpicture}
\node[circle, draw=black, fill=red!20] (t1) {\hypertarget{t1}{target}};
\end{tikzpicture}
\end{document}
Any idea? Thanks
=)– Jake Jun 18 '12 at 21:45