Re: pdflatex works fine but latex just won't
Reinhard Kotucha <[email protected]> Wed, 26 Oct 2005 23:22:51 +0200
| Newsgroups | gmane.comp.tex.tetex.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, >>>>> "Fredrik" == Fredrik Thorsell <[email protected]> writes: > Hi. I've had problems with latex the last few days. First A file > of mine wouldn't compile. It complained about unfinnished "/fi" > statements. While compiling it on another system with latex > installed it worked like a charm and it worked fine with > pdflatex. The kink was at the first if statement in the lines > below (which by the way is a rip of of "The Not So Short > Introduction to LaTeX2e"): It's a pity that some documentation provide workarounds for problems which don't exist. As Thomas pointed out, graphics is smart enough to find out whether you are going to produce dvi or pdf. It is better not to specify a driver. The same holds true for hyperref. You can use hyperref with dvips. This should work on any system. You only have to specify a driver if you want to do unusual things, for instance if you want to use dvipdfm. If you only want to create PDF for screen and PS for printing, this can be done quite easyly: myfile.tex: _______________________________________ \ifx\printversion\undefined \documentclass[oneside,openany]{book} \else \documentclass[twoside,a4paper]{book} \usepackage[monochrome]{color} \fi .... _______________________________________ myfile-print.tex: _______________________________________ \def\printversion{true} \input{myfile.tex} _______________________________________ Regards, Reinhard -- ---------------------------------------------------------------------------- Reinhard Kotucha Phone: +49-511-4592165 Marschnerstr. 25 D-30167 Hannover mailto:[email protected] ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ----------------------------------------------------------------------------