On 05/15/2015 10:25 AM, Bert Lloyd wrote:
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.
The problem here is that LyX exports the file in the background, so that
is why the command window remains open, and closing it fails.
I'll continue the discussion on the bug report.
Richard