On 04/06/2016 06:12 PM, Anders Host-Madsen wrote:
Update. If I run
command-sequence buffer-write; buffer-export pdf2; buffer-export pdflatex
It sometimes make LyX hang. If I run
command-sequence buffer-write; buffer-export pdflatex; buffer-export pdf2
sometimes the pdf export doesn't happen. So, neither quite work.
I have a strong feeling it has to do with how long the commands take to run.
On my iMac, which has a slow spinning HD, I get more trouble than on my
MacBook, which has an SSD.
I would think that the second sequence would have the least trouble with
LyX not waiting for a command to finish, since the first two commands
are (I thought) internal to LyX itself. The pdf generation calls
external programs, LaTeX of course, then something like dvipdf, so once
it's in the pipeline sometimes the shell might think the command is
complete and then let LyX run the next process. That may cause the hang
you mentioned, but does not explain the problem with the second sequence.
--
David L. Johnson
Department of Mathematics
Lehigh University