lib/texinputs/pdfsetup.sty
changeset 17725 d3f55965bdbf
parent 17698 e86cde1e5b12
child 26909 f42d638c5f07
     1.1 --- a/lib/texinputs/pdfsetup.sty	Thu Sep 29 17:02:57 2005 +0200
     1.2 +++ b/lib/texinputs/pdfsetup.sty	Thu Sep 29 17:08:52 2005 +0200
     1.3 @@ -4,11 +4,22 @@
     1.4  %% smart url or hyperref setup
     1.5  %%
     1.6  
     1.7 -\RequirePackage{ifpdf}
     1.8 -\ifpdf
     1.9 +\newif\ifpdfoutput
    1.10 +\ifx\pdfoutput\undefined
    1.11 +\else
    1.12 +  \ifx\pdfoutput\relax
    1.13 +  \else
    1.14 +    \ifcase\pdfoutput
    1.15 +    \else\pdfoutputtrue\fi
    1.16 +  \fi
    1.17 +\fi
    1.18 +
    1.19 +\ifpdfoutput
    1.20 +  \message{PDF output}
    1.21    \usepackage{color}\definecolor{darkblue}{rgb}{0,0,0.5}
    1.22    \usepackage[pdftex,a4paper,colorlinks=true,linkcolor=darkblue,citecolor=darkblue,filecolor=darkblue,pagecolor=darkblue,urlcolor=darkblue]{hyperref}
    1.23    \IfFileExists{thumbpdf.sty}{\usepackage{thumbpdf}}{}
    1.24  \else
    1.25 +  \message{No PDF output}
    1.26    \usepackage{url}
    1.27  \fi