On Wed, Aug 30, 2000 at 12:28:38AM +0200, Lars Gullik Bj&resh;nnes wrote:
> :-) I actually think the dirrerences might be enven larger, since when
> using pdf you want to pass "pdflatex" as option to several latex
> packages. And thus the whole latex file will be different.

Did you forgot tex has if/then clauses ?
It is possible to use the same file with both latex/pdflatex:

\newif \ifpdf
   \ifx \pdfoutput \undefined
      \pdffalse
   \else
      \pdftrue
\fi

\ifpdf
  \usepackage[pdftex]{hyperref}
\else
  \usepackage[dvips]{hyperref}
\fi

> What I'd like to see instead is a LyX that can operate in two modes,
> DVI and PDF mode.

I don't understand what you mean here.

> One other possiblity would be to have a separate tmpdir for the pdf
> build. (with separate generation of the latex file.)

And what if you set use_tempdir to false ?

Anyhow, I've found a (small?) problem with PDF file creation:
Suppose you create a PDF using pdflatex, then you decide to try to create
the PDF using ps2pdf, which overwrites the old PDF file,
but you don't like the result, so you try to recreate the PDF using pdflatex,
but nothing will happen as no file has been changed since the last run of
pdflatex. 

A possible solution for this problem can be to use different filenames
for the PDF files created by ps2pdf / pdflatex.

Reply via email to