doc-src/pdfsetup.sty
author wenzelm
Wed, 28 Sep 2005 15:13:02 +0200
changeset 17698 e86cde1e5b12
parent 12636 5069929098ab
child 17725 d3f55965bdbf
permissions -rw-r--r--
more reliable check for PDF output using ifpdf.sty;

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

\message{pdfsetup.sty v0.2 28/9/2005}
\RequirePackage{ifpdf}
\ifpdf
  \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
  \usepackage{../url}
  \newcommand{\hfootref}[2]{#2\footnote{\url{#1}}}
\fi

\urlstyle{rm}