On 02Jun99 Kees van Wijk <[EMAIL PROTECTED]> wrote: > Subject: image support: only ps and eps? > > In lyx I only can insert ps or eps images. > This is for example a problem when I use ps2pdf to convert the ps output to > pdf format. > > Is there a way to insert different image formats directly in lyx and view > them in postscript preview? LyX uses to ghostscript display the figures it includes. Ghostscript 5.03 (and later) can also handle eps.gz and pdf (!) files. In order to make LyX support the insertion of these file formats as well, it's therefore sufficient to patch figinset.C . Three changes (see appended diff list) are needed: (a) remove the scaling command from the postscript program given to gs together with the figure file, because this way of scaling is ignored when including pdf files (rotation also doesn't work, I'm afraid). (b) Instead, rescale via the ghostview window property; this seems to fix another bug as well, see the warning comment in the original code. (c) Let LyX try to get the bounding box from a .bb file (used by dvipdfm for pdf figures) or .eps.bb files (dvips, eps.gz figures) before searching through the actual figure file. For adapting printing and previewing you can try to change your lyxrc file according to the dvi converter and previewer you'd like to use. However, I haven't tried to do so yet, because I don't use these functions. Cheers, Ole -- [EMAIL PROTECTED] PGP key ID 065AF6D5 [EMAIL PROTECTED] phone/fax: +49 40 8998-3153 / 8998-3092 +972 8 934-2248 / 936-2745