lib/texinputs/pdfsetup.sty
changeset 17725 d3f55965bdbf
parent 17698 e86cde1e5b12
child 26909 f42d638c5f07
equal deleted inserted replaced
17724:e969fc0a4925 17725:d3f55965bdbf
     2 %% $Id$
     2 %% $Id$
     3 %%
     3 %%
     4 %% smart url or hyperref setup
     4 %% smart url or hyperref setup
     5 %%
     5 %%
     6 
     6 
     7 \RequirePackage{ifpdf}
     7 \newif\ifpdfoutput
     8 \ifpdf
     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}
     9   \usepackage{color}\definecolor{darkblue}{rgb}{0,0,0.5}
    19   \usepackage{color}\definecolor{darkblue}{rgb}{0,0,0.5}
    10   \usepackage[pdftex,a4paper,colorlinks=true,linkcolor=darkblue,citecolor=darkblue,filecolor=darkblue,pagecolor=darkblue,urlcolor=darkblue]{hyperref}
    20   \usepackage[pdftex,a4paper,colorlinks=true,linkcolor=darkblue,citecolor=darkblue,filecolor=darkblue,pagecolor=darkblue,urlcolor=darkblue]{hyperref}
    11   \IfFileExists{thumbpdf.sty}{\usepackage{thumbpdf}}{}
    21   \IfFileExists{thumbpdf.sty}{\usepackage{thumbpdf}}{}
    12 \else
    22 \else
       
    23   \message{No PDF output}
    13   \usepackage{url}
    24   \usepackage{url}
    14 \fi
    25 \fi