Dekel Tsur <[EMAIL PROTECTED]> writes:
| On Mon, Aug 28, 2000 at 07:42:26PM +0200, Lars Gullik Bjønnes wrote:
| >
| > + * src/LaTeX.C (run): If no file has been changed, check if the
| > + output dvi/pdf file exists. If not, run (pdf)latex once.
| >
| > Why is this needed?
|
| The code is needed for the following case: Suppose I view the document as DVI,
| so LyX runs latex several times, and the DVI is generated.
| Now I want to view PDF, using pdflatex.
| However when calling to LaTeX::run, nothing will be done as there was no
| changes in the LyX file (or in other files).
|
| The new code solves this problem by checking whether the output file exists.
| In this case, we check for filename.pdf (as we run pdflatex), and since it
| is missing, we need to run pdflatex once to generate it.
I understand the prolem, but I don't like the solution.
And you also assume that the requirements for pdflatex and latex are
identical, wrt the dependency file etc. I belive that this need not be
true.
| > (You use it to get the dvi file generated even if
| > we are really setup to making pdf files, I'd like us to find a better
|
| No. See above.
Actually: yes.
| > solution than this, that does not involve modifing the latex
| > generation algorithm.)
|
| Note that the new code also solves the following (very minor) problem:
| Suppose you preview the DVI, and then (for some reason) you close xdvi, and
| delete the DVI file. If you now try to preview the dvi again,
| without modifying
| the LyX file, LyX will not regenerate the DVI file. The only way to enforce
| regeneration of the DVI file is to modify the LyX file.
How can this happen with _sane_ usage?
One thing: Your patch seems to be broken with regard to new and
deleted files.
For new files there should be a
+++ newfile
--- /dev/null
Do you have a local cvs repository that you create the patches from?
(if so don't do that)
Lgb