SOLVED: xfig in LyX > no special flag choosable

2023-01-14 Thread Wolfgang Engelmann




Am 31.08.22 um 10:16 schrieb Wolfgang Engelmann:



Am 30.08.22 um 10:10 schrieb Wolfgang Engelmann:



Am 27.08.22 um 13:59 schrieb Wolfgang Engelmann:

Slightly OT:
Is somebody using xfig in LyX? I can't find in the Text Flags the 
special flag, only


hidden
rigid
tex

Do I miss something besides the xfig program (version 3.2.8)?


Would like to come back to this question.
Apparently the version of Xfig is now using Tex flag TEX in the Tex 
flags instead of special flag.

I selected and set it.

I have included a lyx file with an xfig included.

I had exported from the fig file the three files also included.

I expected after running lyx to get a pdf output with the Delta and 
Psi in Greek. However, there are still $\Delta$ and $\Psi$


my lyx under Debian Bullseye is
Version 2.4.0dev (not released yet)
Built from git commit hash 53ed3dc0
Qt Version (run-time): 5.15.2 on platform xcb
Qt Version (compile-time): 5.15.2
Python detected: python3 -tt

and I use the luatex setting
with
\usepackage{libertinus-otf}
in the preamble

and xfig 3.2.8

Could somebody tell me why I won't get the expected pdf output

Would appreciate it very much!

Wolfgang



I understand, that
no special flag choosable
in Xfig is now replaced by TeX-Flag > TeX

But still no correct pdf output of the Delta and Psi

A further problem:

I can't work on the figure as described in the Customization Help File 
at the end of the 6.1 (How does it work in 6. Including external 
Material). There it says:


In the case of an Xfig figure, you are able to invoke Xfig on the 
original file with a single click from within the external material 
dialog in LyX, and also preview the produced PostScript file with 
Ghostview with another click. No more fiddling around with the command 
line and/or file browsers to locate and manipulate the original or 
produced files. In this way, you are finally able to take full advantage 
of the many different applications that are relevant to use when you 
write your documents, and ultimately be more productive.


I forgot to set in Document settings> Format > Allow running external 
programs, which I did now and enclose therefore again the lyx file.


If some body is able to work on the fig file in lyx (which should be 
possible according to the Customization Help File) and get the pdf 
output showing the TeX insets (Delta, Psi) correctly, I would be glad to 
hear how to achieve this.


Note that I use the luatex setting with
 > \usepackage{libertinus-otf}
in the preamble

Wolfgang



The reason for the above question was, that I needed to add greek 
characters to a .fig file. Perhaps there are others who need it.


The way to do is

Choose T (text input)
Select for Text Font Symbol (Greek)
Try out which one gives you the wanted greek letter,
e.g. W gives Omega

Wolfgang
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: xfig in LyX > no special flag choosable

2022-08-31 Thread Wolfgang Engelmann



Am 30.08.22 um 10:10 schrieb Wolfgang Engelmann:



Am 27.08.22 um 13:59 schrieb Wolfgang Engelmann:

Slightly OT:
Is somebody using xfig in LyX? I can't find in the Text Flags the 
special flag, only


hidden
rigid
tex

Do I miss something besides the xfig program (version 3.2.8)?


Would like to come back to this question.
Apparently the version of Xfig is now using Tex flag TEX in the Tex 
flags instead of special flag.

I selected and set it.

I have included a lyx file with an xfig included.

I had exported from the fig file the three files also included.

I expected after running lyx to get a pdf output with the Delta and Psi 
in Greek. However, there are still $\Delta$ and $\Psi$


my lyx under Debian Bullseye is
Version 2.4.0dev (not released yet)
Built from git commit hash 53ed3dc0
Qt Version (run-time): 5.15.2 on platform xcb
Qt Version (compile-time): 5.15.2
Python detected: python3 -tt

and I use the luatex setting
with
\usepackage{libertinus-otf}
in the preamble

and xfig 3.2.8

Could somebody tell me why I won't get the expected pdf output

Would appreciate it very much!

Wolfgang



I understand, that
no special flag choosable
in Xfig is now replaced by TeX-Flag > TeX

But still no correct pdf output of the Delta and Psi

A further problem:

I can't work on the figure as described in the Customization Help File 
at the end of the 6.1 (How does it work in 6. Including external 
Material). There it says:


In the case of an Xfig figure, you are able to invoke Xfig on the 
original file with a single click from within the external material 
dialog in LyX, and also preview the produced PostScript file with 
Ghostview with another click. No more fiddling around with the command 
line and/or file browsers to locate and manipulate the original or 
produced files. In this way, you are finally able to take full advantage 
of the many different applications that are relevant to use when you 
write your documents, and ultimately be more productive.


I forgot to set in Document settings> Format > Allow running external 
programs, which I did now and enclose therefore again the lyx file.


If some body is able to work on the fig file in lyx (which should be 
possible according to the Customization Help File) and get the pdf 
output showing the TeX insets (Delta, Psi) correctly, I would be glad to 
hear how to achieve this.


Note that I use the luatex setting with
> \usepackage{libertinus-otf}
in the preamble

Wolfgang


Lyx-xfig.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: xfig in LyX > no special flag choosable

2022-08-30 Thread Wolfgang Engelmann



Am 27.08.22 um 13:59 schrieb Wolfgang Engelmann:

Slightly OT:
Is somebody using xfig in LyX? I can't find in the Text Flags the 
special flag, only


hidden
rigid
tex

Do I miss something besides the xfig program (version 3.2.8)?


Would like to come back to this question.
Apparently the version of Xfig is now using Tex flag TEX in the Tex 
flags instead of special flag.

I selected and set it.

I have included a lyx file with an xfig included.

I had exported from the fig file the three files also included.

I expected after running lyx to get a pdf output with the Delta and Psi 
in Greek. However, there are still $\Delta$ and $\Psi$


my lyx under Debian Bullseye is
Version 2.4.0dev (not released yet)
Built from git commit hash 53ed3dc0
Qt Version (run-time): 5.15.2 on platform xcb
Qt Version (compile-time): 5.15.2
Python detected: python3 -tt

and I use the luatex setting
with
\usepackage{libertinus-otf}
in the preamble

and xfig 3.2.8

Could somebody tell me why I won't get the expected pdf output

Would appreciate it very much!

Wolfgang\begin{picture}(0,0)%
\includegraphics{Prytz-Scheme_pspdftex}%
\end{picture}%
\setlength{\unitlength}{4144sp}%
%
\begingroup\makeatletter\ifx\SetFigFont\undefined%
\gdef\SetFigFont#1#2#3#4#5{%
  \reset@font\fontsize{#1}{#2pt}%
  \fontfamily{#3}\fontseries{#4}\fontshape{#5}%
  \selectfont}%
\fi\endgroup%
\begin{picture}(8067,7707)(2341,-6988)
\end{picture}%


Prytz-Scheme_pspdftex.pdf
Description: Adobe PDF document


Lyx-xfig.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


xfig in LyX > no special flag choosable

2022-08-27 Thread Wolfgang Engelmann

Slightly OT:
Is somebody using xfig in LyX? I can't find in the Text Flags the 
special flag, only


hidden
rigid
tex

Do I miss something besides the xfig program (version 3.2.8)?
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


xfig and lyx

2021-12-14 Thread Wolfgang Engelmann via lyx-users
I use xFig 3.2.8 and would like to use it for a diagram to be inserted 
as a graphic in a lyx document. Some blocks in the diagram use greek 
symbols. Has somebody used xFig in such a way that LaTeX takes over the 
text of the diagram? An example figure would be great.

Wolfgang
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: xfig and LyX

2012-10-29 Thread Georg Baum
Wolfgang Engelmann wrote:

 Could you tell me, whether this 'bring together both' is a task for xfig
 or for grafics/external material on the lyx side?


It is a LyX issue. xfig (or any other program) does not know (and should not 
need to know) about the internals of file inclusion of LyX.


Georg



Re: xfig and LyX

2012-10-29 Thread Georg Baum
Wolfgang Engelmann wrote:

 Could you tell me, whether this 'bring together both' is a task for xfig
 or for grafics/external material on the lyx side?


It is a LyX issue. xfig (or any other program) does not know (and should not 
need to know) about the internals of file inclusion of LyX.


Georg



Re: xfig and LyX

2012-10-29 Thread Georg Baum
Wolfgang Engelmann wrote:

> Could you tell me, whether this 'bring together both' is a task for xfig
> or for grafics/external material on the lyx side?


It is a LyX issue. xfig (or any other program) does not know (and should not 
need to know) about the internals of file inclusion of LyX.


Georg



Re: xfig and LyX

2012-10-28 Thread Wolfgang Engelmann
Am Freitag, 26. Oktober 2012, 20:40:30 schrieb Georg Baum:
 Wolfgang Engelmann wrote:
  Am Dienstag, 23. Oktober 2012, 21:23:11 schrieb Georg Baum:
  
  Thanks, Georg,
  
  but I have still not managed to get the greek letter displayed in the
  .fig file in LyX. If you don't mind, I would like to send you a
  minimal lyx file and the fig file privately (together 10kb) for a
  trial. May I?
 
 Sure, I can have a look. But I can't promise that I'll find the problem
 ;-)
 
 
 Georg
Thanks, Georg,

now I got it. 
I am translating Georg's hint for entering .fig files with greek letters in 
Lyx, since other people might have a problem with it too.

You imported the xfig-file as a grafic. But in this case the special mechanism 
for exchanging the text does not work. Instead, a direct .eps/.pdf is 
produced with the same text as in xfig (e.g. $\alpha$)

If you enter the grafic via insertfileexternal material 
and chose in the dialog type xfig, $\alpha$ is given as desired by α.

You are not the first one who was fooled by it by not noticing the small 
difference between these two methods of including grafics. 
Therefore exists since more than 10 years the plan to bring together both, 
but nobody has so far implemented it.

Thanks again, Georg.

Could you tell me, whether this 'bring together both' is a task for xfig or 
for grafics/external material on the lyx side?

Wolfgang


Re: xfig and LyX

2012-10-28 Thread Wolfgang Engelmann
Am Freitag, 26. Oktober 2012, 20:40:30 schrieb Georg Baum:
 Wolfgang Engelmann wrote:
  Am Dienstag, 23. Oktober 2012, 21:23:11 schrieb Georg Baum:
  
  Thanks, Georg,
  
  but I have still not managed to get the greek letter displayed in the
  .fig file in LyX. If you don't mind, I would like to send you a
  minimal lyx file and the fig file privately (together 10kb) for a
  trial. May I?
 
 Sure, I can have a look. But I can't promise that I'll find the problem
 ;-)
 
 
 Georg
Thanks, Georg,

now I got it. 
I am translating Georg's hint for entering .fig files with greek letters in 
Lyx, since other people might have a problem with it too.

You imported the xfig-file as a grafic. But in this case the special mechanism 
for exchanging the text does not work. Instead, a direct .eps/.pdf is 
produced with the same text as in xfig (e.g. $\alpha$)

If you enter the grafic via insertfileexternal material 
and chose in the dialog type xfig, $\alpha$ is given as desired by α.

You are not the first one who was fooled by it by not noticing the small 
difference between these two methods of including grafics. 
Therefore exists since more than 10 years the plan to bring together both, 
but nobody has so far implemented it.

Thanks again, Georg.

Could you tell me, whether this 'bring together both' is a task for xfig or 
for grafics/external material on the lyx side?

Wolfgang


Re: xfig and LyX

2012-10-28 Thread Wolfgang Engelmann
Am Freitag, 26. Oktober 2012, 20:40:30 schrieb Georg Baum:
> Wolfgang Engelmann wrote:
> > Am Dienstag, 23. Oktober 2012, 21:23:11 schrieb Georg Baum:
> > 
> > Thanks, Georg,
> > 
> > but I have still not managed to get the greek letter displayed in the
> > .fig file in LyX. If you don't mind, I would like to send you a
> > minimal lyx file and the fig file privately (together 10kb) for a
> > trial. May I?
> 
> Sure, I can have a look. But I can't promise that I'll find the problem
> ;-)
> 
> 
> Georg
Thanks, Georg,

now I got it. 
I am translating Georg's hint for entering .fig files with greek letters in 
Lyx, since other people might have a problem with it too.

You imported the xfig-file as a grafic. But in this case the special mechanism 
for exchanging the text does not work. Instead, a direct .eps/.pdf is 
produced with the same text as in xfig (e.g. $\alpha$)

If you enter the grafic via insert>file>external material 
and chose in the dialog type xfig, $\alpha$ is given as desired by α.

You are not the first one who was fooled by it by not noticing the small 
difference between these two methods of including grafics. 
Therefore exists since more than 10 years the plan to bring together both, 
but nobody has so far implemented it.

Thanks again, Georg.

Could you tell me, whether this 'bring together both' is a task for xfig or 
for grafics/external material on the lyx side?

Wolfgang


Re: xfig and LyX

2012-10-26 Thread Georg Baum
Wolfgang Engelmann wrote:

 Am Dienstag, 23. Oktober 2012, 21:23:11 schrieb Georg Baum:
 
 Thanks, Georg,
 
 but I have still not managed to get the greek letter displayed in the .fig
 file in LyX. If you don't mind, I would like to send you a minimal lyx
 file and the fig file privately (together 10kb) for a trial. May I?

Sure, I can have a look. But I can't promise that I'll find the problem ;-)


Georg



Re: xfig and LyX

2012-10-26 Thread Georg Baum
Wolfgang Engelmann wrote:

 Am Dienstag, 23. Oktober 2012, 21:23:11 schrieb Georg Baum:
 
 Thanks, Georg,
 
 but I have still not managed to get the greek letter displayed in the .fig
 file in LyX. If you don't mind, I would like to send you a minimal lyx
 file and the fig file privately (together 10kb) for a trial. May I?

Sure, I can have a look. But I can't promise that I'll find the problem ;-)


Georg



Re: xfig and LyX

2012-10-26 Thread Georg Baum
Wolfgang Engelmann wrote:

> Am Dienstag, 23. Oktober 2012, 21:23:11 schrieb Georg Baum:
> 
> Thanks, Georg,
> 
> but I have still not managed to get the greek letter displayed in the .fig
> file in LyX. If you don't mind, I would like to send you a minimal lyx
> file and the fig file privately (together 10kb) for a trial. May I?

Sure, I can have a look. But I can't promise that I'll find the problem ;-)


Georg



Re: xfig and LyX

2012-10-24 Thread Wolfgang Engelmann
Am Dienstag, 23. Oktober 2012, 21:23:11 schrieb Georg Baum:

Thanks, Georg,

but I have still not managed to get the greek letter displayed in the .fig 
file in LyX. If you don't mind, I would like to send you a minimal lyx file 
and the fig file privately (together 10kb) for a trial. May I?

Wolfgang


Re: xfig and LyX

2012-10-24 Thread Wolfgang Engelmann
Am Dienstag, 23. Oktober 2012, 21:23:11 schrieb Georg Baum:

Thanks, Georg,

but I have still not managed to get the greek letter displayed in the .fig 
file in LyX. If you don't mind, I would like to send you a minimal lyx file 
and the fig file privately (together 10kb) for a trial. May I?

Wolfgang


Re: xfig and LyX

2012-10-24 Thread Wolfgang Engelmann
Am Dienstag, 23. Oktober 2012, 21:23:11 schrieb Georg Baum:

Thanks, Georg,

but I have still not managed to get the greek letter displayed in the .fig 
file in LyX. If you don't mind, I would like to send you a minimal lyx file 
and the fig file privately (together 10kb) for a trial. May I?

Wolfgang


xfig and LyX

2012-10-23 Thread Wolfgang Engelmann

I had posted this before but had no response so far. Could somebody who
successfully uses greek symbols in xfig and includes the
fig file in LyX give me a hint?

Original text:
I try to insert greek in a xfig file under Lyx
using this (Oct2006 Helge Hafting/Rich Shepard):

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 I can't get it work.
I am using Lyx 2.1.0
and I have transfig installed which contains fig2dev

What I did:
In xfig (3.2.5b):
Text flags  special flag special set
Text-font  use Postscript Fonts  use Latex font 
jumps back to Fonts Menu
#not sure what to select here

in the fig graphic I have a text with $\alpha$

In Lyx under
- toolspreferencesfile handling
converter definitions FIGEPS
-converter fig2dev -L eps $$i $$o
extra flag is empty and save apply is greyed out
#not sure whether this is correct

The fonts in Lyx I have selected are
Roman -Palatino
SanSerif Helvetia
Typewriter ComputerModern

I have reconfigured Lyx

I insert the .fig file with
- File
- External material (Xfig's Template)
and see the graphic with  $\alpha$

But the pdf file does not show the greek alpha, but still $\alpha$.

I am not sure what I do wrong. Is it on the xfig side or the lyx side?

Could somebody who successfully uses greek symbols in xfig and includes the
fig file in LyX give me a hint?

Thanks a lot

Wolfgang


xfig and LyX

2012-10-23 Thread Wolfgang Engelmann
I had posted this before but had no response so far. Could somebody who 
successfully uses greek symbols in xfig and includes the 
fig file in LyX give me a hint?

Original text:
I try to insert greek in a xfig file under Lyx
using this (Oct2006 Helge Hafting/Rich Shepard):

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 I can't get it work.
I am using Lyx 2.1.0
and I have transfig installed which contains fig2dev

What I did:
In xfig (3.2.5b):
Text flags  special flag special set
Text-font  use Postscript Fonts  use Latex font  
jumps back to Fonts Menu
#not sure what to select here

in the fig graphic I have a text with $\alpha$

In Lyx under 
- toolspreferencesfile handling
converter definitions FIGEPS 
-converter fig2dev -L eps $$i $$o
extra flag is empty and save apply is greyed out
#not sure whether this is correct

The fonts in Lyx I have selected are
Roman -Palatino
SanSerif Helvetia
Typewriter ComputerModern

I have reconfigured Lyx

I insert the .fig file with
- File
- External material (Xfig's Template)
and see the graphic with  $\alpha$

But the pdf file does not show the greek alpha, but still $\alpha$.

I am not sure what I do wrong. Is it on the xfig side or the lyx side?

Could somebody who successfully uses greek symbols in xfig and includes the 
fig file in LyX give me a hint?

Thanks a lot

Wolfgang


Re: xfig and LyX

2012-10-23 Thread Georg Baum
Wolfgang Engelmann wrote:

 But I can't get it work.
 I am using Lyx 2.1.0
 and I have transfig installed which contains fig2dev
 
 What I did:
 In xfig (3.2.5b):
 Text flags  special flag special set
 Text-font  use Postscript Fonts  use Latex font 
 jumps back to Fonts Menu
 #not sure what to select here

You need to do this before entering the text. Then it works for me. I don't 
know how to change these settings for existing text. It looks like they are 
some global settings that only influence newly created text.

 in the fig graphic I have a text with $\alpha$
 
 In Lyx under
 - toolspreferencesfile handling
 converter definitions FIGEPS
 -converter fig2dev -L eps $$i $$o
 extra flag is empty and save apply is greyed out
 #not sure whether this is correct

You should not define anything related to xfig yourself here. If this 
converter is defined in your preferences file, please delete it from there. 
If it is in the syntax.default file (which is created by reconfigure) then 
it is fine.

 The fonts in Lyx I have selected are
 Roman -Palatino
 SanSerif Helvetia
 Typewriter ComputerModern

These should not matter.

 I have reconfigured Lyx
 
 I insert the .fig file with
 - File
 - External material (Xfig's Template)
 and see the graphic with  $\alpha$
 
 But the pdf file does not show the greek alpha, but still $\alpha$.
 
 I am not sure what I do wrong. Is it on the xfig side or the lyx side?

Probably xfig.


Georg



xfig and LyX

2012-10-23 Thread Wolfgang Engelmann

I had posted this before but had no response so far. Could somebody who
successfully uses greek symbols in xfig and includes the
fig file in LyX give me a hint?

Original text:
I try to insert greek in a xfig file under Lyx
using this (Oct2006 Helge Hafting/Rich Shepard):

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 I can't get it work.
I am using Lyx 2.1.0
and I have transfig installed which contains fig2dev

What I did:
In xfig (3.2.5b):
Text flags  special flag special set
Text-font  use Postscript Fonts  use Latex font 
jumps back to Fonts Menu
#not sure what to select here

in the fig graphic I have a text with $\alpha$

In Lyx under
- toolspreferencesfile handling
converter definitions FIGEPS
-converter fig2dev -L eps $$i $$o
extra flag is empty and save apply is greyed out
#not sure whether this is correct

The fonts in Lyx I have selected are
Roman -Palatino
SanSerif Helvetia
Typewriter ComputerModern

I have reconfigured Lyx

I insert the .fig file with
- File
- External material (Xfig's Template)
and see the graphic with  $\alpha$

But the pdf file does not show the greek alpha, but still $\alpha$.

I am not sure what I do wrong. Is it on the xfig side or the lyx side?

Could somebody who successfully uses greek symbols in xfig and includes the
fig file in LyX give me a hint?

Thanks a lot

Wolfgang


xfig and LyX

2012-10-23 Thread Wolfgang Engelmann
I had posted this before but had no response so far. Could somebody who 
successfully uses greek symbols in xfig and includes the 
fig file in LyX give me a hint?

Original text:
I try to insert greek in a xfig file under Lyx
using this (Oct2006 Helge Hafting/Rich Shepard):

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 I can't get it work.
I am using Lyx 2.1.0
and I have transfig installed which contains fig2dev

What I did:
In xfig (3.2.5b):
Text flags  special flag special set
Text-font  use Postscript Fonts  use Latex font  
jumps back to Fonts Menu
#not sure what to select here

in the fig graphic I have a text with $\alpha$

In Lyx under 
- toolspreferencesfile handling
converter definitions FIGEPS 
-converter fig2dev -L eps $$i $$o
extra flag is empty and save apply is greyed out
#not sure whether this is correct

The fonts in Lyx I have selected are
Roman -Palatino
SanSerif Helvetia
Typewriter ComputerModern

I have reconfigured Lyx

I insert the .fig file with
- File
- External material (Xfig's Template)
and see the graphic with  $\alpha$

But the pdf file does not show the greek alpha, but still $\alpha$.

I am not sure what I do wrong. Is it on the xfig side or the lyx side?

Could somebody who successfully uses greek symbols in xfig and includes the 
fig file in LyX give me a hint?

Thanks a lot

Wolfgang


Re: xfig and LyX

2012-10-23 Thread Georg Baum
Wolfgang Engelmann wrote:

 But I can't get it work.
 I am using Lyx 2.1.0
 and I have transfig installed which contains fig2dev
 
 What I did:
 In xfig (3.2.5b):
 Text flags  special flag special set
 Text-font  use Postscript Fonts  use Latex font 
 jumps back to Fonts Menu
 #not sure what to select here

You need to do this before entering the text. Then it works for me. I don't 
know how to change these settings for existing text. It looks like they are 
some global settings that only influence newly created text.

 in the fig graphic I have a text with $\alpha$
 
 In Lyx under
 - toolspreferencesfile handling
 converter definitions FIGEPS
 -converter fig2dev -L eps $$i $$o
 extra flag is empty and save apply is greyed out
 #not sure whether this is correct

You should not define anything related to xfig yourself here. If this 
converter is defined in your preferences file, please delete it from there. 
If it is in the syntax.default file (which is created by reconfigure) then 
it is fine.

 The fonts in Lyx I have selected are
 Roman -Palatino
 SanSerif Helvetia
 Typewriter ComputerModern

These should not matter.

 I have reconfigured Lyx
 
 I insert the .fig file with
 - File
 - External material (Xfig's Template)
 and see the graphic with  $\alpha$
 
 But the pdf file does not show the greek alpha, but still $\alpha$.
 
 I am not sure what I do wrong. Is it on the xfig side or the lyx side?

Probably xfig.


Georg



xfig and LyX

2012-10-23 Thread Wolfgang Engelmann

I had posted this before but had no response so far. Could somebody who
successfully uses greek symbols in xfig and includes the
fig file in LyX give me a hint?

Original text:
I try to insert greek in a xfig file under Lyx
using this (Oct2006 Helge Hafting/Rich Shepard):

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 I can't get it work.
I am using Lyx 2.1.0
and I have transfig installed which contains fig2dev

What I did:
In xfig (3.2.5b):
Text flags > special flag >special >set
Text-font > use Postscript Fonts > use Latex font >
jumps back to Fonts Menu
#not sure what to select here

in the fig graphic I have a text with $\alpha$

In Lyx under
- >tools>preferences>file handling
converter definitions FIG>EPS
->converter fig2dev -L eps $$i $$o
extra flag is empty and save apply is greyed out
#not sure whether this is correct

The fonts in Lyx I have selected are
Roman -Palatino
SanSerif Helvetia
Typewriter ComputerModern

I have reconfigured Lyx

I insert the .fig file with
-> File
-> External material (Xfig's Template)
and see the graphic with  $\alpha$

But the pdf file does not show the greek alpha, but still $\alpha$.

I am not sure what I do wrong. Is it on the xfig side or the lyx side?

Could somebody who successfully uses greek symbols in xfig and includes the
fig file in LyX give me a hint?

Thanks a lot

Wolfgang


xfig and LyX

2012-10-23 Thread Wolfgang Engelmann
I had posted this before but had no response so far. Could somebody who 
successfully uses greek symbols in xfig and includes the 
fig file in LyX give me a hint?

Original text:
I try to insert greek in a xfig file under Lyx
using this (Oct2006 Helge Hafting/Rich Shepard):

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 I can't get it work.
I am using Lyx 2.1.0
and I have transfig installed which contains fig2dev

What I did:
In xfig (3.2.5b):
Text flags > special flag >special >set
Text-font > use Postscript Fonts > use Latex font > 
jumps back to Fonts Menu
#not sure what to select here

in the fig graphic I have a text with $\alpha$

In Lyx under 
- >tools>preferences>file handling
converter definitions FIG>EPS 
->converter fig2dev -L eps $$i $$o
extra flag is empty and save apply is greyed out
#not sure whether this is correct

The fonts in Lyx I have selected are
Roman -Palatino
SanSerif Helvetia
Typewriter ComputerModern

I have reconfigured Lyx

I insert the .fig file with
-> File
-> External material (Xfig's Template)
and see the graphic with  $\alpha$

But the pdf file does not show the greek alpha, but still $\alpha$.

I am not sure what I do wrong. Is it on the xfig side or the lyx side?

Could somebody who successfully uses greek symbols in xfig and includes the 
fig file in LyX give me a hint?

Thanks a lot

Wolfgang


Re: xfig and LyX

2012-10-23 Thread Georg Baum
Wolfgang Engelmann wrote:

> But I can't get it work.
> I am using Lyx 2.1.0
> and I have transfig installed which contains fig2dev
> 
> What I did:
> In xfig (3.2.5b):
> Text flags > special flag >special >set
> Text-font > use Postscript Fonts > use Latex font >
> jumps back to Fonts Menu
> #not sure what to select here

You need to do this before entering the text. Then it works for me. I don't 
know how to change these settings for existing text. It looks like they are 
some global settings that only influence newly created text.

> in the fig graphic I have a text with $\alpha$
> 
> In Lyx under
> - >tools>preferences>file handling
> converter definitions FIG>EPS
> ->converter fig2dev -L eps $$i $$o
> extra flag is empty and save apply is greyed out
> #not sure whether this is correct

You should not define anything related to xfig yourself here. If this 
converter is defined in your preferences file, please delete it from there. 
If it is in the syntax.default file (which is created by reconfigure) then 
it is fine.

> The fonts in Lyx I have selected are
> Roman -Palatino
> SanSerif Helvetia
> Typewriter ComputerModern

These should not matter.

> I have reconfigured Lyx
> 
> I insert the .fig file with
> -> File
> -> External material (Xfig's Template)
> and see the graphic with  $\alpha$
> 
> But the pdf file does not show the greek alpha, but still $\alpha$.
> 
> I am not sure what I do wrong. Is it on the xfig side or the lyx side?

Probably xfig.


Georg



xfig and LyX

2012-10-13 Thread Wolfgang Engelmann
I try to insert greek in a xfig file under Lyx
using this (Oct2006 Helge Hafting/Rich Shepard):

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 I can't get it work.
I am using Lyx 2.1.0
and I have transfig installed which contains fig2dev

What I did:
In xfig (3.2.5b):
Text flags  special flag special set
Text-font  use Postscript Fonts  use Latex font  
jumps back to Fonts Menu
#not sure what to select here

in the fig graphic I have a text with $\alpha$

In Lyx under 
- toolspreferencesfile handling
converter definitions FIGEPS 
-converter fig2dev -L eps $$i $$o
extra flag is empty and save apply is greyed out
#not sure whether this is correct

The fonts in Lyx I have selected are
Roman -Palatino
SanSerif Helvetia
Typewriter ComputerModern

I have reconfigured Lyx

I insert the .fig file with
- File
- External material (Xfig's Template)
and see the graphic with  $\alpha$

But the pdf file does not show the greek alpha, but still $\alpha$.

I am not sure what I do wrong. Is it on the xfig side or the lyx side?

Could somebody who successfully uses greek symbols in xfig and includes the 
fig file in LyX give me a hint?

Thanks a lot

Wolfgang


xfig and LyX

2012-10-13 Thread Wolfgang Engelmann
I try to insert greek in a xfig file under Lyx
using this (Oct2006 Helge Hafting/Rich Shepard):

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 I can't get it work.
I am using Lyx 2.1.0
and I have transfig installed which contains fig2dev

What I did:
In xfig (3.2.5b):
Text flags  special flag special set
Text-font  use Postscript Fonts  use Latex font  
jumps back to Fonts Menu
#not sure what to select here

in the fig graphic I have a text with $\alpha$

In Lyx under 
- toolspreferencesfile handling
converter definitions FIGEPS 
-converter fig2dev -L eps $$i $$o
extra flag is empty and save apply is greyed out
#not sure whether this is correct

The fonts in Lyx I have selected are
Roman -Palatino
SanSerif Helvetia
Typewriter ComputerModern

I have reconfigured Lyx

I insert the .fig file with
- File
- External material (Xfig's Template)
and see the graphic with  $\alpha$

But the pdf file does not show the greek alpha, but still $\alpha$.

I am not sure what I do wrong. Is it on the xfig side or the lyx side?

Could somebody who successfully uses greek symbols in xfig and includes the 
fig file in LyX give me a hint?

Thanks a lot

Wolfgang


xfig and LyX

2012-10-13 Thread Wolfgang Engelmann
I try to insert greek in a xfig file under Lyx
using this (Oct2006 Helge Hafting/Rich Shepard):

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 I can't get it work.
I am using Lyx 2.1.0
and I have transfig installed which contains fig2dev

What I did:
In xfig (3.2.5b):
Text flags > special flag >special >set
Text-font > use Postscript Fonts > use Latex font > 
jumps back to Fonts Menu
#not sure what to select here

in the fig graphic I have a text with $\alpha$

In Lyx under 
- >tools>preferences>file handling
converter definitions FIG>EPS 
->converter fig2dev -L eps $$i $$o
extra flag is empty and save apply is greyed out
#not sure whether this is correct

The fonts in Lyx I have selected are
Roman -Palatino
SanSerif Helvetia
Typewriter ComputerModern

I have reconfigured Lyx

I insert the .fig file with
-> File
-> External material (Xfig's Template)
and see the graphic with  $\alpha$

But the pdf file does not show the greek alpha, but still $\alpha$.

I am not sure what I do wrong. Is it on the xfig side or the lyx side?

Could somebody who successfully uses greek symbols in xfig and includes the 
fig file in LyX give me a hint?

Thanks a lot

Wolfgang


XFig and LyX (Was: Re: Is PDF the best graphic format for LyX?)

2009-05-25 Thread curtis osterhoudt
Dear all, 

   I have just (within the last week or so, using the 2.0.0 svn development 
code, which I've kept up with and compiled) started having problems using XFig 
figures within LyX. 

Previously (and the mechanism is still there), to insert an XFig figure, I'd 
use the external material insert, and choose the xfig type. Currently, if I 
do that, the preview will no longer show up in LyX, and upon trying to compile 
the document, a message complaining of a missing figure will show up, with a 
mangled path to the file. *However*, quite by accident, I found that inserting 
the XFig file as a regular graphic (such as a .jpeg or .pdf) now seems to work. 

Is this going to be a long-term change to the code? It'll certainly make things 
more consistent to my mind, so long as the documentation is fixed, too.

  --C.O.
 

 /
Down with categorical imperative!
flutz...@yahoo.com
/





From: Helge Hafting helge.haft...@hist.no
To: Steve Litt sl...@troubleshooters.com
Cc: lyx-users@lists.lyx.org
Sent: Monday, May 25, 2009 4:36:08 AM
Subject: Re: Is PDF the best graphic format for LyX?

Steve Litt wrote:
 Hi all,
 
 Is it my imagination, or do things go MUCH better when graphics included in a 
 LyX diagram are PDFs? That's what I've found. I've found them infinitely and 
 continuously scalable, and if I create the PDF with embed fonts, I think 
 they work anywhere.
 
 I'm so old I remember the days when LyX seemed to work reliably only with 
 .eps. THen it could work with .png/.jpg/.gif. But nowadays my personal 
 experience is that PDF images inside the doc work much better than any of 
 those other formats ever did. Is this a placebo effect, or do PDFs really 
 work much, much better as LyX doc graphics?

Any supported vector format ought to look fine, or there is a bug. There should 
be no difference between pdf and eps images. PDF might compile faster with 
pdflatex though.

The problem with bitmaps is that screens have different resolutions, and even a 
cheap printer has much much higher resolution than an expensive big screen. And 
good printers have much better resolution than that.

So, a jpeg that looks good printed on a photosetter or something will have to 
be one huge file, maybe a full-resolution image from a good camera. But such a 
big file will render slowly on a computer, and it will not be necessary to look 
good on a screen.

Helge Hafting



  

XFig and LyX (Was: Re: Is PDF the best graphic format for LyX?)

2009-05-25 Thread curtis osterhoudt
Dear all, 

   I have just (within the last week or so, using the 2.0.0 svn development 
code, which I've kept up with and compiled) started having problems using XFig 
figures within LyX. 

Previously (and the mechanism is still there), to insert an XFig figure, I'd 
use the external material insert, and choose the xfig type. Currently, if I 
do that, the preview will no longer show up in LyX, and upon trying to compile 
the document, a message complaining of a missing figure will show up, with a 
mangled path to the file. *However*, quite by accident, I found that inserting 
the XFig file as a regular graphic (such as a .jpeg or .pdf) now seems to work. 

Is this going to be a long-term change to the code? It'll certainly make things 
more consistent to my mind, so long as the documentation is fixed, too.

  --C.O.
 

 /
Down with categorical imperative!
flutz...@yahoo.com
/





From: Helge Hafting helge.haft...@hist.no
To: Steve Litt sl...@troubleshooters.com
Cc: lyx-users@lists.lyx.org
Sent: Monday, May 25, 2009 4:36:08 AM
Subject: Re: Is PDF the best graphic format for LyX?

Steve Litt wrote:
 Hi all,
 
 Is it my imagination, or do things go MUCH better when graphics included in a 
 LyX diagram are PDFs? That's what I've found. I've found them infinitely and 
 continuously scalable, and if I create the PDF with embed fonts, I think 
 they work anywhere.
 
 I'm so old I remember the days when LyX seemed to work reliably only with 
 .eps. THen it could work with .png/.jpg/.gif. But nowadays my personal 
 experience is that PDF images inside the doc work much better than any of 
 those other formats ever did. Is this a placebo effect, or do PDFs really 
 work much, much better as LyX doc graphics?

Any supported vector format ought to look fine, or there is a bug. There should 
be no difference between pdf and eps images. PDF might compile faster with 
pdflatex though.

The problem with bitmaps is that screens have different resolutions, and even a 
cheap printer has much much higher resolution than an expensive big screen. And 
good printers have much better resolution than that.

So, a jpeg that looks good printed on a photosetter or something will have to 
be one huge file, maybe a full-resolution image from a good camera. But such a 
big file will render slowly on a computer, and it will not be necessary to look 
good on a screen.

Helge Hafting



  

XFig and LyX (Was: Re: Is PDF the best graphic format for LyX?)

2009-05-25 Thread curtis osterhoudt
Dear all, 

   I have just (within the last week or so, using the 2.0.0 svn development 
code, which I've kept up with and compiled) started having problems using XFig 
figures within LyX. 

Previously (and the mechanism is still there), to insert an XFig figure, I'd 
use the "external material" insert, and choose the "xfig" type. Currently, if I 
do that, the preview will no longer show up in LyX, and upon trying to compile 
the document, a message complaining of a missing figure will show up, with a 
mangled path to the file. *However*, quite by accident, I found that inserting 
the XFig file as a regular graphic (such as a .jpeg or .pdf) now seems to work. 

Is this going to be a long-term change to the code? It'll certainly make things 
more consistent to my mind, so long as the documentation is fixed, too.

  --C.O.
 

 /
Down with categorical imperative!
flutz...@yahoo.com
/





From: Helge Hafting <helge.haft...@hist.no>
To: Steve Litt <sl...@troubleshooters.com>
Cc: lyx-users@lists.lyx.org
Sent: Monday, May 25, 2009 4:36:08 AM
Subject: Re: Is PDF the best graphic format for LyX?

Steve Litt wrote:
> Hi all,
> 
> Is it my imagination, or do things go MUCH better when graphics included in a 
> LyX diagram are PDFs? That's what I've found. I've found them infinitely and 
> continuously scalable, and if I create the PDF with "embed fonts", I think 
> they work anywhere.
> 
> I'm so old I remember the days when LyX seemed to work reliably only with 
> .eps. THen it could work with .png/.jpg/.gif. But nowadays my personal 
> experience is that PDF images inside the doc work much better than any of 
> those other formats ever did. Is this a placebo effect, or do PDFs really 
> work much, much better as LyX doc graphics?

Any supported vector format ought to look fine, or there is a bug. There should 
be no difference between pdf and eps images. PDF might compile faster with 
pdflatex though.

The problem with bitmaps is that screens have different resolutions, and even a 
cheap printer has much much higher resolution than an expensive big screen. And 
good printers have much better resolution than that.

So, a jpeg that looks good printed on a photosetter or something will have to 
be one huge file, maybe a full-resolution image from a good camera. But such a 
big file will render slowly on a computer, and it will not be necessary to look 
good on a screen.

Helge Hafting



  

Re: Xfig and LyX

2008-07-11 Thread Allen L. Barker


 I have often used fig2ps (from sourceforge) to transform .fig files
 to .eps and then include the resulting eps file in LyX. (I don't
 remember what started me doing this; there was a problem of
 complexity in my figure a few years ago and this provided the
 solution.)

 It is possible to force specialtext from hte fig2ps command line.

I checked out fig2ps and it is a neat program.

I have been playing around with the converters in LyX,
but I still am not completely clear on all the details
of how they are operating.

It seems like you could define a converter to use
the fig2ps program automatically, without having to
do it by hand.

Even more interesting, it seems like you could use
a fig2ps type of program as a converter to get a
preview with the actual math symbols, rather than
something with the usual $x_2$ types of strings...

This type of thing, if it works, should work both
with a graphics include as well as with an external
file include...

Any suggestions, critiques, or comments?  It would
be very nice to have a preview which included the
actual math, if that could be done easily.  But
maybe such a thing can already be done in a way I
am not familiar with?




Re: Xfig and LyX

2008-07-11 Thread Abdelrazak Younes

Allen L. Barker wrote:


  I have often used fig2ps (from sourceforge) to transform .fig files
  to .eps and then include the resulting eps file in LyX. (I don't
  remember what started me doing this; there was a problem of
  complexity in my figure a few years ago and this provided the
  solution.)
 
  It is possible to force specialtext from hte fig2ps command line.

I checked out fig2ps and it is a neat program.

I have been playing around with the converters in LyX,
but I still am not completely clear on all the details
of how they are operating.

It seems like you could define a converter to use
the fig2ps program automatically, without having to
do it by hand.

Even more interesting, it seems like you could use
a fig2ps type of program as a converter to get a
preview with the actual math symbols, rather than
something with the usual $x_2$ types of strings...

This type of thing, if it works, should work both
with a graphics include as well as with an external
file include...

Any suggestions, critiques, or comments?  It would
be very nice to have a preview which included the
actual math, if that could be done easily.  But
maybe such a thing can already be done in a way I
am not familiar with?


Yes xifg previewing can already been done thanks to fig2dev which is 
part of the xfig program. Just use the external material inset 
(Inset-File-External Material) and choose XFig in the combo. In the 
display tab, select 'preview'.


Abdel.



Xfig and LyX

2008-07-11 Thread Allen L. Barker



 Could somebody kindly point me to an understandable explanation
 of how to use xfig produced figures in LyX?
 Help file Userguide tells me to check for detailed explanation
 under ImbeddedObjects but there I can´t find any detailed
 explanation.

Just FYI, here is my current preferred method,
for the types of equation-heavy figures I tend
to have.

First, include the following in the preamble:

\usepackage{color}
\usepackage{graphics}
\usepackage[scanall]{psfrag}

Now in your actual .fig images you use special text
replacement-tags (without setting the special flag
on the xfig text).  These tags are just placeholders
which will then be replaced by the final text,
defined from within LyX.

The replacements are specified by strings like

\psfrag{FOURIERTRANSFORM}{insert LyX text here}

The text FOURIERTRANSFORM is what you would include
in your actual image.  By skillfully choosing these
labels the images can be reasonably comprehensible
even without the conversions.

Within LyX, the whole \psfrag{FOURIERTRANSFORM}{
is a red TeX box, as is the final }.  But the
insert LyX text here part between them can be
arbitrary, normal LyX text (within reason).

In particular, it can include LyX math-boxes for
equation-editing.  This is extremely convenient when
you have complicated formulas (and when you are no
longer used to entering the LaTeX strings for
everything).

I wrote a simple tutorial on this stuff in 2001,
but it no longer seems to be out on the web.  It
does need some updating, but many things are the
same.

BTW, the psfrag way to include arbitrary text
like $x_2$ in images is to have the string
\tex{$x_2$} in the original image.

Anyway, the advantages of the general psfrag
substitution method in LyX are that you can scale
the text-size of any substitution from within LyX,
and you can use the math-editor boxes rather than
having to use the LaTeX math strings.

Ideally, of course, we all want the best of all
the worlds as things progress.  It would be nice
if all the methods were compatible.  I'm still
looking into and considering how the psfrag
stuff could be compatible with the external-file
pstex stuff.  The external-file mechanism in LyX
is actually rather general and customizable.

In the future (however distant) it would be
nice if we could use a LyX math-box to edit the
equations in a previewed figure, and to have the
results displayed in the final equation form






Re: Xfig and LyX

2008-07-11 Thread Allen L. Barker


 Yes xifg previewing can already been done thanks to fig2dev which
 is part of the xfig program. Just use the external material inset
 (Inset-File-External Material) and choose XFig in the combo. In
 the display tab, select 'preview'.

I think you are missing my point.

Yes, I agree with you that LyX can already preview the xfig
images.

But, can it preview the math text like $x_2$ in its final
form?

I have not found any way for doing that, and I was suggesting
a possibility...

I have tried the External Material type of inset, but it still
displays $x_2$ as $x_2$.









Re: Xfig and LyX

2008-07-11 Thread Abdelrazak Younes

Allen L. Barker wrote:


 Yes xifg previewing can already been done thanks to fig2dev which
 is part of the xfig program. Just use the external material inset
 (Inset-File-External Material) and choose XFig in the combo. In
 the display tab, select 'preview'.

I think you are missing my point.

Yes, I agree with you that LyX can already preview the xfig
images.

But, can it preview the math text like $x_2$ in its final
form?


Yes, if you mark the text field as LateX in xfig the equation will be 
latex compiled and previewed on LyX screen. At least it works in 1.6, 
maybe there's a bug in 1.5...

You need the instant-preview package and dvipng installed for this to work.



I have not found any way for doing that, and I was suggesting
a possibility...

I have tried the External Material type of inset, but it still
displays $x_2$ as $x_2$.


See above, it should work. But I am not sure this will be compatible 
with your psfrag methods as this method uses the pstex_t format (or 
pdftex_t).


Abdel.



Re: Xfig and LyX

2008-07-11 Thread Allen L. Barker


 Yes, if you mark the text field as LateX in xfig the equation
 will be latex compiled and previewed on LyX screen. At least
 it works in 1.6, maybe there's a bug in 1.5...

 You need the instant-preview package and dvipng installed for
 this to work.

Are these packages installed by default in the normal LyX
setups (such as on a recent Fedora Linux)?

If not, how should one install the packages?  Are there any
other side-effects to the packages?

From within xfig, do you need to both select the text field
as special and select it to use the latex-font?





Re: Xfig and LyX

2008-07-11 Thread Abdelrazak Younes

Allen L. Barker wrote:


 Yes, if you mark the text field as LateX in xfig the equation
 will be latex compiled and previewed on LyX screen. At least
 it works in 1.6, maybe there's a bug in 1.5...

 You need the instant-preview package and dvipng installed for
 this to work.

Are these packages installed by default in the normal LyX
setups (such as on a recent Fedora Linux)?


Dunno...



If not, how should one install the packages?  Are there any
other side-effects to the packages?


Dunno...



From within xfig, do you need to both select the text field
as special and select it to use the latex-font?


Dunno...

I just use it on Windows :-)

Hopefully someone else will answer your questions...

Abdel.



Re: Xfig and LyX

2008-07-11 Thread Allen L. Barker


 I have often used fig2ps (from sourceforge) to transform .fig files
 to .eps and then include the resulting eps file in LyX. (I don't
 remember what started me doing this; there was a problem of
 complexity in my figure a few years ago and this provided the
 solution.)

 It is possible to force specialtext from hte fig2ps command line.

I checked out fig2ps and it is a neat program.

I have been playing around with the converters in LyX,
but I still am not completely clear on all the details
of how they are operating.

It seems like you could define a converter to use
the fig2ps program automatically, without having to
do it by hand.

Even more interesting, it seems like you could use
a fig2ps type of program as a converter to get a
preview with the actual math symbols, rather than
something with the usual $x_2$ types of strings...

This type of thing, if it works, should work both
with a graphics include as well as with an external
file include...

Any suggestions, critiques, or comments?  It would
be very nice to have a preview which included the
actual math, if that could be done easily.  But
maybe such a thing can already be done in a way I
am not familiar with?




Re: Xfig and LyX

2008-07-11 Thread Abdelrazak Younes

Allen L. Barker wrote:


  I have often used fig2ps (from sourceforge) to transform .fig files
  to .eps and then include the resulting eps file in LyX. (I don't
  remember what started me doing this; there was a problem of
  complexity in my figure a few years ago and this provided the
  solution.)
 
  It is possible to force specialtext from hte fig2ps command line.

I checked out fig2ps and it is a neat program.

I have been playing around with the converters in LyX,
but I still am not completely clear on all the details
of how they are operating.

It seems like you could define a converter to use
the fig2ps program automatically, without having to
do it by hand.

Even more interesting, it seems like you could use
a fig2ps type of program as a converter to get a
preview with the actual math symbols, rather than
something with the usual $x_2$ types of strings...

This type of thing, if it works, should work both
with a graphics include as well as with an external
file include...

Any suggestions, critiques, or comments?  It would
be very nice to have a preview which included the
actual math, if that could be done easily.  But
maybe such a thing can already be done in a way I
am not familiar with?


Yes xifg previewing can already been done thanks to fig2dev which is 
part of the xfig program. Just use the external material inset 
(Inset-File-External Material) and choose XFig in the combo. In the 
display tab, select 'preview'.


Abdel.



Xfig and LyX

2008-07-11 Thread Allen L. Barker



 Could somebody kindly point me to an understandable explanation
 of how to use xfig produced figures in LyX?
 Help file Userguide tells me to check for detailed explanation
 under ImbeddedObjects but there I can´t find any detailed
 explanation.

Just FYI, here is my current preferred method,
for the types of equation-heavy figures I tend
to have.

First, include the following in the preamble:

\usepackage{color}
\usepackage{graphics}
\usepackage[scanall]{psfrag}

Now in your actual .fig images you use special text
replacement-tags (without setting the special flag
on the xfig text).  These tags are just placeholders
which will then be replaced by the final text,
defined from within LyX.

The replacements are specified by strings like

\psfrag{FOURIERTRANSFORM}{insert LyX text here}

The text FOURIERTRANSFORM is what you would include
in your actual image.  By skillfully choosing these
labels the images can be reasonably comprehensible
even without the conversions.

Within LyX, the whole \psfrag{FOURIERTRANSFORM}{
is a red TeX box, as is the final }.  But the
insert LyX text here part between them can be
arbitrary, normal LyX text (within reason).

In particular, it can include LyX math-boxes for
equation-editing.  This is extremely convenient when
you have complicated formulas (and when you are no
longer used to entering the LaTeX strings for
everything).

I wrote a simple tutorial on this stuff in 2001,
but it no longer seems to be out on the web.  It
does need some updating, but many things are the
same.

BTW, the psfrag way to include arbitrary text
like $x_2$ in images is to have the string
\tex{$x_2$} in the original image.

Anyway, the advantages of the general psfrag
substitution method in LyX are that you can scale
the text-size of any substitution from within LyX,
and you can use the math-editor boxes rather than
having to use the LaTeX math strings.

Ideally, of course, we all want the best of all
the worlds as things progress.  It would be nice
if all the methods were compatible.  I'm still
looking into and considering how the psfrag
stuff could be compatible with the external-file
pstex stuff.  The external-file mechanism in LyX
is actually rather general and customizable.

In the future (however distant) it would be
nice if we could use a LyX math-box to edit the
equations in a previewed figure, and to have the
results displayed in the final equation form






Re: Xfig and LyX

2008-07-11 Thread Allen L. Barker


 Yes xifg previewing can already been done thanks to fig2dev which
 is part of the xfig program. Just use the external material inset
 (Inset-File-External Material) and choose XFig in the combo. In
 the display tab, select 'preview'.

I think you are missing my point.

Yes, I agree with you that LyX can already preview the xfig
images.

But, can it preview the math text like $x_2$ in its final
form?

I have not found any way for doing that, and I was suggesting
a possibility...

I have tried the External Material type of inset, but it still
displays $x_2$ as $x_2$.









Re: Xfig and LyX

2008-07-11 Thread Abdelrazak Younes

Allen L. Barker wrote:


 Yes xifg previewing can already been done thanks to fig2dev which
 is part of the xfig program. Just use the external material inset
 (Inset-File-External Material) and choose XFig in the combo. In
 the display tab, select 'preview'.

I think you are missing my point.

Yes, I agree with you that LyX can already preview the xfig
images.

But, can it preview the math text like $x_2$ in its final
form?


Yes, if you mark the text field as LateX in xfig the equation will be 
latex compiled and previewed on LyX screen. At least it works in 1.6, 
maybe there's a bug in 1.5...

You need the instant-preview package and dvipng installed for this to work.



I have not found any way for doing that, and I was suggesting
a possibility...

I have tried the External Material type of inset, but it still
displays $x_2$ as $x_2$.


See above, it should work. But I am not sure this will be compatible 
with your psfrag methods as this method uses the pstex_t format (or 
pdftex_t).


Abdel.



Re: Xfig and LyX

2008-07-11 Thread Allen L. Barker


 Yes, if you mark the text field as LateX in xfig the equation
 will be latex compiled and previewed on LyX screen. At least
 it works in 1.6, maybe there's a bug in 1.5...

 You need the instant-preview package and dvipng installed for
 this to work.

Are these packages installed by default in the normal LyX
setups (such as on a recent Fedora Linux)?

If not, how should one install the packages?  Are there any
other side-effects to the packages?

From within xfig, do you need to both select the text field
as special and select it to use the latex-font?





Re: Xfig and LyX

2008-07-11 Thread Abdelrazak Younes

Allen L. Barker wrote:


 Yes, if you mark the text field as LateX in xfig the equation
 will be latex compiled and previewed on LyX screen. At least
 it works in 1.6, maybe there's a bug in 1.5...

 You need the instant-preview package and dvipng installed for
 this to work.

Are these packages installed by default in the normal LyX
setups (such as on a recent Fedora Linux)?


Dunno...



If not, how should one install the packages?  Are there any
other side-effects to the packages?


Dunno...



From within xfig, do you need to both select the text field
as special and select it to use the latex-font?


Dunno...

I just use it on Windows :-)

Hopefully someone else will answer your questions...

Abdel.



Re: Xfig and LyX

2008-07-11 Thread Allen L. Barker


> I have often used fig2ps (from sourceforge) to transform .fig files
> to .eps and then include the resulting eps file in LyX. (I don't
> remember what started me doing this; there was a problem of
> complexity in my figure a few years ago and this provided the
> solution.)
>
> It is possible to force specialtext from hte fig2ps command line.

I checked out fig2ps and it is a neat program.

I have been playing around with the converters in LyX,
but I still am not completely clear on all the details
of how they are operating.

It seems like you could define a converter to use
the fig2ps program automatically, without having to
do it by hand.

Even more interesting, it seems like you could use
a fig2ps type of program as a converter to get a
preview with the actual math symbols, rather than
something with the usual $x_2$ types of strings...

This type of thing, if it works, should work both
with a graphics include as well as with an external
file include...

Any suggestions, critiques, or comments?  It would
be very nice to have a preview which included the
actual math, if that could be done easily.  But
maybe such a thing can already be done in a way I
am not familiar with?




Re: Xfig and LyX

2008-07-11 Thread Abdelrazak Younes

Allen L. Barker wrote:


 > I have often used fig2ps (from sourceforge) to transform .fig files
 > to .eps and then include the resulting eps file in LyX. (I don't
 > remember what started me doing this; there was a problem of
 > complexity in my figure a few years ago and this provided the
 > solution.)
 >
 > It is possible to force specialtext from hte fig2ps command line.

I checked out fig2ps and it is a neat program.

I have been playing around with the converters in LyX,
but I still am not completely clear on all the details
of how they are operating.

It seems like you could define a converter to use
the fig2ps program automatically, without having to
do it by hand.

Even more interesting, it seems like you could use
a fig2ps type of program as a converter to get a
preview with the actual math symbols, rather than
something with the usual $x_2$ types of strings...

This type of thing, if it works, should work both
with a graphics include as well as with an external
file include...

Any suggestions, critiques, or comments?  It would
be very nice to have a preview which included the
actual math, if that could be done easily.  But
maybe such a thing can already be done in a way I
am not familiar with?


Yes xifg previewing can already been done thanks to fig2dev which is 
part of the xfig program. Just use the external material inset 
(Inset->File->External Material) and choose XFig in the combo. In the 
display tab, select 'preview'.


Abdel.



Xfig and LyX

2008-07-11 Thread Allen L. Barker



> Could somebody kindly point me to an understandable explanation
> of how to use xfig produced figures in LyX?
> Help file Userguide tells me to check for detailed explanation
> under ImbeddedObjects but there I can´t find any detailed
> explanation.

Just FYI, here is my current preferred method,
for the types of equation-heavy figures I tend
to have.

First, include the following in the preamble:

\usepackage{color}
\usepackage{graphics}
\usepackage[scanall]{psfrag}

Now in your actual .fig images you use special text
replacement-tags (without setting the "special" flag
on the xfig text).  These tags are just placeholders
which will then be replaced by the final text,
defined from within LyX.

The replacements are specified by strings like

\psfrag{FOURIERTRANSFORM}{}

The text FOURIERTRANSFORM is what you would include
in your actual image.  By skillfully choosing these
labels the images can be reasonably comprehensible
even without the conversions.

Within LyX, the whole "\psfrag{FOURIERTRANSFORM}{"
is a red TeX box, as is the final "}".  But the
 part between them can be
arbitrary, normal LyX text (within reason).

In particular, it can include LyX math-boxes for
equation-editing.  This is extremely convenient when
you have complicated formulas (and when you are no
longer used to entering the LaTeX strings for
everything).

I wrote a simple tutorial on this stuff in 2001,
but it no longer seems to be out on the web.  It
does need some updating, but many things are the
same.

BTW, the "psfrag" way to include arbitrary text
like $x_2$ in images is to have the string
\tex{$x_2$} in the original image.

Anyway, the advantages of the general psfrag
substitution method in LyX are that you can scale
the text-size of any substitution from within LyX,
and you can use the math-editor boxes rather than
having to use the LaTeX math strings.

Ideally, of course, we all want the best of all
the worlds as things progress.  It would be nice
if all the methods were compatible.  I'm still
looking into and considering how the psfrag
stuff could be compatible with the external-file
pstex stuff.  The external-file mechanism in LyX
is actually rather general and customizable.

In the future (however distant) it would be
nice if we could use a LyX math-box to edit the
equations in a previewed figure, and to have the
results displayed in the final equation form






Re: Xfig and LyX

2008-07-11 Thread Allen L. Barker


> Yes xifg previewing can already been done thanks to fig2dev which
> is part of the xfig program. Just use the external material inset
> (Inset->File->External Material) and choose XFig in the combo. In
> the display tab, select 'preview'.

I think you are missing my point.

Yes, I agree with you that LyX can already preview the xfig
images.

But, can it preview the math text like $x_2$ in its final
form?

I have not found any way for doing that, and I was suggesting
a possibility...

I have tried the External Material type of inset, but it still
displays $x_2$ as $x_2$.









Re: Xfig and LyX

2008-07-11 Thread Abdelrazak Younes

Allen L. Barker wrote:


> Yes xifg previewing can already been done thanks to fig2dev which
> is part of the xfig program. Just use the external material inset
> (Inset->File->External Material) and choose XFig in the combo. In
> the display tab, select 'preview'.

I think you are missing my point.

Yes, I agree with you that LyX can already preview the xfig
images.

But, can it preview the math text like $x_2$ in its final
form?


Yes, if you mark the text field as LateX in xfig the equation will be 
latex compiled and previewed on LyX screen. At least it works in 1.6, 
maybe there's a bug in 1.5...

You need the instant-preview package and dvipng installed for this to work.



I have not found any way for doing that, and I was suggesting
a possibility...

I have tried the External Material type of inset, but it still
displays $x_2$ as $x_2$.


See above, it should work. But I am not sure this will be compatible 
with your psfrag methods as this method uses the pstex_t format (or 
pdftex_t).


Abdel.



Re: Xfig and LyX

2008-07-11 Thread Allen L. Barker


> Yes, if you mark the text field as LateX in xfig the equation
> will be latex compiled and previewed on LyX screen. At least
> it works in 1.6, maybe there's a bug in 1.5...
>
> You need the instant-preview package and dvipng installed for
> this to work.

Are these packages installed by default in the normal LyX
setups (such as on a recent Fedora Linux)?

If not, how should one install the packages?  Are there any
other side-effects to the packages?

From within xfig, do you need to both select the text field
as special and select it to use the latex-font?





Re: Xfig and LyX

2008-07-11 Thread Abdelrazak Younes

Allen L. Barker wrote:


> Yes, if you mark the text field as LateX in xfig the equation
> will be latex compiled and previewed on LyX screen. At least
> it works in 1.6, maybe there's a bug in 1.5...
>
> You need the instant-preview package and dvipng installed for
> this to work.

Are these packages installed by default in the normal LyX
setups (such as on a recent Fedora Linux)?


Dunno...



If not, how should one install the packages?  Are there any
other side-effects to the packages?


Dunno...



From within xfig, do you need to both select the text field
as special and select it to use the latex-font?


Dunno...

I just "use it" on Windows :-)

Hopefully someone else will answer your questions...

Abdel.



Re: Xfig and LyX

2008-07-03 Thread A. Scottedward Hodel

On Jun 25, 2008, at 9:21 AM, Wolfgang Engelmann wrote:



Could somebody kindly point me to an understandable explanation of  
how to use

xfig produced figures in LyX?
Help file Userguide tells me to check for detailed explanation under
ImbeddedObjects but there I can´t find any detailed explanation.

I have quite a number of xfig produced files which are all exported  
as .eps

files and inserted in the LyX document as floats.

My aim is to have the text of my fig files in the same font and size  
as the

text in the document. This is not the case now.

Do I have to use for all my fig files the xfig -specialtext or is  
there a

global command to do that for all files in one run?

And how exactly do I get it into the document? Is it the pstex or  
the pstex_t
file or both? Or is this done internally by LyX? With Enter  
(Einfuegen) File
(Datei) external Material I get the fig file but the text of the pdf  
output
is not scaled correctly (nor the fonts). Somehow I haven't caught  
the way of

entering it.

I am using version 1.5.4 of LyX
Has 1.5.5 or 1.6 a feature to insert fig files directly and the rest  
is done

by the program?

Thanks a lot

Wolfgang


I have often used fig2ps (from sourceforge) to transform .fig files  
to .eps and then include the resulting eps file in LyX.  (I don't  
remember what started me doing this; there was a problem of complexity  
in my figure a few years ago and this provided the solution.)


It is possible to force specialtext from hte fig2ps command line.

The entry in my Makefile (running X-windows on a Mac) is
%.eps : %.fig
@echo Making $@ from $
@fig2ps --forcespecial --add=epsfig \
  --input=$(HOME)/aub/2120/notes/2120headf.tex \
  --bbox=dvips --eps $
rm `find . -name *.fig2ps.tmp.* -print`

A. Scottedward Hodel [EMAIL PROTECTED]
http://homepage.mac.com/hodelas/tar





Re: Xfig and LyX

2008-07-03 Thread A. Scottedward Hodel

On Jun 25, 2008, at 9:21 AM, Wolfgang Engelmann wrote:



Could somebody kindly point me to an understandable explanation of  
how to use

xfig produced figures in LyX?
Help file Userguide tells me to check for detailed explanation under
ImbeddedObjects but there I can´t find any detailed explanation.

I have quite a number of xfig produced files which are all exported  
as .eps

files and inserted in the LyX document as floats.

My aim is to have the text of my fig files in the same font and size  
as the

text in the document. This is not the case now.

Do I have to use for all my fig files the xfig -specialtext or is  
there a

global command to do that for all files in one run?

And how exactly do I get it into the document? Is it the pstex or  
the pstex_t
file or both? Or is this done internally by LyX? With Enter  
(Einfuegen) File
(Datei) external Material I get the fig file but the text of the pdf  
output
is not scaled correctly (nor the fonts). Somehow I haven't caught  
the way of

entering it.

I am using version 1.5.4 of LyX
Has 1.5.5 or 1.6 a feature to insert fig files directly and the rest  
is done

by the program?

Thanks a lot

Wolfgang


I have often used fig2ps (from sourceforge) to transform .fig files  
to .eps and then include the resulting eps file in LyX.  (I don't  
remember what started me doing this; there was a problem of complexity  
in my figure a few years ago and this provided the solution.)


It is possible to force specialtext from hte fig2ps command line.

The entry in my Makefile (running X-windows on a Mac) is
%.eps : %.fig
@echo Making $@ from $
@fig2ps --forcespecial --add=epsfig \
  --input=$(HOME)/aub/2120/notes/2120headf.tex \
  --bbox=dvips --eps $
rm `find . -name *.fig2ps.tmp.* -print`

A. Scottedward Hodel [EMAIL PROTECTED]
http://homepage.mac.com/hodelas/tar





Re: Xfig and LyX

2008-07-03 Thread A. Scottedward Hodel

On Jun 25, 2008, at 9:21 AM, Wolfgang Engelmann wrote:



Could somebody kindly point me to an understandable explanation of  
how to use

xfig produced figures in LyX?
Help file Userguide tells me to check for detailed explanation under
ImbeddedObjects but there I can´t find any detailed explanation.

I have quite a number of xfig produced files which are all exported  
as .eps

files and inserted in the LyX document as floats.

My aim is to have the text of my fig files in the same font and size  
as the

text in the document. This is not the case now.

Do I have to use for all my fig files the xfig -specialtext or is  
there a

global command to do that for all files in one run?

And how exactly do I get it into the document? Is it the pstex or  
the pstex_t
file or both? Or is this done internally by LyX? With Enter  
(Einfuegen) File
(Datei) external Material I get the fig file but the text of the pdf  
output
is not scaled correctly (nor the fonts). Somehow I haven't caught  
the way of

entering it.

I am using version 1.5.4 of LyX
Has 1.5.5 or 1.6 a feature to insert fig files directly and the rest  
is done

by the program?

Thanks a lot

Wolfgang


I have often used fig2ps (from sourceforge) to transform .fig files  
to .eps and then include the resulting eps file in LyX.  (I don't  
remember what started me doing this; there was a problem of complexity  
in my figure a few years ago and this provided the solution.)


It is possible to force specialtext from hte fig2ps command line.

The entry in my Makefile (running X-windows on a Mac) is
%.eps : %.fig
@echo "Making $@ from $<"
@fig2ps --forcespecial --add=epsfig \
  --input=$(HOME)/aub/2120/notes/2120headf.tex \
  --bbox=dvips --eps $<
rm `find . -name "*.fig2ps.tmp.*" -print`

A. Scottedward Hodel [EMAIL PROTECTED]
http://homepage.mac.com/hodelas/tar





Re: Xfig and LyX

2008-06-26 Thread Vaclav Smidl
Hi Wolfgang,
I also prefer having the fontsize in figures equal to that of the surrounding 
text.

  If the special flag was set you encountered a bug, either in xfig,
  fig2dev or in LyX. Otherwise just set the flag, and the text should be
  typeset by LaTeX.

 How does xfig find out the size and font I used in the document, or does it
 make latex take it over?

To do that, you really need the special flag switched on for strings in 
xfig. If you did not do it in your xfig files, you can change it quite 
efficiently using update functionality in xfig gui, or by a script on raw 
xfig file format. All strings are terminated by \001 so it is easy to detect 
them and the special flag is just one of the numbers in front of the text. Do 
not remember which one, you can easily find it out by diffing two files, one 
with and one without the special flag.

As a second step, redefine latex macro SetFigFont in the preamble:
either
\gdef\SetFigFont#1#2#3#4#5{\relax}
or 
\gdef\SetFigFontNFSS#1#2#3#4#5{\relax}
depending on the xfig version. Check one of your .pdftex_t file which version 
is used in it.

Then, all texts will be typeset by the active font in latex.

Hope this helps,
Vasek



Re: Xfig and LyX

2008-06-26 Thread Wolfgang Engelmann
Am Donnerstag, 26. Juni 2008 07:28 schrieb Vaclav Smidl:
 Hi Wolfgang,
 I also prefer having the fontsize in figures equal to that of the
 surrounding text.

   If the special flag was set you encountered a bug, either in xfig,
   fig2dev or in LyX. Otherwise just set the flag, and the text should be
   typeset by LaTeX.
 
  How does xfig find out the size and font I used in the document, or does
  it make latex take it over?

 To do that, you really need the special flag switched on for strings in
 xfig. If you did not do it in your xfig files, you can change it quite
 efficiently using update functionality in xfig gui, or by a script on raw
 xfig file format. All strings are terminated by \001 so it is easy to
 detect them and the special flag is just one of the numbers in front of the
 text. Do not remember which one, you can easily find it out by diffing two
 files, one with and one without the special flag.

 As a second step, redefine latex macro SetFigFont in the preamble:
 either
 \gdef\SetFigFont#1#2#3#4#5{\relax}
 or
 \gdef\SetFigFontNFSS#1#2#3#4#5{\relax}
 depending on the xfig version. Check one of your .pdftex_t file which
 version is used in it.

 Then, all texts will be typeset by the active font in latex.

 Hope this helps,
 Vasek

Vasek, this is a very valuable information and I am thankful.
Wolfgang


Re: Xfig and LyX

2008-06-26 Thread Georg Baum
Wolfgang Engelmann wrote:

  with  external template way  you mean the way I and Rich use, i.e. export
  fig
 to eps and insert in Lyx?

No. I mean what Abdel uses: Insert-File-External Material and then choose
the xfig template. In the file dialog you specify the .fig file. If you
want to edit the .fig file from within LyX press cklick on the file and
then press the edit button in the dialog that opens.

 Does it mean, I have to create the fig file after having started
 xfig -specialtext and xfig then puts my text in the pstex_t file with
 location marks etc?

No, the -specialtext switch is only the default for new textboxes. Therefore
it is useful, but it does not change existing ones. How the text is output
to LaTeX depends on the flags that are stored in the .fig file, not on
the -specialtext switch.

 With other words, I have to redo all my fig files and add (or copy, if I
 find out how the localization of the text is done in pstex_t)?

If they miss the flag, then you simply need to set the flag in the .fig file
(manually or with a script). No ned to look at pstex_t. Then you include
all .fig files as external material, and maybe set the preamble command
mentioned by Vasek.

 textbox is pstex_t?

No, a textbox is what you get when you press the big T in xfig and where you
enter your text.

 How does xfig find out the size and font I used in the document, or does
 it make latex take it over?

It does not find it out. It puts the text in a file that is processed by
LaTeX.


Georg



Re: Xfig and LyX

2008-06-26 Thread curtis osterhoudt


/* original message below **/

- Original Message 
From: Georg Baum [EMAIL PROTECTED]
To: lyx-users@lists.lyx.org
Sent: Thursday, June 26, 2008 11:55:17 AM
Subject: Re: Xfig and LyX

snip

 With other words, I have to redo all my fig files and add (or copy, if I
 find out how the localization of the text is done in pstex_t)?

If they miss the flag, then you simply need to set the flag in the .fig file
(manually or with a script).

snip


Georg
/* original message above **/


Does anyone know of such a script to set the special flag post-facto? I 
have a Mathematica program I've been using to do it, but if someone has a quick 
perl file or bash script (or something analogous on Windows), that would be 
very helpful. 

  Thanks!
   Curtis O.



  

Re: Xfig and LyX

2008-06-26 Thread Vaclav Smidl
Hi Wolfgang,
I also prefer having the fontsize in figures equal to that of the surrounding 
text.

  If the special flag was set you encountered a bug, either in xfig,
  fig2dev or in LyX. Otherwise just set the flag, and the text should be
  typeset by LaTeX.

 How does xfig find out the size and font I used in the document, or does it
 make latex take it over?

To do that, you really need the special flag switched on for strings in 
xfig. If you did not do it in your xfig files, you can change it quite 
efficiently using update functionality in xfig gui, or by a script on raw 
xfig file format. All strings are terminated by \001 so it is easy to detect 
them and the special flag is just one of the numbers in front of the text. Do 
not remember which one, you can easily find it out by diffing two files, one 
with and one without the special flag.

As a second step, redefine latex macro SetFigFont in the preamble:
either
\gdef\SetFigFont#1#2#3#4#5{\relax}
or 
\gdef\SetFigFontNFSS#1#2#3#4#5{\relax}
depending on the xfig version. Check one of your .pdftex_t file which version 
is used in it.

Then, all texts will be typeset by the active font in latex.

Hope this helps,
Vasek



Re: Xfig and LyX

2008-06-26 Thread Wolfgang Engelmann
Am Donnerstag, 26. Juni 2008 07:28 schrieb Vaclav Smidl:
 Hi Wolfgang,
 I also prefer having the fontsize in figures equal to that of the
 surrounding text.

   If the special flag was set you encountered a bug, either in xfig,
   fig2dev or in LyX. Otherwise just set the flag, and the text should be
   typeset by LaTeX.
 
  How does xfig find out the size and font I used in the document, or does
  it make latex take it over?

 To do that, you really need the special flag switched on for strings in
 xfig. If you did not do it in your xfig files, you can change it quite
 efficiently using update functionality in xfig gui, or by a script on raw
 xfig file format. All strings are terminated by \001 so it is easy to
 detect them and the special flag is just one of the numbers in front of the
 text. Do not remember which one, you can easily find it out by diffing two
 files, one with and one without the special flag.

 As a second step, redefine latex macro SetFigFont in the preamble:
 either
 \gdef\SetFigFont#1#2#3#4#5{\relax}
 or
 \gdef\SetFigFontNFSS#1#2#3#4#5{\relax}
 depending on the xfig version. Check one of your .pdftex_t file which
 version is used in it.

 Then, all texts will be typeset by the active font in latex.

 Hope this helps,
 Vasek

Vasek, this is a very valuable information and I am thankful.
Wolfgang


Re: Xfig and LyX

2008-06-26 Thread Georg Baum
Wolfgang Engelmann wrote:

  with  external template way  you mean the way I and Rich use, i.e. export
  fig
 to eps and insert in Lyx?

No. I mean what Abdel uses: Insert-File-External Material and then choose
the xfig template. In the file dialog you specify the .fig file. If you
want to edit the .fig file from within LyX press cklick on the file and
then press the edit button in the dialog that opens.

 Does it mean, I have to create the fig file after having started
 xfig -specialtext and xfig then puts my text in the pstex_t file with
 location marks etc?

No, the -specialtext switch is only the default for new textboxes. Therefore
it is useful, but it does not change existing ones. How the text is output
to LaTeX depends on the flags that are stored in the .fig file, not on
the -specialtext switch.

 With other words, I have to redo all my fig files and add (or copy, if I
 find out how the localization of the text is done in pstex_t)?

If they miss the flag, then you simply need to set the flag in the .fig file
(manually or with a script). No ned to look at pstex_t. Then you include
all .fig files as external material, and maybe set the preamble command
mentioned by Vasek.

 textbox is pstex_t?

No, a textbox is what you get when you press the big T in xfig and where you
enter your text.

 How does xfig find out the size and font I used in the document, or does
 it make latex take it over?

It does not find it out. It puts the text in a file that is processed by
LaTeX.


Georg



Re: Xfig and LyX

2008-06-26 Thread curtis osterhoudt


/* original message below **/

- Original Message 
From: Georg Baum [EMAIL PROTECTED]
To: lyx-users@lists.lyx.org
Sent: Thursday, June 26, 2008 11:55:17 AM
Subject: Re: Xfig and LyX

snip

 With other words, I have to redo all my fig files and add (or copy, if I
 find out how the localization of the text is done in pstex_t)?

If they miss the flag, then you simply need to set the flag in the .fig file
(manually or with a script).

snip


Georg
/* original message above **/


Does anyone know of such a script to set the special flag post-facto? I 
have a Mathematica program I've been using to do it, but if someone has a quick 
perl file or bash script (or something analogous on Windows), that would be 
very helpful. 

  Thanks!
   Curtis O.



  

Re: Xfig and LyX

2008-06-26 Thread Vaclav Smidl
Hi Wolfgang,
I also prefer having the fontsize in figures equal to that of the surrounding 
text.

> > If the special flag was set you encountered a bug, either in xfig,
> > fig2dev or in LyX. Otherwise just set the flag, and the text should be
> > typeset by LaTeX.
>
> How does xfig find out the size and font I used in the document, or does it
> make latex take it over?

To do that, you really need the "special" flag switched on for strings in 
xfig. If you did not do it in your xfig files, you can change it quite 
efficiently using "update" functionality in xfig gui, or by a script on raw 
xfig file format. All strings are terminated by \001 so it is easy to detect 
them and the special flag is just one of the numbers in front of the text. Do 
not remember which one, you can easily find it out by diffing two files, one 
with and one without the special flag.

As a second step, redefine latex macro SetFigFont in the preamble:
either
\gdef\SetFigFont#1#2#3#4#5{\relax}
or 
\gdef\SetFigFontNFSS#1#2#3#4#5{\relax}
depending on the xfig version. Check one of your .pdftex_t file which version 
is used in it.

Then, all texts will be typeset by the active font in latex.

Hope this helps,
Vasek



Re: Xfig and LyX

2008-06-26 Thread Wolfgang Engelmann
Am Donnerstag, 26. Juni 2008 07:28 schrieb Vaclav Smidl:
> Hi Wolfgang,
> I also prefer having the fontsize in figures equal to that of the
> surrounding text.
>
> > > If the special flag was set you encountered a bug, either in xfig,
> > > fig2dev or in LyX. Otherwise just set the flag, and the text should be
> > > typeset by LaTeX.
> >
> > How does xfig find out the size and font I used in the document, or does
> > it make latex take it over?
>
> To do that, you really need the "special" flag switched on for strings in
> xfig. If you did not do it in your xfig files, you can change it quite
> efficiently using "update" functionality in xfig gui, or by a script on raw
> xfig file format. All strings are terminated by \001 so it is easy to
> detect them and the special flag is just one of the numbers in front of the
> text. Do not remember which one, you can easily find it out by diffing two
> files, one with and one without the special flag.
>
> As a second step, redefine latex macro SetFigFont in the preamble:
> either
> \gdef\SetFigFont#1#2#3#4#5{\relax}
> or
> \gdef\SetFigFontNFSS#1#2#3#4#5{\relax}
> depending on the xfig version. Check one of your .pdftex_t file which
> version is used in it.
>
> Then, all texts will be typeset by the active font in latex.
>
> Hope this helps,
> Vasek

Vasek, this is a very valuable information and I am thankful.
Wolfgang


Re: Xfig and LyX

2008-06-26 Thread Georg Baum
Wolfgang Engelmann wrote:

>  with  external template way  you mean the way I and Rich use, i.e. export
>  fig
> to eps and insert in Lyx?

No. I mean what Abdel uses: Insert->File->External Material and then choose
the xfig template. In the file dialog you specify the .fig file. If you
want to edit the .fig file from within LyX press cklick on the file and
then press the edit button in the dialog that opens.

> Does it mean, I have to create the fig file after having started
> xfig -specialtext and xfig then puts my text in the pstex_t file with
> location marks etc?

No, the -specialtext switch is only the default for new textboxes. Therefore
it is useful, but it does not change existing ones. How the text is output
to LaTeX depends on the flags that are stored in the .fig file, not on
the -specialtext switch.

> With other words, I have to redo all my fig files and add (or copy, if I
> find out how the localization of the text is done in pstex_t)?

If they miss the flag, then you simply need to set the flag in the .fig file
(manually or with a script). No ned to look at pstex_t. Then you include
all .fig files as external material, and maybe set the preamble command
mentioned by Vasek.

> textbox is pstex_t?

No, a textbox is what you get when you press the big T in xfig and where you
enter your text.

> How does xfig find out the size and font I used in the document, or does
> it make latex take it over?

It does not find it out. It puts the text in a file that is processed by
LaTeX.


Georg



Re: Xfig and LyX

2008-06-26 Thread curtis osterhoudt


/* original message below **/

- Original Message 
From: Georg Baum <[EMAIL PROTECTED]>
To: lyx-users@lists.lyx.org
Sent: Thursday, June 26, 2008 11:55:17 AM
Subject: Re: Xfig and LyX



> With other words, I have to redo all my fig files and add (or copy, if I
> find out how the localization of the text is done in pstex_t)?

If they miss the flag, then you simply need to set the flag in the .fig file
(manually or with a script).




Georg
/* original message above **/


Does anyone know of such a script to set the "special" flag post-facto? I 
have a Mathematica program I've been using to do it, but if someone has a quick 
perl file or bash script (or something analogous on Windows), that would be 
very helpful. 

  Thanks!
   Curtis O.



  

Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann

Could somebody kindly point me to an understandable explanation of how to use 
xfig produced figures in LyX? 
Help file Userguide tells me to check for detailed explanation under 
ImbeddedObjects but there I can´t find any detailed explanation.

I have quite a number of xfig produced files which are all exported as .eps 
files and inserted in the LyX document as floats. 

My aim is to have the text of my fig files in the same font and size as the 
text in the document. This is not the case now.

Do I have to use for all my fig files the xfig -specialtext or is there a 
global command to do that for all files in one run?

 And how exactly do I get it into the document? Is it the pstex or the pstex_t 
file or both? Or is this done internally by LyX? With Enter (Einfuegen) File 
(Datei) external Material I get the fig file but the text of the pdf output 
is not scaled correctly (nor the fonts). Somehow I haven't caught the way of 
entering it. 

I am using version 1.5.4 of LyX
Has 1.5.5 or 1.6 a feature to insert fig files directly and the rest is done 
by the program?

Thanks a lot

Wolfgang


Re: Xfig and LyX

2008-06-25 Thread Rich Shepard

On Wed, 25 Jun 2008, Wolfgang Engelmann wrote:


Could somebody kindly point me to an understandable explanation of how to
use xfig produced figures in LyX? Help file Userguide tells me to check
for detailed explanation under ImbeddedObjects but there I can´t find any
detailed explanation.


Wolfgang,

  I can try.


I have quite a number of xfig produced files which are all exported as .eps
files and inserted in the LyX document as floats.


  That's what I've done, too.


My aim is to have the text of my fig files in the same font and size as the
text in the document. This is not the case now.



Do I have to use for all my fig files the xfig -specialtext or is there a
global command to do that for all files in one run?


  I do not know if you can post-process the typeface, but I made the
Palatino typeface the standard in Xfig images because that's the standard
typeface I use in all my documents. This produces the same text appearance
in both body and images.


And how exactly do I get it into the document? Is it the pstex or the
pstex_t file or both? Or is this done internally by LyX? With Enter
(Einfuegen) File (Datei) external Material I get the fig file but the text
of the pdf output is not scaled correctly (nor the fonts). Somehow I
haven't caught the way of entering it.


  I've always used Insert - Float - Float Figure, then specified the file
in the dialog box.

  Perhaps I don't understand your concerns well enough.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863

Re: Xfig and LyX

2008-06-25 Thread Abdelrazak Younes

Wolfgang Engelmann wrote:
Could somebody kindly point me to an understandable explanation of how to use 
xfig produced figures in LyX? 


Use the external inset (Inset-File-External Material) and choose the 
XFig template. You should also select preview in the display combo AFAIR.



I am using version 1.5.4 of LyX
Has 1.5.5 or 1.6 a feature to insert fig files directly and the rest is done 
by the program?


1.5.5 is the same as 1.5.4 in this regard. 1.6 will save you on choosing 
preview on the display combo, that's all.


Abdel.



Re: Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann
Am Mittwoch, 25. Juni 2008 13:26 schrieb Rich Shepard:
 On Wed, 25 Jun 2008, Wolfgang Engelmann wrote:
  Could somebody kindly point me to an understandable explanation of how to
  use xfig produced figures in LyX? Help file Userguide tells me to check
  for detailed explanation under ImbeddedObjects but there I can´t find any
  detailed explanation.

 Wolfgang,

I can try.

  I have quite a number of xfig produced files which are all exported as
  .eps files and inserted in the LyX document as floats.

That's what I've done, too.

  My aim is to have the text of my fig files in the same font and size as
  the text in the document. This is not the case now.
 
  Do I have to use for all my fig files the xfig -specialtext or is there a
  global command to do that for all files in one run?

I do not know if you can post-process the typeface, but I made the
 Palatino typeface the standard in Xfig images because that's the standard
 typeface I use in all my documents. This produces the same text appearance
 in both body and images.

Rich, thanks: 
What about the size of the text in your fig - eps file in respect to the size 
of the text of the body (that is the document text, I guess?). Do you adjust 
it just by comparing it? Thats what I did so far. But what about the pstex 
and the pstex_t which you get after running xfig -specialtext? I thought this 
is the way to divide the image part of the fig and the text part so that the 
latter can be adjusted (by the program) to the font size of my text (and also 
to include e.g. greek letters as latex etc). If I check my  pstex file, it 
still shows the image and the text, as it was in the normal .fig file. The 
pstex_t file reads like:
\begin{picture}(0,0)%
\includegraphics{S021n.pstex}%
\end{picture}%
\setlength{\unitlength}{3947sp}%
%
\begingroup\makeatletter\ifx\SetFigFontNFSS\undefined%
\gdef\SetFigFontNFSS#1#2#3#4#5{%
  [EMAIL PROTECTED]
  \fontfamily{#3}\fontseries{#4}\fontshape{#5}%
  \selectfont}%
\fi\endgroup%
\begin{picture}(7881,10984)(1694,-10257)
\end{picture}%

perhaps I have to define things (see undefined% in the fifth line)

 I just did not get it yet, some step might be missing (perhaps something in 
the preamble

Wolfgang

  And how exactly do I get it into the document? Is it the pstex or the
  pstex_t file or both? Or is this done internally by LyX? With Enter
  (Einfuegen) File (Datei) external Material I get the fig file but the
  text of the pdf output is not scaled correctly (nor the fonts). Somehow I
  haven't caught the way of entering it.

I've always used Insert - Float - Float Figure, then specified the
 file in the dialog box.

Perhaps I don't understand your concerns well enough.

 Rich


Re: Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann
Am Mittwoch, 25. Juni 2008 13:58 schrieb Abdelrazak Younes:
 Wolfgang Engelmann wrote:
  Could somebody kindly point me to an understandable explanation of how to
  use xfig produced figures in LyX?

 Use the external inset (Inset-File-External Material) and choose the
 XFig template. You should also select preview in the display combo AFAIR.

Thats what I did, Abdel. See also my answer to Rich

Wolfgang
  I am using version 1.5.4 of LyX
  Has 1.5.5 or 1.6 a feature to insert fig files directly and the rest is
  done by the program?

 1.5.5 is the same as 1.5.4 in this regard. 1.6 will save you on choosing
 preview on the display combo, that's all.

 Abdel.


Re: Xfig and LyX

2008-06-25 Thread Rich Shepard

On Wed, 25 Jun 2008, Wolfgang Engelmann wrote:


What about the size of the text in your fig - eps file in respect to the size
of the text of the body (that is the document text, I guess?). Do you adjust
it just by comparing it?


Wolfgang,

  No. I size the text in the figure to the figure (keeping in mind that it
will probably be smaller in the document), and pay no attention to the font
size relative to the text. The image is its own entity and the text should
be scaled to the graphics ... and clarity.


Thats what I did so far. But what about the pstex and the pstex_t which
you get after running xfig -specialtext? I thought this is the way to
divide the image part of the fig and the text part so that the latter can
be adjusted (by the program) to the font size of my text (and also to
include e.g. greek letters as latex etc).


  I've not done this. I create the figures separately, then insert them in
floats. If they're not readable in the pdf, I adjust the text size and try
again. For my purposes, 10pt or 12pt text in the figure is perfectly
readable.

  When I start a new figure, I change the default font (lower right corner
of the bottom) to 'postscript fonts' and select Palatino-Roman. Depending on
how much text will be in the figure, I leave the default size at 12pt (light
text) or reduce it to 10pt (a lot of text). Then I create the figure and
export it as .eps and put it in the document.

HTH,

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Xfig and LyX

2008-06-25 Thread Georg Baum
Wolfgang Engelmann wrote:

 Am Mittwoch, 25. Juni 2008 13:26 schrieb Rich Shepard:

I can try.

  I have quite a number of xfig produced files which are all exported as
  .eps files and inserted in the LyX document as floats.

The external template way is supposed to be easier, since it does the
exporting automatically, so you can't get outdated figures because you
forgot to export.

  Do I have to use for all my fig files the xfig -specialtext or is there
  a global command to do that for all files in one run?

The special flag is a property of each text box that you have to set
individually. AFAIK the -specialtext switch only sets that as default for
new text. If you have a lot of files that you need to convert it would
probably easy to write a small script that does this.

 What about the size of the text in your fig - eps file in respect to the
 size of the text of the body (that is the document text, I guess?). Do you
 adjust it just by comparing it? Thats what I did so far. But what about
 the pstex and the pstex_t which you get after running xfig -specialtext? I
 thought this is the way to divide the image part of the fig and the text
 part so that the latter can be adjusted (by the program) to the font size
 of my text (and also
 to include e.g. greek letters as latex etc). If I check my  pstex file, it
 still shows the image and the text, as it was in the normal .fig file. The
 pstex_t file reads like:

You should not need to worry about pstex_t and friends if you use the
external template. LyX is supposed to create all needed files
automatically, whether you use pdflatex or the traditional DVI. The only
decision you have to make is whether you want to use the special flag or
not: If you use it, the text will be typeset by LaTeX, and you can use
math, own commands that are defined in ERT or the preamble etc. The size
and font would also be adjusted through LaTeX commands. If you do not use
the special flag the text will appear as is in the final document, and you
set the font, size etc. in xfig.

  I just did not get it yet, some step might be missing (perhaps something
  in
 the preamble

You do not need to set anything in the preamble unless you use the xfig
special text flag and inserted nonstandard commands in a textbox of the
xfig file yourself.

  And how exactly do I get it into the document? Is it the pstex or the
  pstex_t file or both? Or is this done internally by LyX? With Enter
  (Einfuegen) File (Datei) external Material I get the fig file but the
  text of the pdf output is not scaled correctly (nor the fonts). Somehow
  I haven't caught the way of entering it.

If the special flag was set you encountered a bug, either in xfig, fig2dev
or in LyX. Otherwise just set the flag, and the text should be typeset by
LaTeX.


Georg



Re: Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann
Am Mittwoch, 25. Juni 2008 18:51 schrieb Georg Baum:
 Wolfgang Engelmann wrote:
  Am Mittwoch, 25. Juni 2008 13:26 schrieb Rich Shepard:
 I can try.
 
   I have quite a number of xfig produced files which are all exported as
   .eps files and inserted in the LyX document as floats.

 The external template way is supposed to be easier, since it does the
 exporting automatically, so you can't get outdated figures because you
 forgot to export.
 with  external template way  you mean the way I and Rich use, i.e. export fig 
to eps and insert in Lyx?

   Do I have to use for all my fig files the xfig -specialtext or is
   there a global command to do that for all files in one run?

 The special flag is a property of each text box that you have to set
 individually. AFAIK the -specialtext switch only sets that as default for
 new text. If you have a lot of files that you need to convert it would
 probably easy to write a small script that does this.

  What about the size of the text in your fig - eps file in respect to the
  size of the text of the body (that is the document text, I guess?). Do
  you adjust it just by comparing it? Thats what I did so far. But what
  about the pstex and the pstex_t which you get after running xfig
  -specialtext? I thought this is the way to divide the image part of the
  fig and the text part so that the latter can be adjusted (by the program)
  to the font size of my text (and also
  to include e.g. greek letters as latex etc). If I check my  pstex file,
  it still shows the image and the text, as it was in the normal .fig file.
  The pstex_t file reads like:

 You should not need to worry about pstex_t and friends if you use the
 external template. LyX is supposed to create all needed files
 automatically, whether you use pdflatex or the traditional DVI. The only
 decision you have to make is whether you want to use the special flag or
 not: If you use it, the text will be typeset by LaTeX, and you can use
 math, own commands that are defined in ERT or the preamble etc. The size
 and font would also be adjusted through LaTeX commands. If you do not use
 the special flag the text will appear as is in the final document, and you
 set the font, size etc. in xfig.
Does it mean, I have to create the fig file after having started 
xfig -specialtext and xfig then puts my text in the pstex_t file with 
location marks etc?
With other words, I have to redo all my fig files and add (or copy, if I find 
out how the localization of the text is done in pstex_t)?

   I just did not get it yet, some step might be missing (perhaps something
   in
  the preamble

 You do not need to set anything in the preamble unless you use the xfig
 special text flag and inserted nonstandard commands in a textbox
textbox is pstex_t?
 of the 
 xfig file yourself.

   And how exactly do I get it into the document? Is it the pstex or the
   pstex_t file or both? Or is this done internally by LyX? With Enter
   (Einfuegen) File (Datei) external Material I get the fig file but the
   text of the pdf output is not scaled correctly (nor the fonts).
   Somehow I haven't caught the way of entering it.

 If the special flag was set you encountered a bug, either in xfig, fig2dev
 or in LyX. Otherwise just set the flag, and the text should be typeset by
 LaTeX.
How does xfig find out the size and font I used in the document, or does it 
make latex take it over?

Will experiment tomorrow a bit, but perhaps clarifying my (stupid) questions 
helps to reduce the experimenting time. Thanks a lot, Georg

Wolfgang


Re: Xfig and LyX

2008-06-25 Thread Abdelrazak Younes

Wolfgang Engelmann wrote:

Am Mittwoch, 25. Juni 2008 13:58 schrieb Abdelrazak Younes:

Wolfgang Engelmann wrote:

Could somebody kindly point me to an understandable explanation of how to
use xfig produced figures in LyX?

Use the external inset (Inset-File-External Material) and choose the
XFig template. You should also select preview in the display combo AFAIR.


Thats what I did, Abdel.


I don't think so. As I said, try Inset-File-External Material

Abdel.



Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann

Could somebody kindly point me to an understandable explanation of how to use 
xfig produced figures in LyX? 
Help file Userguide tells me to check for detailed explanation under 
ImbeddedObjects but there I can´t find any detailed explanation.

I have quite a number of xfig produced files which are all exported as .eps 
files and inserted in the LyX document as floats. 

My aim is to have the text of my fig files in the same font and size as the 
text in the document. This is not the case now.

Do I have to use for all my fig files the xfig -specialtext or is there a 
global command to do that for all files in one run?

 And how exactly do I get it into the document? Is it the pstex or the pstex_t 
file or both? Or is this done internally by LyX? With Enter (Einfuegen) File 
(Datei) external Material I get the fig file but the text of the pdf output 
is not scaled correctly (nor the fonts). Somehow I haven't caught the way of 
entering it. 

I am using version 1.5.4 of LyX
Has 1.5.5 or 1.6 a feature to insert fig files directly and the rest is done 
by the program?

Thanks a lot

Wolfgang


Re: Xfig and LyX

2008-06-25 Thread Rich Shepard

On Wed, 25 Jun 2008, Wolfgang Engelmann wrote:


Could somebody kindly point me to an understandable explanation of how to
use xfig produced figures in LyX? Help file Userguide tells me to check
for detailed explanation under ImbeddedObjects but there I can´t find any
detailed explanation.


Wolfgang,

  I can try.


I have quite a number of xfig produced files which are all exported as .eps
files and inserted in the LyX document as floats.


  That's what I've done, too.


My aim is to have the text of my fig files in the same font and size as the
text in the document. This is not the case now.



Do I have to use for all my fig files the xfig -specialtext or is there a
global command to do that for all files in one run?


  I do not know if you can post-process the typeface, but I made the
Palatino typeface the standard in Xfig images because that's the standard
typeface I use in all my documents. This produces the same text appearance
in both body and images.


And how exactly do I get it into the document? Is it the pstex or the
pstex_t file or both? Or is this done internally by LyX? With Enter
(Einfuegen) File (Datei) external Material I get the fig file but the text
of the pdf output is not scaled correctly (nor the fonts). Somehow I
haven't caught the way of entering it.


  I've always used Insert - Float - Float Figure, then specified the file
in the dialog box.

  Perhaps I don't understand your concerns well enough.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863

Re: Xfig and LyX

2008-06-25 Thread Abdelrazak Younes

Wolfgang Engelmann wrote:
Could somebody kindly point me to an understandable explanation of how to use 
xfig produced figures in LyX? 


Use the external inset (Inset-File-External Material) and choose the 
XFig template. You should also select preview in the display combo AFAIR.



I am using version 1.5.4 of LyX
Has 1.5.5 or 1.6 a feature to insert fig files directly and the rest is done 
by the program?


1.5.5 is the same as 1.5.4 in this regard. 1.6 will save you on choosing 
preview on the display combo, that's all.


Abdel.



Re: Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann
Am Mittwoch, 25. Juni 2008 13:26 schrieb Rich Shepard:
 On Wed, 25 Jun 2008, Wolfgang Engelmann wrote:
  Could somebody kindly point me to an understandable explanation of how to
  use xfig produced figures in LyX? Help file Userguide tells me to check
  for detailed explanation under ImbeddedObjects but there I can´t find any
  detailed explanation.

 Wolfgang,

I can try.

  I have quite a number of xfig produced files which are all exported as
  .eps files and inserted in the LyX document as floats.

That's what I've done, too.

  My aim is to have the text of my fig files in the same font and size as
  the text in the document. This is not the case now.
 
  Do I have to use for all my fig files the xfig -specialtext or is there a
  global command to do that for all files in one run?

I do not know if you can post-process the typeface, but I made the
 Palatino typeface the standard in Xfig images because that's the standard
 typeface I use in all my documents. This produces the same text appearance
 in both body and images.

Rich, thanks: 
What about the size of the text in your fig - eps file in respect to the size 
of the text of the body (that is the document text, I guess?). Do you adjust 
it just by comparing it? Thats what I did so far. But what about the pstex 
and the pstex_t which you get after running xfig -specialtext? I thought this 
is the way to divide the image part of the fig and the text part so that the 
latter can be adjusted (by the program) to the font size of my text (and also 
to include e.g. greek letters as latex etc). If I check my  pstex file, it 
still shows the image and the text, as it was in the normal .fig file. The 
pstex_t file reads like:
\begin{picture}(0,0)%
\includegraphics{S021n.pstex}%
\end{picture}%
\setlength{\unitlength}{3947sp}%
%
\begingroup\makeatletter\ifx\SetFigFontNFSS\undefined%
\gdef\SetFigFontNFSS#1#2#3#4#5{%
  [EMAIL PROTECTED]
  \fontfamily{#3}\fontseries{#4}\fontshape{#5}%
  \selectfont}%
\fi\endgroup%
\begin{picture}(7881,10984)(1694,-10257)
\end{picture}%

perhaps I have to define things (see undefined% in the fifth line)

 I just did not get it yet, some step might be missing (perhaps something in 
the preamble

Wolfgang

  And how exactly do I get it into the document? Is it the pstex or the
  pstex_t file or both? Or is this done internally by LyX? With Enter
  (Einfuegen) File (Datei) external Material I get the fig file but the
  text of the pdf output is not scaled correctly (nor the fonts). Somehow I
  haven't caught the way of entering it.

I've always used Insert - Float - Float Figure, then specified the
 file in the dialog box.

Perhaps I don't understand your concerns well enough.

 Rich


Re: Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann
Am Mittwoch, 25. Juni 2008 13:58 schrieb Abdelrazak Younes:
 Wolfgang Engelmann wrote:
  Could somebody kindly point me to an understandable explanation of how to
  use xfig produced figures in LyX?

 Use the external inset (Inset-File-External Material) and choose the
 XFig template. You should also select preview in the display combo AFAIR.

Thats what I did, Abdel. See also my answer to Rich

Wolfgang
  I am using version 1.5.4 of LyX
  Has 1.5.5 or 1.6 a feature to insert fig files directly and the rest is
  done by the program?

 1.5.5 is the same as 1.5.4 in this regard. 1.6 will save you on choosing
 preview on the display combo, that's all.

 Abdel.


Re: Xfig and LyX

2008-06-25 Thread Rich Shepard

On Wed, 25 Jun 2008, Wolfgang Engelmann wrote:


What about the size of the text in your fig - eps file in respect to the size
of the text of the body (that is the document text, I guess?). Do you adjust
it just by comparing it?


Wolfgang,

  No. I size the text in the figure to the figure (keeping in mind that it
will probably be smaller in the document), and pay no attention to the font
size relative to the text. The image is its own entity and the text should
be scaled to the graphics ... and clarity.


Thats what I did so far. But what about the pstex and the pstex_t which
you get after running xfig -specialtext? I thought this is the way to
divide the image part of the fig and the text part so that the latter can
be adjusted (by the program) to the font size of my text (and also to
include e.g. greek letters as latex etc).


  I've not done this. I create the figures separately, then insert them in
floats. If they're not readable in the pdf, I adjust the text size and try
again. For my purposes, 10pt or 12pt text in the figure is perfectly
readable.

  When I start a new figure, I change the default font (lower right corner
of the bottom) to 'postscript fonts' and select Palatino-Roman. Depending on
how much text will be in the figure, I leave the default size at 12pt (light
text) or reduce it to 10pt (a lot of text). Then I create the figure and
export it as .eps and put it in the document.

HTH,

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Xfig and LyX

2008-06-25 Thread Georg Baum
Wolfgang Engelmann wrote:

 Am Mittwoch, 25. Juni 2008 13:26 schrieb Rich Shepard:

I can try.

  I have quite a number of xfig produced files which are all exported as
  .eps files and inserted in the LyX document as floats.

The external template way is supposed to be easier, since it does the
exporting automatically, so you can't get outdated figures because you
forgot to export.

  Do I have to use for all my fig files the xfig -specialtext or is there
  a global command to do that for all files in one run?

The special flag is a property of each text box that you have to set
individually. AFAIK the -specialtext switch only sets that as default for
new text. If you have a lot of files that you need to convert it would
probably easy to write a small script that does this.

 What about the size of the text in your fig - eps file in respect to the
 size of the text of the body (that is the document text, I guess?). Do you
 adjust it just by comparing it? Thats what I did so far. But what about
 the pstex and the pstex_t which you get after running xfig -specialtext? I
 thought this is the way to divide the image part of the fig and the text
 part so that the latter can be adjusted (by the program) to the font size
 of my text (and also
 to include e.g. greek letters as latex etc). If I check my  pstex file, it
 still shows the image and the text, as it was in the normal .fig file. The
 pstex_t file reads like:

You should not need to worry about pstex_t and friends if you use the
external template. LyX is supposed to create all needed files
automatically, whether you use pdflatex or the traditional DVI. The only
decision you have to make is whether you want to use the special flag or
not: If you use it, the text will be typeset by LaTeX, and you can use
math, own commands that are defined in ERT or the preamble etc. The size
and font would also be adjusted through LaTeX commands. If you do not use
the special flag the text will appear as is in the final document, and you
set the font, size etc. in xfig.

  I just did not get it yet, some step might be missing (perhaps something
  in
 the preamble

You do not need to set anything in the preamble unless you use the xfig
special text flag and inserted nonstandard commands in a textbox of the
xfig file yourself.

  And how exactly do I get it into the document? Is it the pstex or the
  pstex_t file or both? Or is this done internally by LyX? With Enter
  (Einfuegen) File (Datei) external Material I get the fig file but the
  text of the pdf output is not scaled correctly (nor the fonts). Somehow
  I haven't caught the way of entering it.

If the special flag was set you encountered a bug, either in xfig, fig2dev
or in LyX. Otherwise just set the flag, and the text should be typeset by
LaTeX.


Georg



Re: Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann
Am Mittwoch, 25. Juni 2008 18:51 schrieb Georg Baum:
 Wolfgang Engelmann wrote:
  Am Mittwoch, 25. Juni 2008 13:26 schrieb Rich Shepard:
 I can try.
 
   I have quite a number of xfig produced files which are all exported as
   .eps files and inserted in the LyX document as floats.

 The external template way is supposed to be easier, since it does the
 exporting automatically, so you can't get outdated figures because you
 forgot to export.
 with  external template way  you mean the way I and Rich use, i.e. export fig 
to eps and insert in Lyx?

   Do I have to use for all my fig files the xfig -specialtext or is
   there a global command to do that for all files in one run?

 The special flag is a property of each text box that you have to set
 individually. AFAIK the -specialtext switch only sets that as default for
 new text. If you have a lot of files that you need to convert it would
 probably easy to write a small script that does this.

  What about the size of the text in your fig - eps file in respect to the
  size of the text of the body (that is the document text, I guess?). Do
  you adjust it just by comparing it? Thats what I did so far. But what
  about the pstex and the pstex_t which you get after running xfig
  -specialtext? I thought this is the way to divide the image part of the
  fig and the text part so that the latter can be adjusted (by the program)
  to the font size of my text (and also
  to include e.g. greek letters as latex etc). If I check my  pstex file,
  it still shows the image and the text, as it was in the normal .fig file.
  The pstex_t file reads like:

 You should not need to worry about pstex_t and friends if you use the
 external template. LyX is supposed to create all needed files
 automatically, whether you use pdflatex or the traditional DVI. The only
 decision you have to make is whether you want to use the special flag or
 not: If you use it, the text will be typeset by LaTeX, and you can use
 math, own commands that are defined in ERT or the preamble etc. The size
 and font would also be adjusted through LaTeX commands. If you do not use
 the special flag the text will appear as is in the final document, and you
 set the font, size etc. in xfig.
Does it mean, I have to create the fig file after having started 
xfig -specialtext and xfig then puts my text in the pstex_t file with 
location marks etc?
With other words, I have to redo all my fig files and add (or copy, if I find 
out how the localization of the text is done in pstex_t)?

   I just did not get it yet, some step might be missing (perhaps something
   in
  the preamble

 You do not need to set anything in the preamble unless you use the xfig
 special text flag and inserted nonstandard commands in a textbox
textbox is pstex_t?
 of the 
 xfig file yourself.

   And how exactly do I get it into the document? Is it the pstex or the
   pstex_t file or both? Or is this done internally by LyX? With Enter
   (Einfuegen) File (Datei) external Material I get the fig file but the
   text of the pdf output is not scaled correctly (nor the fonts).
   Somehow I haven't caught the way of entering it.

 If the special flag was set you encountered a bug, either in xfig, fig2dev
 or in LyX. Otherwise just set the flag, and the text should be typeset by
 LaTeX.
How does xfig find out the size and font I used in the document, or does it 
make latex take it over?

Will experiment tomorrow a bit, but perhaps clarifying my (stupid) questions 
helps to reduce the experimenting time. Thanks a lot, Georg

Wolfgang


Re: Xfig and LyX

2008-06-25 Thread Abdelrazak Younes

Wolfgang Engelmann wrote:

Am Mittwoch, 25. Juni 2008 13:58 schrieb Abdelrazak Younes:

Wolfgang Engelmann wrote:

Could somebody kindly point me to an understandable explanation of how to
use xfig produced figures in LyX?

Use the external inset (Inset-File-External Material) and choose the
XFig template. You should also select preview in the display combo AFAIR.


Thats what I did, Abdel.


I don't think so. As I said, try Inset-File-External Material

Abdel.



Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann

Could somebody kindly point me to an understandable explanation of how to use 
xfig produced figures in LyX? 
Help file Userguide tells me to check for detailed explanation under 
ImbeddedObjects but there I can´t find any detailed explanation.

I have quite a number of xfig produced files which are all exported as .eps 
files and inserted in the LyX document as floats. 

My aim is to have the text of my fig files in the same font and size as the 
text in the document. This is not the case now.

Do I have to use for all my fig files the xfig -specialtext or is there a 
global command to do that for all files in one run?

 And how exactly do I get it into the document? Is it the pstex or the pstex_t 
file or both? Or is this done internally by LyX? With Enter (Einfuegen) File 
(Datei) external Material I get the fig file but the text of the pdf output 
is not scaled correctly (nor the fonts). Somehow I haven't caught the way of 
entering it. 

I am using version 1.5.4 of LyX
Has 1.5.5 or 1.6 a feature to insert fig files directly and the rest is done 
by the program?

Thanks a lot

Wolfgang


Re: Xfig and LyX

2008-06-25 Thread Rich Shepard

On Wed, 25 Jun 2008, Wolfgang Engelmann wrote:


Could somebody kindly point me to an understandable explanation of how to
use xfig produced figures in LyX? Help file Userguide tells me to check
for detailed explanation under ImbeddedObjects but there I can´t find any
detailed explanation.


Wolfgang,

  I can try.


I have quite a number of xfig produced files which are all exported as .eps
files and inserted in the LyX document as floats.


  That's what I've done, too.


My aim is to have the text of my fig files in the same font and size as the
text in the document. This is not the case now.



Do I have to use for all my fig files the xfig -specialtext or is there a
global command to do that for all files in one run?


  I do not know if you can post-process the typeface, but I made the
Palatino typeface the standard in Xfig images because that's the standard
typeface I use in all my documents. This produces the same text appearance
in both body and images.


And how exactly do I get it into the document? Is it the pstex or the
pstex_t file or both? Or is this done internally by LyX? With Enter
(Einfuegen) File (Datei) external Material I get the fig file but the text
of the pdf output is not scaled correctly (nor the fonts). Somehow I
haven't caught the way of entering it.


  I've always used Insert -> Float -> Float Figure, then specified the file
in the dialog box.

  Perhaps I don't understand your concerns well enough.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863

Re: Xfig and LyX

2008-06-25 Thread Abdelrazak Younes

Wolfgang Engelmann wrote:
Could somebody kindly point me to an understandable explanation of how to use 
xfig produced figures in LyX? 


Use the external inset ("Inset->File->External Material") and choose the 
XFig template. You should also select "preview" in the display combo AFAIR.



I am using version 1.5.4 of LyX
Has 1.5.5 or 1.6 a feature to insert fig files directly and the rest is done 
by the program?


1.5.5 is the same as 1.5.4 in this regard. 1.6 will save you on choosing 
"preview" on the display combo, that's all.


Abdel.



Re: Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann
Am Mittwoch, 25. Juni 2008 13:26 schrieb Rich Shepard:
> On Wed, 25 Jun 2008, Wolfgang Engelmann wrote:
> > Could somebody kindly point me to an understandable explanation of how to
> > use xfig produced figures in LyX? Help file Userguide tells me to check
> > for detailed explanation under ImbeddedObjects but there I can´t find any
> > detailed explanation.
>
> Wolfgang,
>
>I can try.
>
> > I have quite a number of xfig produced files which are all exported as
> > .eps files and inserted in the LyX document as floats.
>
>That's what I've done, too.
>
> > My aim is to have the text of my fig files in the same font and size as
> > the text in the document. This is not the case now.
> >
> > Do I have to use for all my fig files the xfig -specialtext or is there a
> > global command to do that for all files in one run?
>
>I do not know if you can post-process the typeface, but I made the
> Palatino typeface the standard in Xfig images because that's the standard
> typeface I use in all my documents. This produces the same text appearance
> in both body and images.

Rich, thanks: 
What about the size of the text in your fig -> eps file in respect to the size 
of the text of the body (that is the document text, I guess?). Do you adjust 
it just by comparing it? Thats what I did so far. But what about the pstex 
and the pstex_t which you get after running xfig -specialtext? I thought this 
is the way to divide the image part of the fig and the text part so that the 
latter can be adjusted (by the program) to the font size of my text (and also 
to include e.g. greek letters as latex etc). If I check my  pstex file, it 
still shows the image and the text, as it was in the normal .fig file. The 
pstex_t file reads like:
\begin{picture}(0,0)%
\includegraphics{S021n.pstex}%
\end{picture}%
\setlength{\unitlength}{3947sp}%
%
\begingroup\makeatletter\ifx\SetFigFontNFSS\undefined%
\gdef\SetFigFontNFSS#1#2#3#4#5{%
  [EMAIL PROTECTED]
  \fontfamily{#3}\fontseries{#4}\fontshape{#5}%
  \selectfont}%
\fi\endgroup%
\begin{picture}(7881,10984)(1694,-10257)
\end{picture}%

perhaps I have to define things (see undefined% in the fifth line)

 I just did not get it yet, some step might be missing (perhaps something in 
the preamble

Wolfgang
>
> > And how exactly do I get it into the document? Is it the pstex or the
> > pstex_t file or both? Or is this done internally by LyX? With Enter
> > (Einfuegen) File (Datei) external Material I get the fig file but the
> > text of the pdf output is not scaled correctly (nor the fonts). Somehow I
> > haven't caught the way of entering it.
>
>I've always used Insert -> Float -> Float Figure, then specified the
> file in the dialog box.
>
>Perhaps I don't understand your concerns well enough.
>
> Rich


Re: Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann
Am Mittwoch, 25. Juni 2008 13:58 schrieb Abdelrazak Younes:
> Wolfgang Engelmann wrote:
> > Could somebody kindly point me to an understandable explanation of how to
> > use xfig produced figures in LyX?
>
> Use the external inset ("Inset->File->External Material") and choose the
> XFig template. You should also select "preview" in the display combo AFAIR.
>
Thats what I did, Abdel. See also my answer to Rich

Wolfgang
> > I am using version 1.5.4 of LyX
> > Has 1.5.5 or 1.6 a feature to insert fig files directly and the rest is
> > done by the program?
>
> 1.5.5 is the same as 1.5.4 in this regard. 1.6 will save you on choosing
> "preview" on the display combo, that's all.
>
> Abdel.


Re: Xfig and LyX

2008-06-25 Thread Rich Shepard

On Wed, 25 Jun 2008, Wolfgang Engelmann wrote:


What about the size of the text in your fig -> eps file in respect to the size
of the text of the body (that is the document text, I guess?). Do you adjust
it just by comparing it?


Wolfgang,

  No. I size the text in the figure to the figure (keeping in mind that it
will probably be smaller in the document), and pay no attention to the font
size relative to the text. The image is its own entity and the text should
be scaled to the graphics ... and clarity.


Thats what I did so far. But what about the pstex and the pstex_t which
you get after running xfig -specialtext? I thought this is the way to
divide the image part of the fig and the text part so that the latter can
be adjusted (by the program) to the font size of my text (and also to
include e.g. greek letters as latex etc).


  I've not done this. I create the figures separately, then insert them in
floats. If they're not readable in the pdf, I adjust the text size and try
again. For my purposes, 10pt or 12pt text in the figure is perfectly
readable.

  When I start a new figure, I change the default font (lower right corner
of the bottom) to 'postscript fonts' and select Palatino-Roman. Depending on
how much text will be in the figure, I leave the default size at 12pt (light
text) or reduce it to 10pt (a lot of text). Then I create the figure and
export it as .eps and put it in the document.

HTH,

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863


Re: Xfig and LyX

2008-06-25 Thread Georg Baum
Wolfgang Engelmann wrote:

> Am Mittwoch, 25. Juni 2008 13:26 schrieb Rich Shepard:
>>
>>I can try.
>>
>> > I have quite a number of xfig produced files which are all exported as
>> > .eps files and inserted in the LyX document as floats.

The external template way is supposed to be easier, since it does the
exporting automatically, so you can't get outdated figures because you
forgot to export.

>> > Do I have to use for all my fig files the xfig -specialtext or is there
>> > a global command to do that for all files in one run?

The special flag is a property of each text box that you have to set
individually. AFAIK the -specialtext switch only sets that as default for
new text. If you have a lot of files that you need to convert it would
probably easy to write a small script that does this.

> What about the size of the text in your fig -> eps file in respect to the
> size of the text of the body (that is the document text, I guess?). Do you
> adjust it just by comparing it? Thats what I did so far. But what about
> the pstex and the pstex_t which you get after running xfig -specialtext? I
> thought this is the way to divide the image part of the fig and the text
> part so that the latter can be adjusted (by the program) to the font size
> of my text (and also
> to include e.g. greek letters as latex etc). If I check my  pstex file, it
> still shows the image and the text, as it was in the normal .fig file. The
> pstex_t file reads like:

You should not need to worry about pstex_t and friends if you use the
external template. LyX is supposed to create all needed files
automatically, whether you use pdflatex or the traditional DVI. The only
decision you have to make is whether you want to use the special flag or
not: If you use it, the text will be typeset by LaTeX, and you can use
math, own commands that are defined in ERT or the preamble etc. The size
and font would also be adjusted through LaTeX commands. If you do not use
the special flag the text will appear as is in the final document, and you
set the font, size etc. in xfig.

>  I just did not get it yet, some step might be missing (perhaps something
>  in
> the preamble

You do not need to set anything in the preamble unless you use the xfig
special text flag and inserted nonstandard commands in a textbox of the
xfig file yourself.

>> > And how exactly do I get it into the document? Is it the pstex or the
>> > pstex_t file or both? Or is this done internally by LyX? With Enter
>> > (Einfuegen) File (Datei) external Material I get the fig file but the
>> > text of the pdf output is not scaled correctly (nor the fonts). Somehow
>> > I haven't caught the way of entering it.

If the special flag was set you encountered a bug, either in xfig, fig2dev
or in LyX. Otherwise just set the flag, and the text should be typeset by
LaTeX.


Georg



Re: Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann
Am Mittwoch, 25. Juni 2008 18:51 schrieb Georg Baum:
> Wolfgang Engelmann wrote:
> > Am Mittwoch, 25. Juni 2008 13:26 schrieb Rich Shepard:
> >>I can try.
> >>
> >> > I have quite a number of xfig produced files which are all exported as
> >> > .eps files and inserted in the LyX document as floats.
>
> The external template way is supposed to be easier, since it does the
> exporting automatically, so you can't get outdated figures because you
> forgot to export.
 with  external template way  you mean the way I and Rich use, i.e. export fig 
to eps and insert in Lyx?
>
> >> > Do I have to use for all my fig files the xfig -specialtext or is
> >> > there a global command to do that for all files in one run?
>
> The special flag is a property of each text box that you have to set
> individually. AFAIK the -specialtext switch only sets that as default for
> new text. If you have a lot of files that you need to convert it would
> probably easy to write a small script that does this.
>
> > What about the size of the text in your fig -> eps file in respect to the
> > size of the text of the body (that is the document text, I guess?). Do
> > you adjust it just by comparing it? Thats what I did so far. But what
> > about the pstex and the pstex_t which you get after running xfig
> > -specialtext? I thought this is the way to divide the image part of the
> > fig and the text part so that the latter can be adjusted (by the program)
> > to the font size of my text (and also
> > to include e.g. greek letters as latex etc). If I check my  pstex file,
> > it still shows the image and the text, as it was in the normal .fig file.
> > The pstex_t file reads like:
>
> You should not need to worry about pstex_t and friends if you use the
> external template. LyX is supposed to create all needed files
> automatically, whether you use pdflatex or the traditional DVI. The only
> decision you have to make is whether you want to use the special flag or
> not: If you use it, the text will be typeset by LaTeX, and you can use
> math, own commands that are defined in ERT or the preamble etc. The size
> and font would also be adjusted through LaTeX commands. If you do not use
> the special flag the text will appear as is in the final document, and you
> set the font, size etc. in xfig.
Does it mean, I have to create the fig file after having started 
xfig -specialtext and xfig then puts my text in the pstex_t file with 
location marks etc?
With other words, I have to redo all my fig files and add (or copy, if I find 
out how the localization of the text is done in pstex_t)?
>
> >  I just did not get it yet, some step might be missing (perhaps something
> >  in
> > the preamble
>
> You do not need to set anything in the preamble unless you use the xfig
> special text flag and inserted nonstandard commands in a textbox
textbox is pstex_t?
> of the 
> xfig file yourself.
>
> >> > And how exactly do I get it into the document? Is it the pstex or the
> >> > pstex_t file or both? Or is this done internally by LyX? With Enter
> >> > (Einfuegen) File (Datei) external Material I get the fig file but the
> >> > text of the pdf output is not scaled correctly (nor the fonts).
> >> > Somehow I haven't caught the way of entering it.
>
> If the special flag was set you encountered a bug, either in xfig, fig2dev
> or in LyX. Otherwise just set the flag, and the text should be typeset by
> LaTeX.
How does xfig find out the size and font I used in the document, or does it 
make latex take it over?

Will experiment tomorrow a bit, but perhaps clarifying my (stupid) questions 
helps to reduce the experimenting time. Thanks a lot, Georg

Wolfgang


Re: Xfig and LyX

2008-06-25 Thread Abdelrazak Younes

Wolfgang Engelmann wrote:

Am Mittwoch, 25. Juni 2008 13:58 schrieb Abdelrazak Younes:

Wolfgang Engelmann wrote:

Could somebody kindly point me to an understandable explanation of how to
use xfig produced figures in LyX?

Use the external inset ("Inset->File->External Material") and choose the
XFig template. You should also select "preview" in the display combo AFAIR.


Thats what I did, Abdel.


I don't think so. As I said, try Inset->File->External Material

Abdel.



Problems with XFig and LyX 1.4.0

2006-03-10 Thread Valerio Trigari

Hi Everyone!

I just installed the new version of LyX and I discovered that it can't 
generate the pdf (with pdflatex) when pictures are drawn with XFig.

What I did is:

1) Insert - Float - Figure
2) Insert - File - External Material - Template Xfig

When I compile the document I get the following error message:

Undefined control sequence:

 \epsfig
   
{file=0_Users_valerio_Documents_PhD_Report2003_figures_Schroed}%
The control sequence at the end of the top line of your error message 
was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' 
and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and 
I'll forget about whatever was undefined.


I also get other error messages: Missing $ inserted, Extra }, or 
forgotten $, etc...


The same file works fine on LyX 1.3.7. Do you have any idea how to fix 
this problem?


Thank you very much for your help!

Valerio



I don't like it and I'm sorry I ever had anything to do with it.  (E. 
Schroedinger, talking about Born's Probability Wave Interpretation of 
Quantum Mechanics)


Valerio Trigari, AMRSC
Computational Photochemistry Group

Department of Chemistry
South Kensington Campus
Imperial College London
London SW7 2AZ, UK

e-mail: [EMAIL PROTECTED]
web: http://www.gaussian.com/g_people/valerio.htm

Problems with XFig and LyX 1.4.0

2006-03-10 Thread Valerio Trigari

Hi Everyone!

I just installed the new version of LyX and I discovered that it can't 
generate the pdf (with pdflatex) when pictures are drawn with XFig.

What I did is:

1) Insert - Float - Figure
2) Insert - File - External Material - Template Xfig

When I compile the document I get the following error message:

Undefined control sequence:

 \epsfig
   
{file=0_Users_valerio_Documents_PhD_Report2003_figures_Schroed}%
The control sequence at the end of the top line of your error message 
was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' 
and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and 
I'll forget about whatever was undefined.


I also get other error messages: Missing $ inserted, Extra }, or 
forgotten $, etc...


The same file works fine on LyX 1.3.7. Do you have any idea how to fix 
this problem?


Thank you very much for your help!

Valerio



I don't like it and I'm sorry I ever had anything to do with it.  (E. 
Schroedinger, talking about Born's Probability Wave Interpretation of 
Quantum Mechanics)


Valerio Trigari, AMRSC
Computational Photochemistry Group

Department of Chemistry
South Kensington Campus
Imperial College London
London SW7 2AZ, UK

e-mail: [EMAIL PROTECTED]
web: http://www.gaussian.com/g_people/valerio.htm

Problems with XFig and LyX 1.4.0

2006-03-10 Thread Valerio Trigari

Hi Everyone!

I just installed the new version of LyX and I discovered that it can't 
generate the pdf (with pdflatex) when pictures are drawn with XFig.

What I did is:

1) Insert -> Float -> Figure
2) Insert -> File -> External Material -> Template Xfig

When I compile the document I get the following error message:

Undefined control sequence:

 \epsfig
   
{file=0_Users_valerio_Documents_PhD_Report2003_figures_Schroed}%
The control sequence at the end of the top line of your error message 
was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' 
and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and 
I'll forget about whatever was undefined.


I also get other error messages: Missing $ inserted, Extra }, or 
forgotten $, etc...


The same file works fine on LyX 1.3.7. Do you have any idea how to fix 
this problem?


Thank you very much for your help!

Valerio



"I don't like it and I'm sorry I ever had anything to do with it."  (E. 
Schroedinger, talking about Born's Probability Wave Interpretation of 
Quantum Mechanics)


Valerio Trigari, AMRSC
Computational Photochemistry Group

Department of Chemistry
South Kensington Campus
Imperial College London
London SW7 2AZ, UK

e-mail: [EMAIL PROTECTED]
web: http://www.gaussian.com/g_people/valerio.htm

Re: xfig and LyX

2002-10-25 Thread Jean-Marc Lasgouttes
 Nirmal == Nirmal Govind [EMAIL PROTECTED] writes:

  Maybe your problem is that you do not include the color package
 (\usepackage{color} in Preamble)
 

Nirmal Yes, that was it!! Thanks a lot.. the problem with the crash
Nirmal in 1.3.0cvs (when including a .fig directly using external
Nirmal material) still remains.. so Wayan, I'm attaching a .fig file
Nirmal here and this is the error that 1.3.0cvs gives when it
Nirmal crashes:

This problem should be fixed now.

JMarc



Re: xfig and LyX

2002-10-25 Thread Andre Poenitz
On Fri, Oct 25, 2002 at 02:47:35PM +0200, Jean-Marc Lasgouttes wrote:
 This problem should be fixed now.

It is still crashing. Insert an ExternalInset in a new doc, change type
to Xfig, do not enter a name. Save, reload. Press Shift-End to mark
everything, Press Del. Boom. 


#0  0x0841842d in boost::re_detail::_priv_match_datachar const *,
allocatorchar ::_priv_match_data (this=0xbfffe178, m=0xbfffe3a4, 
a=0x8772be8 $Contents(\.asc\)ragraph: 0, b=0x8772bf9 ragraph: 0, 
states=0)
at ../../../lyx-devel/boost/boost/regex/detail/regex_match.hpp:219
#1  0x0841b347 in bool boost::regex_matchchar const *, allocatorchar,
char, boost::regex_traitschar, allocatorchar  (
first=0x8772be8 $Contents(\.asc\)ragraph: 0, 
last=0x8772bf9 ragraph: 0, m=0xbfffe3a4, e=0xbfffe35c, flags=0)
at ../../../lyx-devel/boost/boost/regex/detail/regex_match.hpp:1706
#2  0x08401cbb in regexMatch (a=0xbfffe404, pattern=0xbfffe410)
at ../../../lyx-devel/boost/boost/regex/detail/regex_match.hpp:1757
#3  0x083f14e9 in ReplaceEnvironmentPath (path=0xbfffe48c)
at ../../../lyx-devel/src/support/filetools.C:828
#4  0x0825a65b in InsetExternal::doSubstitution (this=0x8796158, 
buffer=0x8789858, s=0x878f974)
at ../../../lyx-devel/src/insets/insetexternal.C:248
#5  0x08258b86 in InsetExternal::write (this=0x8796158, format=0xbfffe50c, 
buf=0x8789858, os=0xbfffe554)
at ../../../lyx-devel/src/insets/insetexternal.C:151
#6  0x08258e94 in InsetExternal::ascii (this=0x8796158, buf=0x8789858, 
os=0xbfffe554) at ../../../lyx-devel/src/insets/insetexternal.C:165
#7  0x0817fae7 in Paragraph::asString (this=0x87960e8, buffer=0x8789858, 




  1   2   >