If you use xfig to create your figures and would like to ensure that
the pstex_t file is typeset with the same font as the rest of your
document, then here is a little tip.

xfig exports each figure with a preamble that defines a \SetFigFont
macro:

\begingroup\makeatletter\ifx\SetFigFont\undefined%
\gdef\SetFigFont#1#2#3#4#5{%
  [EMAIL PROTECTED]
  \fontfamily{#3}\fontseries{#4}\fontshape{#5}%
  \selectfont}%
\fi\endgroup%

And uses it, so:
\put(2791,74){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\familydefault}{\
mddefault}{\updefault}$y$}}}}

Personally, I tend to use the default 10pt font size, but rather than
edit all my xfig figures it is sufficient to preempt the definition
of \SetFigFont in the lyx document's preamble.

Here I use:

%% Preempt the definition of \SetFigFont in the
%% xfig-generated pstex_t files by setting it to "do nothing".
\gdef\SetFigFont#1#2#3#4#5{}

But, of course, you could choose to ignore some or all of the
arguments by defining \SetFigFont appropriately.

-- 
Angus

Reply via email to