xfig tip

2004-04-07 Thread Angus Leeming
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



Re: xfig tip

2004-04-07 Thread Jose' Matos
On Wednesday 07 April 2004 10:44, Angus Leeming wrote:
 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.
[...]

  Could you add this to the wiki, please. :-)
-- 
José Abílio

LyX and docbook, a perfect match. :-)


Re: xfig tip

2004-04-07 Thread Angus Leeming
Jose' Matos wrote:

 On Wednesday 07 April 2004 10:44, Angus Leeming wrote:
 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.
 [...]
 
   Could you add this to the wiki, please. :-)

I'm no wiki-spert. Maybe someone could do it for me?

-- 
Angus



Re: xfig tip

2004-04-07 Thread Reuben Thomas
 I'm no wiki-spert. Maybe someone could do it for me?

The point of wikis is that you don't have to be an expert. There isn't
really much to learn. Try it.

-- 
http://rrt.sc3d.org/
C++, n.  an octopus made by nailing extra legs onto a dog (Anon)


Re: xfig tip

2004-04-07 Thread Angus Leeming
Reuben Thomas wrote:
 I'm no wiki-spert. Maybe someone could do it for me?
 The point of wikis is that you don't have to be an expert. There
 isn't really much to learn. Try it.

Oh, I know how to use it. I'm just busy. And lazy.

-- 
Angus



Re: xfig tip

2004-04-07 Thread Reuben Thomas
 Oh, I know how to use it. I'm just busy. And lazy.

Again, with this wiki as with most, it's as quick to cut-and-paste
whatever you have than to ask someone else to do it. Since it's informal,
you can just dump an email into the wiki if you're particularly busy;
someone with more time (perhaps someone who benefits from the info) can
clean it up later.

-- 
http://rrt.sc3d.org/ | impatience, n.  the urge to do nothing


xfig tip

2004-04-07 Thread Angus Leeming
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



Re: xfig tip

2004-04-07 Thread Jose' Matos
On Wednesday 07 April 2004 10:44, Angus Leeming wrote:
 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.
[...]

  Could you add this to the wiki, please. :-)
-- 
José Abílio

LyX and docbook, a perfect match. :-)


Re: xfig tip

2004-04-07 Thread Angus Leeming
Jose' Matos wrote:

 On Wednesday 07 April 2004 10:44, Angus Leeming wrote:
 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.
 [...]
 
   Could you add this to the wiki, please. :-)

I'm no wiki-spert. Maybe someone could do it for me?

-- 
Angus



Re: xfig tip

2004-04-07 Thread Reuben Thomas
 I'm no wiki-spert. Maybe someone could do it for me?

The point of wikis is that you don't have to be an expert. There isn't
really much to learn. Try it.

-- 
http://rrt.sc3d.org/
C++, n.  an octopus made by nailing extra legs onto a dog (Anon)


Re: xfig tip

2004-04-07 Thread Angus Leeming
Reuben Thomas wrote:
 I'm no wiki-spert. Maybe someone could do it for me?
 The point of wikis is that you don't have to be an expert. There
 isn't really much to learn. Try it.

Oh, I know how to use it. I'm just busy. And lazy.

-- 
Angus



Re: xfig tip

2004-04-07 Thread Reuben Thomas
 Oh, I know how to use it. I'm just busy. And lazy.

Again, with this wiki as with most, it's as quick to cut-and-paste
whatever you have than to ask someone else to do it. Since it's informal,
you can just dump an email into the wiki if you're particularly busy;
someone with more time (perhaps someone who benefits from the info) can
clean it up later.

-- 
http://rrt.sc3d.org/ | impatience, n.  the urge to do nothing


xfig tip

2004-04-07 Thread Angus Leeming
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



Re: xfig tip

2004-04-07 Thread Jose' Matos
On Wednesday 07 April 2004 10:44, Angus Leeming wrote:
> 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.
[...]

  Could you add this to the wiki, please. :-)
-- 
José Abílio

LyX and docbook, a perfect match. :-)


Re: xfig tip

2004-04-07 Thread Angus Leeming
Jose' Matos wrote:

> On Wednesday 07 April 2004 10:44, Angus Leeming wrote:
>> 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.
> [...]
> 
>   Could you add this to the wiki, please. :-)

I'm no wiki-spert. Maybe someone could do it for me?

-- 
Angus



Re: xfig tip

2004-04-07 Thread Reuben Thomas
> I'm no wiki-spert. Maybe someone could do it for me?

The point of wikis is that you don't have to be an expert. There isn't
really much to learn. Try it.

-- 
http://rrt.sc3d.org/
C++, n.  an octopus made by nailing extra legs onto a dog (Anon)


Re: xfig tip

2004-04-07 Thread Angus Leeming
Reuben Thomas wrote:
>> I'm no wiki-spert. Maybe someone could do it for me?
> The point of wikis is that you don't have to be an expert. There
> isn't really much to learn. Try it.

Oh, I know how to use it. I'm just busy. And lazy.

-- 
Angus



Re: xfig tip

2004-04-07 Thread Reuben Thomas
> Oh, I know how to use it. I'm just busy. And lazy.

Again, with this wiki as with most, it's as quick to cut-and-paste
whatever you have than to ask someone else to do it. Since it's informal,
you can just dump an email into the wiki if you're particularly busy;
someone with more time (perhaps someone who benefits from the info) can
clean it up later.

-- 
http://rrt.sc3d.org/ | impatience, n.  the urge to do nothing