Hi!
Does anyone knows what LyX lunches to produce PDF? I want to know the exact procedure. Why?
I have an LyX document with EPS figure. When I export it to PS and then create a PDF with ps2pdf picture gets ugly when previewing PDF in acrobat. On the other hand picture is nice if PDF is exported directly from LyX.
Lyx provide three alternative ways:
1. PDF Lyx create a .tex, runs latex on that to get a dvi, runs dvips on that to get a .ps, and finally converts the postscript to pdf this is a long way, but well tested as it is the same sequence used for printing postscript. When I did this with my book I got a book that acroread for windows choked on. Everything was fine under linux though.
2. PDF (dvipdfm) Lyx creates a .tex, runs latex on that to get a dvi, runs dvpidfm on that to convert the .dvi to pdf. similiar to the above, but we skip the postscript generation. This one worked fine for me.
3. PDF (pdflatex)
Lyx creates a .tex, runs pdflatex on that and gets a .pdf immediately.
This is much faster than the other alternatives, as it eliminates all the
extra steps. The current version (1.3.3)
may get problems with some external insets, such as xfig. That is usually fixable by changing
the external inset, but then it won't work with postscript generation and
therefore not with the normal printing. The .pdf's are great though,
so you can print by printing the .pdf from acroread.
I use this most of the time now, and the external inset problem is
solved in the upcoming lyx 1.4.0 anyway.
pdflatex doesn't like to include .eps graphichs, but you can convert to
.pdf graphichs and include that instead.
Helge Hafting
