On Monday 14 August 2006 19:30, Georg Baum wrote:

> This is wrong. InputFormat takes a format name as defined in the
> preferences, not the file extension. It will work if you change this to
>
>          InputFormat "tgif"
>
>
> Right now your template is equivalent to including a tgif file as graphic.

Ok, Thanks a lot, it works fine now.
But I have only one more question: when I do "INSERT->FILE->EXTERNAL 
MATERIAL", then "BROWSE" and then I put the name of a file "foo_bar.obj" that 
does not exist (for example a new drawing that I want to do with tgif), and 
then I do "EDIT" to begin the drawing, LyX says: "File does not exist: ...". 
How can I change this behaviour? Indeed, only a "touch foo_bar.obj" is 
necessary to make it work: LyX could accept a non-existing file, passing the 
filename to tgif that would generate this new file. I have dropped an eye 
to ./src/insets/ExternalTemplate.C, but it is not easy to enter the code for 
somebody that has never worked on LyX.

> Do you plan to extend it to support special LaTeX commands in the tgif file
> (similar to the xfig template)? If yes I'd be interested in the result for
> future inclusion in LyX.

Could you precise? I'm not an expert in LaTeX, because I use LyX for eons ;-)

Thanks a lot
Julien

Reply via email to