----- Original Message ----- From: "Paul A. Rubin" <[EMAIL PROTECTED]>
To: <lyx-users@lists.lyx.org>
Sent: Friday, August 19, 2005 8:20 PM
Subject: Re: output refresh when only graphics change?


Geoffrey Lloyd wrote:

----- Original Message ----- From: "Paul A. Rubin" <[EMAIL PROTECTED]>
To: <lyx-users@lists.lyx.org>
Sent: Friday, August 19, 2005 7:37 PM
Subject: Re: output refresh when only graphics change?


Angus Leeming wrote:

Paul A. Rubin wrote:

Ok, I think I see the problem, though not the solution. The first time
you view the document, LyX copies the graphics files into the temp
directory (which also houses any transformations of them done by
ImageMagick). When you perform step 2, I assume that you're performing
it on the original image file, not the copy in the temp buffer.  LyX
does not know the image has changed.



Ermmm. That's not entirely true. LyX does indeed check whether the file has changed when it generates the LaTeX source, so at that point the file in the temp directory is updated. However, there's no mechanism at the moment to propagate the information that, actually, we really do need to run the document through the latex compiler again, even though the source hasn't
changed.

Maybe you could add an entry to bugzilla so that this doesn't get
forgotten?

Can do, but first let me clarify two things. You said LyX does check for a changed graphic file _when it generates the LaTeX source_. However, if the only thing you've done since the last LaTeX run is muck around with the graphics file (not change the name of the file being used, just change the content of the image file), what will tell LyX to run LaTeX again? Second, when you say LyX checks for a changed graphic file, does it check the file's last modification date, or does it just look to see if the file name has changed?

Paul


Out of interest is the Lyx graphic preview recognising the change. IE in the Lyx window does the grpahic look different.

Geoff

Don't know -- never preview graphics inside LyX.  Sven?

Paul

I only ask because it should. If it isn't doing this then maybe the problem is not with updating before previewing but more one of lyx not looking for a change in the file.

Geoff


Reply via email to