On Wed, Oct 16, 2002 at 04:16:21PM +0200, Lucian Muresan wrote:
> 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
Just look at psfrag.sty.
The answer is:
\let\old@@@psfrag=\@@@psfrag
\def\@@@psfrag#1.#2.#3[#4][#5][#6][#7]#8{%
\old@@@psfrag#1.#2.#3[#4][#5][#6][#7]{\mygraphicstextsize{#8}}}
Or perhaps better:
\let\old@pfg@@place=\pfg@@place
\def\pfg@@place#1#2#3{\old@pfg@@place{#1}{#2}{\mygraphicstextsize{#3}}}