Dekel Tsur <[EMAIL PROTECTED]> writes:

| On Wed, Aug 30, 2000 at 12:28:38AM +0200, Lars Gullik Bjø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

Yes, let's make the latex code as ugly as possible...
It is a solution but it is not a nice one.

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

In PDF mode we never ever do anything with dvi files. Always use
pdflatex.

In DVI mode we use latex and use dvipdf to create pdf files.
(or ps2pdf)

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

_that_ is a hack, and was created to work around some bad bahaviour in
the always-use-tempdir code. and should imo be removed.

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

Yes, I saw that possibility in the code.
 
| A possible solution for this problem can be to use different filenames
| for the PDF files created by ps2pdf / pdflatex.

hack upon hack, let's find a better solution.

        Lgb

Reply via email to