Georg Baum wrote:
>> Is such a strategy possible? Thoughts?
> 
> As I understand it, this means that fig2pstex.sh, which is supposed to
> convert from fig to pstex, modifies its input. I don't like that. Please
> enlighten me if this is a misunderstanding.

No, you understand right. The alternative is to further augment the
External inset format so that the user can register all such 'extra'
files. Clearly, that is the 'proper' solution, but I fear that we're
making a stick to beat our own backs with if we proceed too far down this
path. For now, only the XFig template is affected, so I'd prefer to let
things happen 'magically' for now.

> Another solution: Instead of copying files to the temp dir, send them
> through a special converter. This converter can be seen as a "converter
> from format x to format x in the temp dir". It would do the necessary
> transformations, e.g. your sed script would become the converter for .fig
> files. This special converter could be defined for every format that
> needs it. If a particular format has no such converter defined, then the
> file is simply copied as it is done right now.

Nice idea actually. Anyway, let's see where my original plan takes me for
now.

> Both solutions have the following small problem, but I guess we have to
> live with that: lyx does not notice if the eps figure changes, so it does
> not convert the xfig file again.

Agreed. For that, we need to register these 'extra' files.

-- 
Angus

Reply via email to