When I produce the handout of a set of slides I want to remove a few (comic) pictures due to copyright reasons. In the handout, I want to get a frame with the same size of the picture with a centered message saying "Picture removed for copyright reasons".
I've come up with the following solution, using the package calc
:
\only<beamer>{\includegraphics[width=<width>]{<filename>}}
\only<handout>{%
\raisebox{\heightof{\includegraphics[width=<width>]{<filename>}}*\real{-0.5}}[0pt][0pt]%
{\begin{minipage}{<width>}\centering Picture removed for copyright reasons\end{minipage}}
\frame{\phantom{\includegraphics[width=<width>]{<filename>}}}%
}
It works, and I will eventually turn it into a command, but I wonder:
- Is there a way to simplify the code?
- It's not clear to me why I have to lower the text instead of rising it. Is the baseline at the top of the included graphics?