----- 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



I was looking at the lyxport (short for lyx export) perl script and info.
http://www-hep.colorado.edu/~fperez/lyxport/files/lyxport-0.1.2
"For example, in order to make PDF from a LaTeX file, any included eps figures need to be converted to pdf format. But LyX likes to have the figures in eps format for on-screen display, which is a great feature to have. lyxport allows you to keep your LyX file as usual (with references to eps figures) and will make .pdf versions of any included figure on the fly as needed. You can even ask it to remove those pdf files after it finishes, if you really want to maintain a minimum of files around (though it will have to remake them again if you ever need to update your pdf exported document). ...

If you find that lyxport is more succesful in exporting your files than
LyX's default calls to latex2html and pdflatex, you can modify LyX to use
*lyxport* as its conversion routine. For LyX versions 1.1.6 and above, go
to Edit->Preferences->Converters->Converters and specify *lyxport* as your converter for LaTeX->HTML and LaTeX->PDF. LyX's convention is to call $$i the current file.

For example, if you want to setup lyxport to be your PDF export filter under
LyX, in the Converters dialog, in the LaTeX->PDF(pdflatex) option, set:

   lyxport --pdf $$i
This way you'll be able to export to pdf directly from within LyX, even if
your figures are in eps format.

LyX's Converters dialog is a bit confusing: after making changes, you must
first press the Modify button for your changes to actually be recorded, and
then Save."


Touch,

Stephen


Reply via email to