Discussion:
Greek Text in Xfig
Rich Shepard
2006-09-30 21:50:23 UTC
Permalink
I'm trying to draw a figure in Xfig that will be included in a LyX
document. It's no problem to export the figure as an .eps file and display
it in a floating figure. However, the Greek text does not display properly.

How do I enter, for example \mu, in Xfig so it displays as the letter and
not the LaTeX command?

TIA,

Rich
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc.(TM) | Accelerator
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Rich Shepard
2006-09-30 21:59:06 UTC
Permalink
Post by Rich Shepard
How do I enter, for example \mu, in Xfig so it displays as the letter and
not the LaTeX command?
D'oh! I change the typeface to Symbols(Greek).

Rich
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc.(TM) | Accelerator
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Paul Smith
2006-10-01 09:57:21 UTC
Permalink
Post by Rich Shepard
Post by Rich Shepard
How do I enter, for example \mu, in Xfig so it displays as the letter and
not the LaTeX command?
D'oh! I change the typeface to Symbols(Greek).
You have perhaps a better solution, Rich:

1. insert '$\mu$' in your figure;
2. select 'Special flag' and 'Use LaTeX fonts' for '$\mu$';
3. insert your Xfig picture in your LyX document with Insert -> File
-> External material (Xfig's Template).

There is no need to convert your xfig picture to an eps one, as LyX
knows quite well how to operate the needed conversions by itself
regarding xfig files.

Paul
Rich Shepard
2006-10-01 15:07:14 UTC
Permalink
Post by Paul Smith
1. insert '$\mu$' in your figure;
2. select 'Special flag' and 'Use LaTeX fonts' for '$\mu$';
3. insert your Xfig picture in your LyX document with Insert -> File
-> External material (Xfig's Template).
There is no need to convert your xfig picture to an eps one, as LyX knows
quite well how to operate the needed conversions by itself regarding xfig
files.
Paul,

Thank you. I'll have to see if I can set these as defaults for each image.
And, I'll need to test whether my LyX installation will directly import .fig
files.

But, does it matter if we directly import a .fig or we export the image to
.eps and insert that format?

Rich
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc.(TM) | Accelerator
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Paul Smith
2006-10-01 16:19:58 UTC
Permalink
Post by Rich Shepard
Post by Paul Smith
1. insert '$\mu$' in your figure;
2. select 'Special flag' and 'Use LaTeX fonts' for '$\mu$';
3. insert your Xfig picture in your LyX document with Insert -> File
-> External material (Xfig's Template).
There is no need to convert your xfig picture to an eps one, as LyX knows
quite well how to operate the needed conversions by itself regarding xfig
files.
But, does it matter if we directly import a .fig or we export the image to
.eps and insert that format?
Yes, Rich, it matters if you have text or formulas in your figure. The
enunciated procedure allows you to have the text in your figure
written (in the ps/pdf output) with the same font used by your
document. In particular, it is quite handy when you have formulas in
your figure, as they will render as nice LaTeX wirtten formulas (in
your ps/pdf output), and no need to use psfrag. (Take the attached
xfig file and insert it directly; you will see a nice integral drawn
inside a rectangle.)

Paul
Paul Smith
2006-10-01 16:24:37 UTC
Permalink
Post by Paul Smith
Post by Rich Shepard
Post by Paul Smith
1. insert '$\mu$' in your figure;
2. select 'Special flag' and 'Use LaTeX fonts' for '$\mu$';
3. insert your Xfig picture in your LyX document with Insert -> File
-> External material (Xfig's Template).
There is no need to convert your xfig picture to an eps one, as LyX knows
quite well how to operate the needed conversions by itself regarding xfig
files.
But, does it matter if we directly import a .fig or we export the image to
.eps and insert that format?
Yes, Rich, it matters if you have text or formulas in your figure. The
enunciated procedure allows you to have the text in your figure
written (in the ps/pdf output) with the same font used by your
document. In particular, it is quite handy when you have formulas in
your figure, as they will render as nice LaTeX wirtten formulas (in
your ps/pdf output), and no need to use psfrag. (Take the attached
xfig file and insert it directly; you will see a nice integral drawn
inside a rectangle.)
Forgot the file in my previous post. Sorry about that!

Paul
Helge Hafting
2006-10-03 10:53:11 UTC
Permalink
Post by Rich Shepard
Post by Paul Smith
1. insert '$\mu$' in your figure;
2. select 'Special flag' and 'Use LaTeX fonts' for '$\mu$';
3. insert your Xfig picture in your LyX document with Insert -> File
-> External material (Xfig's Template).
There is no need to convert your xfig picture to an eps one, as LyX knows
quite well how to operate the needed conversions by itself regarding xfig
files.
Paul,
Thank you. I'll have to see if I can set these as defaults for each image.
And, I'll need to test whether my LyX installation will directly import .fig
files.
You need to also have the "fig2dev" conversion program, and a lyx
recent enough to have "external insets". .fig support have been
in lyx for a while though!
Post by Rich Shepard
But, does it matter if we directly import a .fig or we export the image to
.eps and insert that format?
Well, if you change document font then text in the .fig follows,
if you use "latex fonts". That can be nice. Also, if you
change the .fig file, then lyx pick up this automatically. No
need to remember to do the conversion.


Helge Hafting
Rich Shepard
2006-10-03 13:10:59 UTC
Permalink
You need to also have the "fig2dev" conversion program, and a lyx recent
enough to have "external insets". .fig support have been in lyx for a
while though!
Helge,

fig2dev is installed. While lyx has supported .fig for a while, I've used
other vector graphics applications. I've decided to settle in with xfig for
no particular, objective reasons.
Well, if you change document font then text in the .fig follows, if you
use "latex fonts". That can be nice. Also, if you change the .fig file,
then lyx pick up this automatically. No need to remember to do the
conversion.
OK. Thanks.

Rich
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc.(TM) | Accelerator
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Rich Shepard
2006-10-03 13:13:53 UTC
Permalink
You need to also have the "fig2dev" conversion program, and a lyx recent
enough to have "external insets". .fig support have been in lyx for a
while though!
Helge,

FWIW, I just looked in Edit->Preferences->File converters, and fig2dev is
there under Fig->Eps.

I'll practice.

Rich
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc.(TM) | Accelerator
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Loading...