lib/texinputs/pdfsetup.sty
author wenzelm
Thu Sep 29 17:08:52 2005 +0200 (2005-09-29)
changeset 17725 d3f55965bdbf
parent 17698 e86cde1e5b12
child 26909 f42d638c5f07
permissions -rw-r--r--
pdfsetup.sty: better not rely on ifpdf.sty;
     1 %%
     2 %% $Id$
     3 %%
     4 %% smart url or hyperref setup
     5 %%
     6 
     7 \newif\ifpdfoutput
     8 \ifx\pdfoutput\undefined
     9 \else
    10   \ifx\pdfoutput\relax
    11   \else
    12     \ifcase\pdfoutput
    13     \else\pdfoutputtrue\fi
    14   \fi
    15 \fi
    16 
    17 \ifpdfoutput
    18   \message{PDF output}
    19   \usepackage{color}\definecolor{darkblue}{rgb}{0,0,0.5}
    20   \usepackage[pdftex,a4paper,colorlinks=true,linkcolor=darkblue,citecolor=darkblue,filecolor=darkblue,pagecolor=darkblue,urlcolor=darkblue]{hyperref}
    21   \IfFileExists{thumbpdf.sty}{\usepackage{thumbpdf}}{}
    22 \else
    23   \message{No PDF output}
    24   \usepackage{url}
    25 \fi