> On Wed, 24 Nov 1999, Florian Cramer wrote:
> > Am Tue, 23.Nov.1999 um 13:53:34 +0100 schrieb Lars Gullik Bj=F8nnes:
> > Be aware though that pdflatex currently doesn't handle eps graphics so th=
> at
> > all included graphics have to be converted to pdf first... would be great=
> if
> > LyX could handle this as a background job...
> >=20
>
> So why not use ps2pdf (okay, you have to create a ps-file first...). This
> is what I do now (export as ps, and then create a pdf-file by ps2pdf). It
> works very well (especially when using gs 5.50), but it would be great if
> you can just click on Export...as PDF and that's it (I know, sometimes
> I'm a lazy guy :-).
>
I have been investigating producing both .ps and .pdf output from the same
latex source (in order to provide both versions of lecture notes etc. on my
web page). The important issues seem to be:
* use \includegraphics from the "graphics" or "graphicx" latex2e package to
include graphics.
* Important: do not give the extension (.eps) of the graphics file in the
\includegraphics command. THIS NEEDS A CHANGE IN LYX: the .eps extension
should not be stored in the .lyx file. When you browse for a graphics file it
should remove the .eps extension from the filename before putting it in the
.lyx file but add it transparently when calling ghostscript to render the
image for the screen.
* to produce .dvi or .ps output run latex + dvips as usual
* to produce .pdf output run "epstopdf" on each graphics file and the run
pdflatex.
In my experience producing .ps output first and the running ps2pdf does not
produce satisfactory output since the .pdf file then contains bitmapped fonts.
Running pdflatex includes the standard tex fonts as Type1 postscript fonts
(outline fonts) resulting in much better appearance on the screen with Adobe
Acrobat Reader.
I have the whole process automated with Makefiles and so it should not be
difficult to automate it within lyx as well.
All the best,
Horst Kausch