Herbert Voss wrote: > > Angus, I think Rob means that file->export->latex should not > write the original filename. for example: > \includegraphics[...]{my.agr} > is the original latex code. Rob wants it as my.eps in the > exported texfile.
Yes, indeed, that's what I was referring to. Within LyX everything is fine. It's the exported LaTeX file that can never be processed by LaTeX because of the unknown format of the exported graphics filename. I'm addressing two obstacles here: 1) because LyX has such a flexibel graphics interface being able to load all sorts of non-eps formats (= very good), exporting that to LaTeX will *ALWAYS* create a broken LaTeX file with non-eps files (= very bad). I suppose you don't want that and the export routine should remedy that. 2) The current setup requires that the user modifies the exported LaTeX file AND creates the eps files manually. The latter is ok, let the user do that. However, the first step should at all cost be avoided. Not only because of the top two lines of the LaTeX files say: %% LyX 1.2 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. How can you say that when you always create a broken LaTeX file?!?! All you need to do, is replace all graphics filenames of the form "[myfigure].[non-eps-extension]" by "[myfigure].eps". What do you think? Regards, Rob.