On Thu, Feb 14, 2002 at 08:31:26AM +0100, Jean-Pierre.Chretien wrote: > >>Date: Wed, 13 Feb 2002 19:47:57 +0100 > >>From: Koen Martens <[EMAIL PROTECTED]> > >>To: Janus Sandsgaard <[EMAIL PROTECTED]> > >>Cc: [EMAIL PROTECTED] > >>Subject: Re: Screen shots in LyX - (or: png, jpeg into LyX-documents) > >> > >>On Wed, Feb 13, 2002 at 06:47:32PM +0100, Janus Sandsgaard wrote: > >>> > >>> Screen shots in LyX - (or: png, jpeg into LyX-documents) > >>> > >>> I am writing a manual using LyX (and I love it!), and need to include some > >>> screen shots in my LyX-document. What is the most easy way to do this? > >>> > >>> I am on a machine primary running KDE with Screen Capture which delivers > >>> png. > >> > >>I would suggesting using kview to load the png file. Then save the file from > kview as 'encapsulated postscript' or eps. Next, you would insert the figure in > lyx using Insert --> Figure --> Inlined EPS. Then one would interactivelly > select the saved .eps (or encapsulated postscript file), and set appropriate > width and height and other options. > > This conversion produces bitmapped eps, which does not support very > well resizing when the picture is vector-like as a screenshot. > My own experience leads to get the right size before > conversion and insert eps as default. Thanks for pointing that out. I usually have eps instantly available and usually use xv for conversion if this is not the case. But it seems xv is usually not availble on kde based distributions so i suggested kview. Anyway, on the point of vector orientation with screenshots. This depends on the nature of the screenshot. If the screenshot includes lots of fancy menu's and icons and other graphical formatting, it might be more bitmap oriented i'd argue.
Anyway, it is safe to conclude there are many ways of converting (or even obtaining) screenshots and the best way depends on your application. A question to conclude this mail: what is the difference between the two options one gets when insert->figure'ing ? Regards, Koen Martens > > On the other side, you may use pdflatex, but it > needs currently a bit of hacking (tex2pdf converts eps back to pdf, > which is a bit awkward if the png is available), so you must > call it in debug mode and destroy pdf images to be sure that the original > pngs are loaded. > > I didn't check if conversion fron png tp pdf was OK, may be it's a > good idea: > mogrify -format eps *.png > ... a few seconds for time stamping > mogrify -format pdf *.png > > (for a document tree > find . -name '*.png' -exec mogrify -format eps {} \; > ... > find . -name '*.png' -exec mogrify -format pdf {} \; > ) > > Then normal lyx use for layout control using eps, and hopefully > tex2pdf will take the mogrified pdf instead of converting back > due to the relative age of pdf and eps version of the images. > > I've not much time to check this, if anyone trying it would > keep us posted... > -- > Jean-Pierre > > > > -- [EMAIL PROTECTED] (Koen Martens) http://www.metro.cx/