pdflatex works fine but latex just won't
Fredrik Thorsell <[email protected]> Wed, 26 Oct 2005 13:46:17 +0000 (UTC)
| Newsgroups | gmane.comp.tex.tetex.general |
|---|---|
| Message-ID | <[email protected]> |
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"):
\documentclass[a4paper,12pt]{article}
\newif\ifPDF
\ifx\pdfoutput\undefined\PDFfalse
\else\ifnum\pdfoutput > 0\PDFtrue
\else\PDFfalse
\fi
\fi
\usepackage[T1]{fontenc}
\usepackage[swedish]{babel}
\ifPDF
\usepackage[pdftex]{graphicx}
\usepackage[colorlinks,linkcolor=black,urlcolor=blue,pdftex,%
pdftitle={ansökan},bookmarks=false]{hyperref}
\else
\usepackage[dvips]{graphicx}
\fi