José Matos wrote:

> On Friday 23 February 2007 12:41:37 pm Georg Baum wrote:
>> As you can see in http://www.lyx.org/trac/changeset/17305 I disabled the
>> converter cache for the pstex and pdftex formats in my personal branch.
>> The reason is that the converter cache can only cache conversions that
>> convert from one single file to another single file.
>> The pstex and pdftex formats are different: converting from fig to pstex
>> creates two files: .eps and .pstex_t, and converting from fig to pdftex
>> creates .pdf and .pdftex_t.
> 
>   Would it be possible to extend the present scheme to support several
>   files
> (two at least for now)?

Two or more would not make any difference I guess. It would be possible, but
it would require some changes. The whole converter machinery is based on
this 1:1 assumption. pstex and pdftex only work for the external inset, and
they do this only because the extra file is listed as referenced file.

Therefore, for each format we would need to add the information about
possible additional files. Then we would need to use this information in
the converter machinery. This is not too difficult to do, but I thought the
flag solution would be easier right now.

>> I don't see an easy way to teach the converter cache how to handle these
>> cases. Therefore I would suggest to simply disable the cache for these
>> conversions. This would be done with a new converter flag "dontcache" (or
>> "nocache"?)
>> Is this OK? If yes I'll develop a patch.
> 
>   In a sense this is orthogonal to the issue above. Would this flag be
> necessary if we supported the scenario of pstex and pdftex?

Not necessary, but it might be useful.


Georg

Reply via email to