doc-src/pdfsetup.sty
author haftmann
Thu, 04 Oct 2007 19:41:55 +0200
changeset 24841 df8448bc7a8b
parent 22734 790f73fa8b36
child 26899 29bb3d1de3bc
permissions -rw-r--r--
concept for exceptions

%% $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,pdfpagelabels]{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}
  \def\phantomsection{\relax}
  \usepackage{../url}
  \newcommand{\hfootref}[2]{#2\footnote{\url{#1}}}
\fi

\urlstyle{rm}