I have a document with several images from a few different sources. I'd like to indicate different formatting options for each source. I understand I can use graphics groups for this, but I don't know how I can enter complex formatting command for this.
To give an example of a complex command, for a given group, I'd like to have the image width equals the smaller of 75% of the size of the original image, or the line width.
From another question, I got this handy macro, which works well across the whole document:
\makeatletter
\setkeys{Gin}{width=\ifdim 0.75\Gin@nat@width>\linewidth
\linewidth
\else
0.75\Gin@nat@width
\fi}
\makeatother
However, trying to paste that code into the LaTeX Options text box in the graphics settings dialog does not work.
Any pointers?
