[Tex/LaTex] \includegraphics optional argument not resolved if macro




\newcommand{\scalefactor}{scale = 0.25}

  %Next line does not work
  % The following line works
  %\includegraphics[scale = 0.25]{image}



! Package keyval Error: scale = 0.25 undefined.

I need to scale a number of images by the same factor, hence the command.

  1. How to solve this and more importantly
  2. Why is this only specific to \includegraphics

Best Answer

Try this way:

Related Question