>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:

Angus, I see that you have commited the change to xfig template, but
I'll chime in anyway:

Angus> It seems to me that there are two possible solution strategies.

Angus> 1. Output some clever latex in the 'Product' line. Something
Angus> along the lines of (psuedo code) if
Angus> (exists($$Basename.pstex_t)) \\input{$$Basename.pstex_t} else
Angus> \\fbox{$$Basename.pstex_t not found}

Angus> This puts the responsibility on LaTeX to do the right thing.
Angus> Other export formats will continue to work AFAICS.

Angus> 2. Extend the ExternalTemplate syntax to accommodate a
Angus> ProductFailed command Product "\\input{$$Basename.pstex_t}"
Angus> ProductFailed "\\fbox{$$Basename.pstex_t not found}"

There is a third strategy that you forgot, which is to hardcode what
happens when conversion failed (like what is done in insetgraphics).
Why would you need to define your code for _all_ the templates?

Angus> This leaves us with the responsibility to check that the
Angus> conversion (ie generation of "UpdateResult") has succeeded.

Yes, why not?

JMarc

Reply via email to