| author | wenzelm | 
| Sun, 04 Mar 2012 19:24:05 +0100 | |
| changeset 46815 | 6bccb1dc9bc3 | 
| parent 41518 | bcacc58902fa | 
| permissions | -rw-r--r-- | 
| 17698 
e86cde1e5b12
more reliable check for PDF output using ifpdf.sty;
 wenzelm parents: 
12636diff
changeset | 1 | %% | 
| 26919 | 2 | %% hyperref setup -- special version for Isabelle documentation | 
| 17698 
e86cde1e5b12
more reliable check for PDF output using ifpdf.sty;
 wenzelm parents: 
12636diff
changeset | 3 | %% | 
| 
e86cde1e5b12
more reliable check for PDF output using ifpdf.sty;
 wenzelm parents: 
12636diff
changeset | 4 | |
| 30871 
104b13484feb
\nolinkurl for dvi mode recovers hyphenation of URLs -- this already works by default in PDF mode;
 wenzelm parents: 
26919diff
changeset | 5 | \usepackage{ifpdf}
 | 
| 17725 | 6 | |
| 26899 
29bb3d1de3bc
hyperref is always enabled (also works with xdvi, dvips);
 wenzelm parents: 
22734diff
changeset | 7 | \usepackage{color}
 | 
| 26904 | 8 | \definecolor{linkcolor}{rgb}{0,0,0}
 | 
| 26918 | 9 | \usepackage[colorlinks=true,linkcolor=linkcolor,citecolor=linkcolor,filecolor=linkcolor,pagecolor=linkcolor,urlcolor=linkcolor,pdfpagelabels]{hyperref}
 | 
| 26899 
29bb3d1de3bc
hyperref is always enabled (also works with xdvi, dvips);
 wenzelm parents: 
22734diff
changeset | 10 | |
| 
29bb3d1de3bc
hyperref is always enabled (also works with xdvi, dvips);
 wenzelm parents: 
22734diff
changeset | 11 | \newcommand{\hfootref}[2]{\href{#1}{#2}\footnote{\url{#1}}}
 | 
| 
29bb3d1de3bc
hyperref is always enabled (also works with xdvi, dvips);
 wenzelm parents: 
22734diff
changeset | 12 | \gdef\fnote#1{\hyperpage{#1}n}
 | 
| 
29bb3d1de3bc
hyperref is always enabled (also works with xdvi, dvips);
 wenzelm parents: 
22734diff
changeset | 13 | \gdef\bold#1{\textbf{\hyperpage{#1}}}
 | 
| 8891 | 14 | |
| 15 | \urlstyle{rm}
 | |
| 30873 | 16 | \ifpdf\relax\else\renewcommand{\url}[1]{\nolinkurl{#1}}\fi
 | 
| 40402 
b646316f8b3c
basic setup for literal replacement text in PDF, to support copy/paste of Isabelle symbols;
 wenzelm parents: 
30873diff
changeset | 17 | |
| 40447 
7434faac7e21
accomodate old manuals that include pdfsetup.sty without isabelle.sty;
 wenzelm parents: 
40407diff
changeset | 18 | \def\isaliteral#1#2{#2}
 | 
| 
7434faac7e21
accomodate old manuals that include pdfsetup.sty without isabelle.sty;
 wenzelm parents: 
40407diff
changeset | 19 | \def\isanil{}
 | 
| 
7434faac7e21
accomodate old manuals that include pdfsetup.sty without isabelle.sty;
 wenzelm parents: 
40407diff
changeset | 20 | |
| 41518 
bcacc58902fa
disabled experimental treatment of replacement text for now, which leads to odd spacing and strange effects on non-poppler viewers;
 wenzelm parents: 
40447diff
changeset | 21 | %experimental treatment of replacement text | 
| 
bcacc58902fa
disabled experimental treatment of replacement text for now, which leads to odd spacing and strange effects on non-poppler viewers;
 wenzelm parents: 
40447diff
changeset | 22 | \iffalse | 
| 40402 
b646316f8b3c
basic setup for literal replacement text in PDF, to support copy/paste of Isabelle symbols;
 wenzelm parents: 
30873diff
changeset | 23 | \ifnum\pdfminorversion<5\pdfminorversion=5\fi | 
| 
b646316f8b3c
basic setup for literal replacement text in PDF, to support copy/paste of Isabelle symbols;
 wenzelm parents: 
30873diff
changeset | 24 | \renewcommand{\isaliteral}[2]{%
 | 
| 
b646316f8b3c
basic setup for literal replacement text in PDF, to support copy/paste of Isabelle symbols;
 wenzelm parents: 
30873diff
changeset | 25 | \pdfliteral direct{/Span <</ActualText<#1>>> BDC}#2\pdfliteral direct{EMC}}
 | 
| 40407 
2ff10e613689
more robust treatment of suppressed quotes concerning replacement text -- for improved copy/paste behaviour;
 wenzelm parents: 
40402diff
changeset | 26 | \renewcommand{\isanil}{{\color{white}.}}
 | 
| 40402 
b646316f8b3c
basic setup for literal replacement text in PDF, to support copy/paste of Isabelle symbols;
 wenzelm parents: 
30873diff
changeset | 27 | \fi |