Georg Baum wrote:

> Am Montag, 10. Mai 2004 15:49 schrieb Angus Leeming:
>> > What do you think? Should I use the hack described above and
>> > collect the data in latex(), or should I do it in validate(), and
>> > how should I pass the files to Exporter::Export()?
>> 
>> However you think it should be done best.
> 
> Here comes the patch, I did it the easy way. It fixes bug 1244, but
> has one problem concerning external insets: It copies every file,
> even if it is a .tex file and therefore the content is already in
> the .dvi file. I am not sure how to solve this. First I thought this
> should depend on the format of the converted file (only copy it if
> it is some kind of ps), but then it is perfectly legal to input a
> .eps file verbatim (maybe in a tutorial about eps), and in this case
> it does not need to be copied either. The only clean solution that I
> can imagine is to introduce a switch in the external template that
> tells wether a file is "input like" or "includegraphics like",
> because the template is the only place where this is known. Any
> other ideas?

This is a good idea I think. We'd need to find a more obvious naming
scheme for the idea though.

> Apart from the external inset problem above, is the patch ok?

Looks good to me. Question: what happens if you run 
        lyx -e latex foo.lyx

from the command line and foo.tex exists already. Does checkOverwrite
work as expected? Maybe we should add a '-f' option like 'cp' and
'mv'?

-- 
Angus

Reply via email to