doc-src/pdfsetup.sty
author wenzelm
Tue, 18 Oct 2005 17:59:37 +0200
changeset 17904 21c6894b5998
parent 17725 d3f55965bdbf
child 18521 ee14a65fe764
permissions -rw-r--r--
simplified interfaces proof/proof' etc.: perform ProofHistory.apply(s)/current internally;

%% $Id$
%%
%% smart url or hyperref setup -- special version for Isabelle documentation
%%

\message{pdfsetup.sty v0.3 29/9/2005}

\newif\ifpdfoutput
\ifx\pdfoutput\undefined
\else
  \ifx\pdfoutput\relax
  \else
    \ifcase\pdfoutput
    \else\pdfoutputtrue\fi
  \fi
\fi

\ifpdfoutput
  \message{PDF output}
  \usepackage{color}\definecolor{darkblue}{rgb}{0,0,0.5}
  \usepackage[pdftex,colorlinks=true,linkcolor=darkblue,citecolor=darkblue,filecolor=darkblue,pagecolor=darkblue,urlcolor=darkblue]{hyperref}
              %no a4paper because overall style sets this (not for Springer!)
  \newcommand{\hfootref}[2]{\href{#1}{#2}\footnote{\url{#1}}}
  \gdef\fnote#1{\hyperpage{#1}n}
  \gdef\bold#1{\textbf{\hyperpage{#1}}}
\else
  \message{No PDF output}
  \usepackage{../url}
  \newcommand{\hfootref}[2]{#2\footnote{\url{#1}}}
\fi

\urlstyle{rm}