Hi,

I'm using psfrag and I'd like change the font size of my replacement 
latex strings. In my preamble, I defined a

\newcommand{\mygraphicstextsize}[1]{%
    \small{#1} % I change this only once here if necessary
}

... and then I thought it would be good to avoid using this new command 
on every invocation of the \psfrag command (and I do not want to use the 
optional *scale* argument of \psfrag either), so I want to renew the 
\psfrag command, because I'm using it really a lot of times in my 
figures. According to the psfrag manual, the comand looks like

\psfrag{tag}[<posn>][<psposn>][<scale>][<rot>]{replacement}

so, how do I deal with the optional arguments in this re-definition, 
'cos I'm really puzzled here? I'm trying something like

\let\SC@SAVpsfrag\psfrag
\renewcommand{\psfrag}[2]{%
%                       ^^
%                       something missing here ???
    \SC@SAVpsfrag{{#1}{\mygraphicstextsize{#2}}}
%                   ^^
%                   something missing here ???
}
... but it's obviously not working like this. I did not find an example 
of redefinition of such a command, yet.

Regards,
Lucian


Reply via email to