Dear LyX users: (Related to http://www.lyx.org/trac/ticket/9546 but posted here in case there is a currently working method rather than a need for a bug fix.)
Is it possible to write a command sequence such that LyX will wait until one command is complete (or for some fixed amount of time) before proceeding to the next command in the sequence? My situation is the following: I would like to write a simple .bat script to switch on show changes in output and export to pdf. It does not seem to be possible to send the changes-output command in isolation, i.e. lyx -x "changes-output" filename.lyx lyx -e pdf2 filename.lyx -f does produce filename.pdf, but without track changes shown. I have had more success using a one-line command sequence: lyx -x "command-sequence changes-output; buffer-export pdf2;" filename.lyx This produces filename.pdf with track changes shown, but inconveniently leaves the application window open. (Batch mode does not work -- this and other unsuccessful variants are described in greater detail in the ticket linked above.) I attempted to add lyx-quit to the command sequence, but this lyx -x "command-sequence changes-output; buffer-export pdf2; lyx-quit;" filename.lyx produces an error: "LyX could not be closed because documents are being processed by LyX". I would like to write the command sequence so that LyX will wait until -buffer-export pdf2- is complete before sending the -lyx-quit- command. Alternatively, it would be fine to have LyX wait for some fixed amount of time (e.g. 30 seconds). Other suggestions for a workaround would be welcome as well. Many thanks, BL PS: LyX 2.1.3 and MikTeX 2.9 on Windows 7 Pro 64 bit. I would be happy to use Cygwin if that makes a workaround feasible.
