Angus Leeming wrote: > Alfredo Braunstein wrote: > >> John Levon wrote: >> >>> Not on the status bar. Have a cenetered modal progress dialog by all >>> means. Feel free to do so. >> >> Do you think that there's no hope in asyncroneous latexing/export? >> >> Alfredo > > Why not? > > The latex export is complicated by the need to parse the latex log file in > order to ascertain whether latex needs to be run again. It seems to me > that you have two possible strategies: > > You have two choices. > 1 (simple to implement): keep this control code within LyX but move it > into a separate function that is called when the forked latex process > finishes and emits a signal to say so.
Incidentally, the GraphicsConverter is a working example of asynchronous conversion. In fact, the only part of it that is anything to do with "graphics" at all is that nasty, fallback "convertDefault" block. I suspect that you'll be able to use it as-is meaning that all you really have to do is: 1. Rename it to something sensible ;-) 2. Move the latex parsing stuff in Dekel's Converter into a separate function. HTH, -- Angus