doc-src/pdfsetup.sty
author haftmann
Wed Sep 07 23:38:52 2011 +0200 (2011-09-07)
changeset 44818 27ba81ad0890
parent 41518 bcacc58902fa
permissions -rw-r--r--
theory of saturated naturals contributed by Peter Gammie
wenzelm@17698
     1
%%
wenzelm@26919
     2
%% hyperref setup -- special version for Isabelle documentation
wenzelm@17698
     3
%%
wenzelm@17698
     4
wenzelm@30871
     5
\usepackage{ifpdf}
wenzelm@17725
     6
wenzelm@26899
     7
\usepackage{color}
wenzelm@26904
     8
\definecolor{linkcolor}{rgb}{0,0,0}
wenzelm@26918
     9
\usepackage[colorlinks=true,linkcolor=linkcolor,citecolor=linkcolor,filecolor=linkcolor,pagecolor=linkcolor,urlcolor=linkcolor,pdfpagelabels]{hyperref}
wenzelm@26899
    10
wenzelm@26899
    11
\newcommand{\hfootref}[2]{\href{#1}{#2}\footnote{\url{#1}}}
wenzelm@26899
    12
\gdef\fnote#1{\hyperpage{#1}n}
wenzelm@26899
    13
\gdef\bold#1{\textbf{\hyperpage{#1}}}
wenzelm@8891
    14
wenzelm@8891
    15
\urlstyle{rm}
wenzelm@30873
    16
\ifpdf\relax\else\renewcommand{\url}[1]{\nolinkurl{#1}}\fi
wenzelm@40402
    17
wenzelm@40447
    18
\def\isaliteral#1#2{#2}
wenzelm@40447
    19
\def\isanil{}
wenzelm@40447
    20
wenzelm@41518
    21
%experimental treatment of replacement text
wenzelm@41518
    22
\iffalse
wenzelm@40402
    23
\ifnum\pdfminorversion<5\pdfminorversion=5\fi
wenzelm@40402
    24
\renewcommand{\isaliteral}[2]{%
wenzelm@40402
    25
\pdfliteral direct{/Span <</ActualText<#1>>> BDC}#2\pdfliteral direct{EMC}}
wenzelm@40407
    26
\renewcommand{\isanil}{{\color{white}.}}
wenzelm@40402
    27
\fi