On 30-Aug-2000 Lars Gullik Bjønnes wrote:
>| 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.
>
Well I like this solution (and already used it for foils Allan send
me for a Linux Meeting where I have to talk about LyX ;), so that I
can produce pdf and ps files with the same preamble!
AND I don't think this makes LaTeX files more ugly!
Jürgen
P.S.: Thanks Dekel for this solution! :)
P.P.S.: I also fixed the figinset to accept names without .eps extension
so that if you have the .eps AND .png files you have LyX inline
viewing AND also can produce pdffiles with the same latex output!
--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna E-Mail: [EMAIL PROTECTED]
Italienallee 13/N Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Your education begins where what is called your education is over.