----- Original Message -----
From: ""Lars Gullik Bjønnes"" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, August 20, 2005 2:11 PM
Subject: Re: output refresh when only graphics change?
Angus Leeming <[EMAIL PROTECTED]> writes:
| Paul A. Rubin wrote:
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?
| LyX stores a CRC checksum of all dependent files that it knows about.
It's
| just that the controlling logic doesn't know about the graphics files.
try
So we parse the latex log wrong? Is that what you are saying?
| $ lyx -dbg depend
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?
| It performs a checksum of the contents of the file.
It also look at the timestamp... so if you have a timestamp that does
not change the crc will not be checked.
--
Lgb
Sven wrote:
How can I force lyx to run a latex cycle when only an included graphics
file has changed?
Lyx doesn't seem to notice the change (which I understand) and therefore
only offers the output from the buffer with the old graphic.
Workaround is to close and reopen the lyx-file, but surely this is not
really necessary?
Thanks, Sven
SH: Do I understand the eps2pdf documentation correctly -- that the
converted file is stored as a temp file, so that saving the lyx file updates
and includes the newly converted graphics file which was held in the
temp file? From the eps2pdf documentation:
"There are two major steps in processing a EPS file:
1. Creating an temporary EPS file in order to shift the coordinate system of
the figure inside of the EPS file to cause the BoundingBox's lower left
corner to be placed in the coordinate origin.
2. Calling the gswin32c.exe with the selected parameters to do the actual
conversion. ...
The EPS files of 10 Mb or less are read into the RAM, updated there
and saved as temporary file on the disk. Bigger EPS files are read,
updated and saved as temporary file in blocks of 1kb."
SH: This made me think that an automatic update of the entire file
would require knowing where the temp file is stored, if it is not stored
in the same directory as the original main document being refreshed?
In order to make the refresh of the entire document automatic and
immediate after the conversion of the graphics.eps to pdf, rather than
another manual option (other than saving and re-opening the document)
then this auto action should nearly always be desired since the update
of the entire document could be time consuming with a file over 10mb?
I am curious as to how this works and the eps2pdf manual is not very
detailed; nor did I find a TeXnic reference -- perhaps this topic isn't a
real page-turner as manual priorities go. (I brought up the location of
the eps-->pdf temp file because Lyx would need to know this in order
to determine if the content of the file had changed?)
Odd what topics garner interest,
Stephen