Is the following possible using the beamer class:
- You have two images
image1.jpgandimage2.jpg - You define two "clickable" areas (a1 and a2) of your frame which you can overlay by an picture or tikzimage to simulate fancy buttons
- If you click on a1
image1.jpgis shown, if you click on a2image2.jpgis shown (i.e. image1 is replaced by image2).
More generally I need this for n areas and n pictures.
Here is an example. It doesn't work, since it is mainly pseudo-code and just want's to illustrate what I want. This example doesn't imply that the solution should be made of tikz or that it should be the same syntax. All what I want is what I described above.
\documentclass{beamer}
\usepackage[draft]{graphicx}
\usepackage{tikz}
\usepackage{boolexpr}
\def\show{1}
\begin{document}
\begin{frame}
\switch
\case{\show == 1}
\includegraphics[width=0.9\linewidth]{test1}
\case{\show == 2}
\includegraphics[width=0.9\linewidth]{test2}
\otherwise
\endswitch
\begin{tikzpicture}
\node[onclick={\show = 1}] at (0,0) {\includegraphics[width=0.5cm]{Button1}};
\node[onclick={\show = 2}] at (0,2) {\includegraphics[width=0.5cm]{Button2}};
\end{tikzpicture}
\end{frame}
\end{document}
mwepackage to use the dummy images A,B,C by using\includegraphics{example-image-a,b,c}which loadsgraphicxpackage automaticaly. – percusse Oct 31 '12 at 10:48