On 7/3/25 8:09 PM, Alexander Dunlap wrote:
On Thu, Jul 3, 2025 at 5:30 PM Richard Kimberly Heck
<rikih...@gmail.com> wrote:
On 7/3/25 5:24 PM, Alexander Dunlap wrote:
> I think what I really want is for LyX to not overwrite the final
file
> when it creates the intermediate versions, and only when it is
done with
> all of the necessary LaTeX runs copy the compiled file to the
"final" PDF
> location. I will look into creating a converter specification that
> could achieve
> this.
I think it would be difficult to do exactly that. When pdflatex is
run,
it over-writes the PDF file. It's only by examining the logs after
that
happens that we know whether to do another run. So I think you
will need
to copy the old PDF. In principle, you could rename the tex file
itself,
and then run pdflatex. But I expect that will be hard to get right.
Riki
I created a new output format called "PDF (no flicker)" with output
extension ".pdfnoflicker" and created a converter from "PDF
(pdflatex)" to "PDF (noflicker)" with the converter command being
simply "cp $$i $$o" and it seems to do exactly what I want -- it waits
for the conversion from LaTeX to PDF (pdflatex) to finish and then
copies it once to the ".pdfnoflicker" extension. I don't mind that the
output extension is not ".pdf" because I'm only using it for
previewing anyway. Thanks a lot!!
Very nicely done!
Riki
--
lyx-users mailing list
lyx-users@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-users