Helge Hafting wrote: > Bo Peng wrote: >>I understand the logic here but doing image format conversions during >>latex export is a bit strange to me. Also, I think 'do not overwrite' >> >> > "Export latex" is supposed to export something that is ready > for a latex run. I.e. you should be able to run "latex file.tex" > and it should work. But it won't work with pdf figures, > so a conversion is necessary unless: > * You have the .eps files, but in this case they likely > have an older timestamp, fooling lyx into thinking that > the pdf "originals" have been updated > * You don't plan on running "latex". But this function is > for latex. It'd be nice having an "export pdflatex" that > makes a pdflatex-ready file instead. Such an export would > accept your pdf figures as-is.
This is already filed: http://bugzilla.lyx.org/show_bug.cgi?id=2107 (and probably easy to implement, should we target it for 1.4.1?) >>should be the default behavior here since existing files should have >>better quality than converted files. In my case, the .pdf files are >>converted from .eps files. Then you should include the original .eps files in LyX and let LyX do the conversion to pdf. That would work in all cases (except that it would not do the pdf conversion on export->latex, but this is bug 2107) What is maybe missing is an option to not overwrite any file, but export the main document nevertheless, but I am not sure whether it is really needed. > The problem is clear. I don't think the solution is to change the > latex export though, but to give the user the "export pdflatex" > option. Which exists internally anyway - it is used as a first step > whenever you do "export pdf (pdflatex)". I agree. Georg