- I like to attach the graphic files that I use in a
beamer
presentation to the generated pdf file. - The background is, that I want to enable my colleagues at work to be able to use the graphic files e. g. in PowerPoint (I am the only one using LaTeX at work).
- I can attach the graphic files using the
attachfile
package.
Is there a way to automatize this, so that every
\includegraphics
automatically embeds/attaches the used graphic file?It would be perfect if I still can use the
\includegraphics
command unchanged so that I can use this with already existing presentations.
\documentclass{beamer}
\usepackage{graphicx}
\usepackage{attachfile}
\begin{document}
% For example image, see http://tex.stackexchange.com/questions/231738
\begin{frame}[c]
\frametitle{Frame With Image}
\centering
\includegraphics[width=0.5\textwidth]{example-image.png}
\textattachfile{example-image.png}{}
\end{frame}
\end{document}