Subject=[texhax] Using a variable to scale psfrags&In-Reply-To=20040709032008.57079.qmail@web41902.mail.yahoo.com

Heywood J heywoodj123 at yahoo.com
Tue Jul 13 22:15:01 CEST 2004


hi everyone,

thanks for all the suggestions. pav's suggestion is
indeed correct: the "fp" package does the trick
nicely. for example:

\usepackage[fp]
...
\begin{figure}
  \begin{psfrags}
    \def\myscale{1.5}
    \psfragscanon
    \psfrag{tag1}[][][\myscale]{Label 1}
    ..
    \FPmul\myscale2{\myscale{} * 1.5}
    \psfrag{tag2}[][][\myscale2]{Label 2}
    ...
   
\resizebox{\textwidth}{!}{\includegraphics{foo.eps}}
  \end{psfrags}
\end{figure}

and so on. this way, once the desired sizes of the
labels (relative to one another) are determined, it is
only necessary to change the definition of \myscale to
adjust their sizes relative to the boxes in the figure
itself. of course, changing the first argument to
\resizebox scales the entire figure -- boxes, psfrags,
etc. -- gracefully as before.

(sorry if this seems trivial, or is considered bad TeX
form, but i have several hundred figures and many have
a dozen or more lines of psfrags in them.)

anyway, thanks for your help!

-H



	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 



More information about the texhax mailing list