Re: importing material into figures

2005-11-08 Thread Roy Schestowitz

_/ On Tue 08 Nov 2005 17:32:49 GMT, [hagit lev] wrote : \_


Hi
I have lots of material - such as Surfer maps, Origin graphs etc. and 
I wondered if I can import them directly to Lyx or need to export 
them first to jpeg and only then import ?



Although  this depends on various settings (e.g. platform, software),  you
may have to do a bunch of conversions first. I tend to favour the PNG for-
mat,  but  have used the vector graphics format, namely EPS  (encapsulated
PostScript)  where  suitable, i.e. when data was not of a fixed size.  For
image conversions I recommend ImageMagick, although the GIMP would be good
if  you  dislike  the command line. It is also available for  all  popular
platforms.


Cause I tried to export surfer to EMF, but the result in the DVI file 
was a huge picture, and when I tried to minimize it (scaling it to 
only 20% in the figure dialog box) the quality was horrible.
Oh, and I did read the intro and tutorial and went over almost all 
the other guides. nice humor:)

Thanks
Hagit



Re-scaling of images, especially if the formats are atypical, leads to bad
results.  Graphical  toolboxes handle resampling better, so I suggest  you
convert the images first.

Hope it helps,

Roy

--
Roy S. Schestowitz
http://Schestowitz.com



Re: importing material into figures

2005-11-08 Thread Georg Baum
Am Dienstag, 8. November 2005 18:32 schrieb hagit lev:
 Hi
 I have lots of material - such as Surfer maps, Origin graphs etc. and I 
 wondered if I can import them directly to Lyx or need to export them 
 first to jpeg and only then import ?

You can import any figure material directly if you have a tool that can 
convert it (from the command line) to a format that LyX knows of. You 
then need to define this tool as a converter. The Wiki and Customization 
guide tell you how this works.
If such a tool is not available you need to export the figures. I 
recommend the following formats:
EPS or PDF for vector graphics (i. e. some graphs)
PNG for bitmap figures with a small number of colors (e. g. scanned 
material)
JPEG for bitmals with a lot of colors (e. g. photos), but keep in mind 
that the JPEG format is lossy

 Cause I tried to export surfer to EMF, but the result in the DVI file 
 was a huge picture, and when I tried to minimize it (scaling it to only 
 20% in the figure dialog box) the quality was horrible.

In  theory EMF would work well for vector graphics. In practice the EMF - 
EPS converters available on Linux don't work well enough (because EMF and 
WMF formats are no real file formats, but simply a recording of the 
windows API calls that are needed to produce the figure on screen or on 
printer). The situation might be better if you are on windows, I have 
been told that better converters are available on that OS. You might get 
good results with EMF if you specify such a tool as EMF - EPS converter.


Georg



Re: importing material into figures

2005-11-08 Thread Paul A. Rubin

hagit lev wrote:

Hi
I have lots of material - such as Surfer maps, Origin graphs etc. and I 
wondered if I can import them directly to Lyx or need to export them 
first to jpeg and only then import ?
Cause I tried to export surfer to EMF, but the result in the DVI file 
was a huge picture, and when I tried to minimize it (scaling it to only 
20% in the figure dialog box) the quality was horrible.
Oh, and I did read the intro and tutorial and went over almost all the 
other guides. nice humor:)

Thanks
Hagit


There are two separate issues to deal with:  importing graphics in a way 
that allows them to be correctly presented in the final document (DVI, 
PDF, whatever); and importing them in a way that allows them to be 
correctly displayed within the LyX editing window.  The latter is not a 
prerequisite to the former -- it's entirely possible for LyX to have no 
idea how to display an image that appears correctly in the final output. 
 In fact, I typically turn off image displays in LyX to save CPU cycles.


You might have a look at the following Wiki page: 
http://wiki.lyx.org/LyX/FiguresInLyX.  As noted near the top, the final 
output can contain any image format that LaTeX can correctly ingest. 
The bulk of the Wiki page is devoted to questions of what formats LyX 
can display in the edit screen.


You might also have a look at 
http://tex.loria.fr/graph-pack/epslatex.pdf, which discusses what 
formats LaTeX can process and how conversions to them occur.


Paul




Re: importing material into figures

2005-11-08 Thread Roy Schestowitz

_/ On Tue 08 Nov 2005 17:32:49 GMT, [hagit lev] wrote : \_


Hi
I have lots of material - such as Surfer maps, Origin graphs etc. and 
I wondered if I can import them directly to Lyx or need to export 
them first to jpeg and only then import ?



Although  this depends on various settings (e.g. platform, software),  you
may have to do a bunch of conversions first. I tend to favour the PNG for-
mat,  but  have used the vector graphics format, namely EPS  (encapsulated
PostScript)  where  suitable, i.e. when data was not of a fixed size.  For
image conversions I recommend ImageMagick, although the GIMP would be good
if  you  dislike  the command line. It is also available for  all  popular
platforms.


Cause I tried to export surfer to EMF, but the result in the DVI file 
was a huge picture, and when I tried to minimize it (scaling it to 
only 20% in the figure dialog box) the quality was horrible.
Oh, and I did read the intro and tutorial and went over almost all 
the other guides. nice humor:)

Thanks
Hagit



Re-scaling of images, especially if the formats are atypical, leads to bad
results.  Graphical  toolboxes handle resampling better, so I suggest  you
convert the images first.

Hope it helps,

Roy

--
Roy S. Schestowitz
http://Schestowitz.com



Re: importing material into figures

2005-11-08 Thread Georg Baum
Am Dienstag, 8. November 2005 18:32 schrieb hagit lev:
 Hi
 I have lots of material - such as Surfer maps, Origin graphs etc. and I 
 wondered if I can import them directly to Lyx or need to export them 
 first to jpeg and only then import ?

You can import any figure material directly if you have a tool that can 
convert it (from the command line) to a format that LyX knows of. You 
then need to define this tool as a converter. The Wiki and Customization 
guide tell you how this works.
If such a tool is not available you need to export the figures. I 
recommend the following formats:
EPS or PDF for vector graphics (i. e. some graphs)
PNG for bitmap figures with a small number of colors (e. g. scanned 
material)
JPEG for bitmals with a lot of colors (e. g. photos), but keep in mind 
that the JPEG format is lossy

 Cause I tried to export surfer to EMF, but the result in the DVI file 
 was a huge picture, and when I tried to minimize it (scaling it to only 
 20% in the figure dialog box) the quality was horrible.

In  theory EMF would work well for vector graphics. In practice the EMF - 
EPS converters available on Linux don't work well enough (because EMF and 
WMF formats are no real file formats, but simply a recording of the 
windows API calls that are needed to produce the figure on screen or on 
printer). The situation might be better if you are on windows, I have 
been told that better converters are available on that OS. You might get 
good results with EMF if you specify such a tool as EMF - EPS converter.


Georg



Re: importing material into figures

2005-11-08 Thread Paul A. Rubin

hagit lev wrote:

Hi
I have lots of material - such as Surfer maps, Origin graphs etc. and I 
wondered if I can import them directly to Lyx or need to export them 
first to jpeg and only then import ?
Cause I tried to export surfer to EMF, but the result in the DVI file 
was a huge picture, and when I tried to minimize it (scaling it to only 
20% in the figure dialog box) the quality was horrible.
Oh, and I did read the intro and tutorial and went over almost all the 
other guides. nice humor:)

Thanks
Hagit


There are two separate issues to deal with:  importing graphics in a way 
that allows them to be correctly presented in the final document (DVI, 
PDF, whatever); and importing them in a way that allows them to be 
correctly displayed within the LyX editing window.  The latter is not a 
prerequisite to the former -- it's entirely possible for LyX to have no 
idea how to display an image that appears correctly in the final output. 
 In fact, I typically turn off image displays in LyX to save CPU cycles.


You might have a look at the following Wiki page: 
http://wiki.lyx.org/LyX/FiguresInLyX.  As noted near the top, the final 
output can contain any image format that LaTeX can correctly ingest. 
The bulk of the Wiki page is devoted to questions of what formats LyX 
can display in the edit screen.


You might also have a look at 
http://tex.loria.fr/graph-pack/epslatex.pdf, which discusses what 
formats LaTeX can process and how conversions to them occur.


Paul




Re: importing material into figures

2005-11-08 Thread Roy Schestowitz

_/ On Tue 08 Nov 2005 17:32:49 GMT, [hagit lev] wrote : \_


Hi
I have lots of material - such as Surfer maps, Origin graphs etc. and 
I wondered if I can import them directly to Lyx or need to export 
them first to jpeg and only then import ?



Although  this depends on various settings (e.g. platform, software),  you
may have to do a bunch of conversions first. I tend to favour the PNG for-
mat,  but  have used the vector graphics format, namely EPS  (encapsulated
PostScript)  where  suitable, i.e. when data was not of a fixed size.  For
image conversions I recommend ImageMagick, although the GIMP would be good
if  you  dislike  the command line. It is also available for  all  popular
platforms.


Cause I tried to export surfer to EMF, but the result in the DVI file 
was a huge picture, and when I tried to minimize it (scaling it to 
only 20% in the figure dialog box) the quality was horrible.
Oh, and I did read the intro and tutorial and went over almost all 
the other guides. nice humor:)

Thanks
Hagit



Re-scaling of images, especially if the formats are atypical, leads to bad
results.  Graphical  toolboxes handle resampling better, so I suggest  you
convert the images first.

Hope it helps,

Roy

--
Roy S. Schestowitz
http://Schestowitz.com



Re: importing material into figures

2005-11-08 Thread Georg Baum
Am Dienstag, 8. November 2005 18:32 schrieb hagit lev:
> Hi
> I have lots of material - such as Surfer maps, Origin graphs etc. and I 
> wondered if I can import them directly to Lyx or need to export them 
> first to jpeg and only then import ?

You can import any figure material directly if you have a tool that can 
convert it (from the command line) to a format that LyX knows of. You 
then need to define this tool as a converter. The Wiki and Customization 
guide tell you how this works.
If such a tool is not available you need to export the figures. I 
recommend the following formats:
EPS or PDF for vector graphics (i. e. some graphs)
PNG for bitmap figures with a small number of colors (e. g. scanned 
material)
JPEG for bitmals with a lot of colors (e. g. photos), but keep in mind 
that the JPEG format is lossy

> Cause I tried to export surfer to EMF, but the result in the DVI file 
> was a huge picture, and when I tried to minimize it (scaling it to only 
> 20% in the figure dialog box) the quality was horrible.

In  theory EMF would work well for vector graphics. In practice the EMF -> 
EPS converters available on Linux don't work well enough (because EMF and 
WMF formats are no real file formats, but simply a recording of the 
windows API calls that are needed to produce the figure on screen or on 
printer). The situation might be better if you are on windows, I have 
been told that better converters are available on that OS. You might get 
good results with EMF if you specify such a tool as EMF -> EPS converter.


Georg



Re: importing material into figures

2005-11-08 Thread Paul A. Rubin

hagit lev wrote:

Hi
I have lots of material - such as Surfer maps, Origin graphs etc. and I 
wondered if I can import them directly to Lyx or need to export them 
first to jpeg and only then import ?
Cause I tried to export surfer to EMF, but the result in the DVI file 
was a huge picture, and when I tried to minimize it (scaling it to only 
20% in the figure dialog box) the quality was horrible.
Oh, and I did read the intro and tutorial and went over almost all the 
other guides. nice humor:)

Thanks
Hagit


There are two separate issues to deal with:  importing graphics in a way 
that allows them to be correctly presented in the final document (DVI, 
PDF, whatever); and importing them in a way that allows them to be 
correctly displayed within the LyX editing window.  The latter is not a 
prerequisite to the former -- it's entirely possible for LyX to have no 
idea how to display an image that appears correctly in the final output. 
 In fact, I typically turn off image displays in LyX to save CPU cycles.


You might have a look at the following Wiki page: 
http://wiki.lyx.org/LyX/FiguresInLyX.  As noted near the top, the final 
output can contain any image format that LaTeX can correctly ingest. 
The bulk of the Wiki page is devoted to questions of what formats LyX 
can display in the edit screen.


You might also have a look at 
http://tex.loria.fr/graph-pack/epslatex.pdf, which discusses what 
formats LaTeX can process and how conversions to them occur.


Paul