doc-src/pdfsetup.sty
author wenzelm
Thu, 15 May 2008 17:37:18 +0200
changeset 26899 29bb3d1de3bc
parent 22734 790f73fa8b36
child 26904 e90832d7196a
permissions -rw-r--r--
hyperref is always enabled (also works with xdvi, dvips);
replaced darkblue by generic linkcolor;
reduced verbosity;
wenzelm@17698
     1
%% $Id$
wenzelm@17698
     2
%%
wenzelm@17698
     3
%% smart url or hyperref setup -- special version for Isabelle documentation
wenzelm@17698
     4
%%
wenzelm@17698
     5
wenzelm@17725
     6
\message{pdfsetup.sty v0.3 29/9/2005}
wenzelm@17725
     7
wenzelm@17725
     8
\newif\ifpdfoutput
wenzelm@17725
     9
\ifx\pdfoutput\undefined
wenzelm@17725
    10
\else
wenzelm@17725
    11
  \ifx\pdfoutput\relax
wenzelm@17725
    12
  \else
wenzelm@17725
    13
    \ifcase\pdfoutput
wenzelm@17725
    14
    \else\pdfoutputtrue\fi
wenzelm@17725
    15
  \fi
wenzelm@17725
    16
\fi
wenzelm@17725
    17
wenzelm@26899
    18
\usepackage{color}
wenzelm@26899
    19
\definecolor{linkcolor}{rgb}{0,0,0.5}
wenzelm@26899
    20
wenzelm@26899
    21
\usepackage[colorlinks=true,linkcolor=linkcolor,citecolor=linkcolor,filecolor=linkcolor,pagecolor=linkcolor,urlcolor=linkcolor,pdfpagelabels]{hyperref}
wenzelm@26899
    22
\newcommand{\hfootref}[2]{\href{#1}{#2}\footnote{\url{#1}}}
wenzelm@26899
    23
\gdef\fnote#1{\hyperpage{#1}n}
wenzelm@26899
    24
\gdef\bold#1{\textbf{\hyperpage{#1}}}
wenzelm@8891
    25
wenzelm@8891
    26
\urlstyle{rm}