>>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.

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




Reply via email to