----- Original Message ----- From: ""Lars Gullik Bjønnes"" <[EMAIL PROTECTED]>
To: <lyx-users@lists.lyx.org>
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



The documentation for latexmk supports your timestamp statements.

also, http://www.tug.org/tex-archive/support/latexmk/latexmk.pdf says

"Latexmk has two different previewing options. In the simple -pv option,
a dvi, postscript or pdf previewer is automatically run after generating
the dvi, postscript or pdf version of the document. The type of viewer is
selected automatically depending on the -ps, -pdf or -pdfps options. The
kind of file to be viewed can also be explicitly selected by using the
-view option (-view=ps, etc).

The second previewing option is the powerful -pvc option (mnemonic:
"preview continuously"). Particularly when a document is reaching the
final stages of editing, it is often useful to have a previewer open
continuously and have it update its display whenever changes are made
to the source file(s), and this is done by the -pvc option. With this
option, latexmk runs a previewer for the document, and then latexmk
repeatedly monitors the source files of the document to see if any
changes have been made since the last dependent file was produced. When
changes are detected, latexmk runs the appropriate LaTeX commands to
regenerate the .dvi, .ps and/or .pdf files (depending on the which of
the -ps, -pdf and -pdfps options was specified). A good previewer
(like gv) will then automatically update its display. Thus the user can
simply edit a file and, when the changes are written to disk, latexmk
completely automates the cycle of updating the .dvi (and possibly the
ps and .pdf) file, and refreshing the previewer's display. It's not
quite WYSIWYG, but usefully close.

For other previewers, the user will have to manually make the previewer
update its display, which can be (xdvi and gsview) as forcing a redraw
of its display."

SH: I also read "The temporary file is created in the same directory as
the EPS one and under the original file name with added extenson
eps2pdf.tmp-of-eps." (from eps2pdf manual)

It seems like a script could be invoked from within LyX which could
function like the "latexmf -pvc" option, as an alternative?

Regards,
Stephen

Reply via email to