Helmut Hauser wrote:
Hi everybody,

I just noticed a weird behaviour of Lyx 1.4.1 (running
on Fedora).

If I try to export the file as LaTeX it offers me to
export it to "somefigure.eps" and asks me if I will
overwrite it. somefigure.eps is a figure (in .eps format) I am using
in my Lyx file and which is in the same directory. My
lyxfile.tex doesn't exist yet.

I just wanted to ask if somebody has encountered the
problem too and maybe has to offer a solution.
Otherwise I will report it as a bug.

Thanks a lot,
- helmut


I'm not 100% sure of my facts here, so I was waiting for someone better informed to answer, but here goes ...

LyX does various conversions of graphics files to get them into formats compatible with the desired document output format. In previous versions, these conversions were lost when you exported to LaTeX, and so the LaTeX document you got might not compile to what you were expecting. In the current version, the converted graphics files (which reside in a temporary directory while you're running LyX) are copied into the same directory where the original document sits 9and where the exported .tex file will be written). Since there's a chance that you might have used the same names for other image files, LyX checks before writing and asks if you want to overwrite exiting files. Apparently, it does this even if no conversion occurred (for instance, if the source image file was EPS and goes directly into the document unconverted).

The overwriting prompt should be harmless but annoying. Assuming that no processing was done to the EPS file, you should be safe saying no to the overwrite request, and of course you'll know if it was correct when you compile the document. I don't see anything about this in bugzilla, so it might not hurt to report it just to get it on the developers' to-do list.

/Paul

Reply via email to