what?
I would like to "store" the definition of \includegraphics into \something so that the following logics will work:
% the following line is what I am looking for
store(\includegraphics, \something)
% and then I want to achieve what follows
\renewcommand\includegraphics}[2][]
{}
\doalotofstuff
\renewcommand\includegraphics}[2][]
{%
get_the_definition_from(\something)
}
% now I can again use \includegraphics with its usual definition
Is it possible and easily achievable?
but why?!
I want to disable the command \includegraphics in some parts on my document and be able to get again the usual \includegraphics after. This question is related to this post (the solution does not work if the \includegraphics command is active.
\let\savedincludegraphics\includegraphicsand then to restore it\let\includegraphics\savedincludegraphics– Dan Mar 20 '14 at 17:52