doc-src/pdfsetup.sty
author blanchet
Mon, 23 Jul 2012 15:32:30 +0200
changeset 49449 aaaec69db3db
parent 41766 bcacc58902fa
permissions -rw-r--r--
ensure all calls to "mash" program are synchronous
     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