On 18 Feb 2003, Jean-Marc Lasgouttes wrote: > >>>>> "Christian" == Christian Ridderström <[EMAIL PROTECTED]> writes: > > Christian> Conclusion: I'd like lyx to be able to make lyx call other > Christian> programs (or include 'source') when compiling the document. > > What about the external inset?
Good point, I'd forgotten about it since Tgif is directly supported now... But you're right... if the "UpdateCommand" is executed early enough, it could be used as a callback. The external program could connect back to lyx and perform arbitrary changes (assuming a bit of other stuff of course...) Actually, Document->Layout->Preamble could be replaced by an external inset, that either connects to lyx and modifies the document preamble, or by returning latex that is inserted in the document preamble. Perhaps there should be an additional field, "InitCommand", that is executed for each external inset at the beginning of a compilation sequence? (all "InitCommand's" of the external insets are executed before any of the "UpdateCommands" are run) Anyway, I'm happy. It doesn't seem too difficult to achieve this if I suddenly get the urge. In that case I'll get back to this topic, it'd probably require a bit of discussion on what kind of fields a Template or Format structure may contain (such as "InitCommand"). /Christian -- Christian Ridderström, +46-8-790 91 37 http://www.md.kth.se/~chr Mechatronics lab, Dept. of Machine Design http://www.md.kth.se