Since ogctools isn't working for me with TexLive2013, I try to rebuild its command
\ocgpicture which shows a picture and by clicking on this it is show in full size. By clicking on the big picture it should hide again.
This is now my problem. The active region which reacts on the click is on every
ocg, so that it hides only the last ocg.
\documentclass{beamer}
\usepackage{ocgx}
\usepackage{tikz}
\usetikzlibrary{ocgx}
\usepackage{graphicx}
\newcommand{\ocgpicture}[3][]{
\begin{tikzpicture}[remember picture, overlay]
\begin{scope}[ocg={ref=#3,status=invisible, name=#3}]
\node at (current page)
{\hideocg{#3}{\includegraphics[height=\paperheight]{#2}}};
\end{scope}
\end{tikzpicture}
\showocg{#3}{\includegraphics[#1]{#2}}
}
\begin{document}
\frame{
\ocgpicture[width=2cm]{img1}{img1}
\ocgpicture[width=2cm]{img2}{img2}
\ocgpicture[width=2cm]{img3}{img3}
}
\end{document}
\zoombox{}defined in http://tex.stackexchange.com/a/12293 does exactly what you want. – AlexG Jul 08 '13 at 12:21ocgtoolspackage update resolve this problem for you? – Paul Gessler Mar 02 '14 at 15:34