Following the very useful ideas already given in the list,
I began writing LaTeX stuff to be able to create pdf
as well as dvi from the .tex source (mostly to deal
correctly with bitmapped vector-like images, screen captures
mostly).
So in LaTeX I can easily shift from one compilation to the other by
- wiping out the .eps extension in the \includegraphics commands,
- setting an pdftex option to the class.
The commutation from latex to pdflatex is controlled in the lyxrc file,
It would be nicer to have a « View PDF » item in the File menu,
which would add the required pdftex option on the fly.
In addition, the figure rendering is lost for
jpeg, png or pdf, so that a (low quality) eps
of these is needed for the sake of lyx interface.
It would be nicer as well if the figure inclusion code
dropped the .eps suffix, not needed by graphicx
in plain latex compilation.
In fact, it is very easy to write a perl script which
pdflatexes the exported tex file, adding the pdf tex
option and filtering out the extensions, but
it's YAPF (Yet Another Perl Filter) for a function which
would be easy to implement...
Regards
--
Jean-Pierre