I'm using many pictures within my beamer
presentation. Somehow I'm tired of writing:
\begin{figure}
\includegraphics[width=0.8\textwidth,height=0.8\textheight,keepaspectratio]{source}
\end{figure}
It works fine and does what I want, but I want to write less code :-)) e.g.:
\begin{figure}
\includegraphics[shrink=0.8]{source}
\end{figure}
Yes, I know scale
but it works relative to the image size, but not (what I want) relative to the page size …
Is there a lightweight and genuine way to achieve this?
Best Answer
You could define your own include command, like so:
edit by Claudio Fiandrino
To have the possibility of shrink the image with custom values, one could proceed with a small change to the
\mycommand
:The result: