src/Doc/pdfsetup.sty
changeset 48985 5386df44a037
parent 41518 bcacc58902fa
child 49320 94bd2fb83d11
equal deleted inserted replaced
48984:f51d4a302962 48985:5386df44a037
       
     1 %%
       
     2 %% hyperref setup -- special version for Isabelle documentation
       
     3 %%
       
     4 
       
     5 \usepackage{ifpdf}
       
     6 
       
     7 \usepackage{color}
       
     8 \definecolor{linkcolor}{rgb}{0,0,0}
       
     9 \usepackage[colorlinks=true,linkcolor=linkcolor,citecolor=linkcolor,filecolor=linkcolor,pagecolor=linkcolor,urlcolor=linkcolor,pdfpagelabels]{hyperref}
       
    10 
       
    11 \newcommand{\hfootref}[2]{\href{#1}{#2}\footnote{\url{#1}}}
       
    12 \gdef\fnote#1{\hyperpage{#1}n}
       
    13 \gdef\bold#1{\textbf{\hyperpage{#1}}}
       
    14 
       
    15 \urlstyle{rm}
       
    16 \ifpdf\relax\else\renewcommand{\url}[1]{\nolinkurl{#1}}\fi
       
    17 
       
    18 \def\isaliteral#1#2{#2}
       
    19 \def\isanil{}
       
    20 
       
    21 %experimental treatment of replacement text
       
    22 \iffalse
       
    23 \ifnum\pdfminorversion<5\pdfminorversion=5\fi
       
    24 \renewcommand{\isaliteral}[2]{%
       
    25 \pdfliteral direct{/Span <</ActualText<#1>>> BDC}#2\pdfliteral direct{EMC}}
       
    26 \renewcommand{\isanil}{{\color{white}.}}
       
    27 \fi