Is is possible to make clicking on separate parts of an image link to different sections of the document.
for instance specify a region of a image (x, y, width height) and a hyperref.
(I am aware you can make clicking anywhere in an image link to a single section, but this is not what I need)
(I have seen Link subsections of image to different labels (like html image map) and Possibility to ref link different areas of an image to different labels? but couldn't see how to use what they had said)
Thanks
EDIT: What I have tried which handles a single link.
\documentclass{article}
\usepackage{graphicx}
\usepackage{hyperref}
\begin{document}
\begin{figure}
\centering
\hyperref[xxx]{\includegraphics[width=\linewidth]{image.png}}
\end{figure}
\pagebreak
\section{Section 1}
Some Text
\pagebreak
\section{Section 2}
\label{xxx}
Some Text
\end{document}
Best Answer
REVISED APPROACH (
\stackinset
)Here, I just
\stackinset
any number of\hyperref
ed\makebox
es to encompass the desired portion of the base image. The\stackinset
can be specified relative to thel
,c
,r
horizontal anchors and thet
,c
,b
vertical anchors.ORIGINAL APPROACH (
\clipbox
)Here I use
\clipbox
to partition the figure into 4 [unequal-sized] quadrants, though there is, in theory, no reason you can't slice it into any number of rectangles.I don't know how, but I am sure
hyperref
provides the means to make the\hyperref
bounding box invisible.A click in separate corners of the image will take you to different pages in the document.