On 22/02/2025 11:39 am, Duarte Maia wrote:
Hi everyone,
I like to use the preview feature to put Tikz pictures on my documents
and see the effect of my changes in real time. This works fine when I
don't mess up: If I change a line and put my cursor elsewhere, the
preview updates accordingly, which is faster and more convenient than
recompiling the whole file. However, if I make a mistake (e.g. miss a
semicolon), the preview simply doesn't appear. Worse, I get no
indication that LyX tried to compile it and failed. I have to compile
the entire file to figure out what went wrong.
So, my question is: Is there a way to distinguish between "this
preview is taking a bit to compile" vs. "this preview got a
compilation error", and in the latter case is there a way to see the
error that came up?
Thanks in advance,
-Duarte Maia
A log file for the preview is created in LyX's temporary directory (see
Help > About LyX to find the location of this). There you will find a
folder or folders like lyx_tmpbuf0. If there is more than one you may
have to click on a number to find which one applies to the file in the
main working window of LyX. Previews which have formed successfully will
have a file type .png. When a document is opened for the first time, all
the previews are formed "at once" and there is a log file for this.
Individual previews formed after that, in the course of a session,
generate their individual log files, even if a preview fails to compile
successfully.
Andrew
--
lyx-users mailing list
lyx-users@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-users