Juergen Vigna <[EMAIL PROTECTED]> writes:

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

It is ugly... especialy since the examply above is a very simplified
one, we get this same problem with url (the IfFileExists is ugly),
also pdflatex will almost require parameters tt are different feom the
latex' ones for hyperref.

_and_ that you have to do this in the preamble at all just shows that
support _in_ LyX is lacking. Changes to the preamble is often needed,
but it is still a hack and is ugly.

| P.S.: Thanks Dekel for this solution! :)

I fear that this is more of a pillow that will keep us from doing it
right fast... instead it will take a really long time.

        Lgb

Reply via email to