doc-src/pdfsetup.sty
author wenzelm
Sun, 05 Apr 2009 23:12:29 +0200
changeset 30871 104b13484feb
parent 26919 14b4d95d4be2
child 30873 105e887994d0
permissions -rw-r--r--
\nolinkurl for dvi mode recovers hyphenation of URLs -- this already works by default in PDF mode;

%%
%% hyperref setup -- special version for Isabelle documentation
%%

\usepackage{ifpdf}

\usepackage{color}
\definecolor{linkcolor}{rgb}{0,0,0}
\usepackage[colorlinks=true,linkcolor=linkcolor,citecolor=linkcolor,filecolor=linkcolor,pagecolor=linkcolor,urlcolor=linkcolor,pdfpagelabels]{hyperref}

\newcommand{\hfootref}[2]{\href{#1}{#2}\footnote{\url{#1}}}
\gdef\fnote#1{\hyperpage{#1}n}
\gdef\bold#1{\textbf{\hyperpage{#1}}}

\urlstyle{rm}

\ifpdf\relax\else\renewcommand{\url}[1]{\nolinkurl{#1}}\fi