doc-src/pdfsetup.sty
author wenzelm
Wed, 15 Apr 2009 11:14:48 +0200
changeset 30895 bad26d8f0adf
parent 30873 105e887994d0
child 40402 b646316f8b3c
permissions -rw-r--r--
updated for Isabelle2009;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17698
e86cde1e5b12 more reliable check for PDF output using ifpdf.sty;
wenzelm
parents: 12636
diff changeset
     1
%%
26919
14b4d95d4be2 tuned comment;
wenzelm
parents: 26918
diff changeset
     2
%% hyperref setup -- special version for Isabelle documentation
17698
e86cde1e5b12 more reliable check for PDF output using ifpdf.sty;
wenzelm
parents: 12636
diff changeset
     3
%%
e86cde1e5b12 more reliable check for PDF output using ifpdf.sty;
wenzelm
parents: 12636
diff changeset
     4
30871
104b13484feb \nolinkurl for dvi mode recovers hyphenation of URLs -- this already works by default in PDF mode;
wenzelm
parents: 26919
diff changeset
     5
\usepackage{ifpdf}
17725
d3f55965bdbf pdfsetup.sty: better not rely on ifpdf.sty;
wenzelm
parents: 17698
diff changeset
     6
26899
29bb3d1de3bc hyperref is always enabled (also works with xdvi, dvips);
wenzelm
parents: 22734
diff changeset
     7
\usepackage{color}
26904
e90832d7196a default linkcolor=black;
wenzelm
parents: 26899
diff changeset
     8
\definecolor{linkcolor}{rgb}{0,0,0}
26918
76046022d31f updated version;
wenzelm
parents: 26915
diff changeset
     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: 22734
diff changeset
    10
29bb3d1de3bc hyperref is always enabled (also works with xdvi, dvips);
wenzelm
parents: 22734
diff changeset
    11
\newcommand{\hfootref}[2]{\href{#1}{#2}\footnote{\url{#1}}}
29bb3d1de3bc hyperref is always enabled (also works with xdvi, dvips);
wenzelm
parents: 22734
diff changeset
    12
\gdef\fnote#1{\hyperpage{#1}n}
29bb3d1de3bc hyperref is always enabled (also works with xdvi, dvips);
wenzelm
parents: 22734
diff changeset
    13
\gdef\bold#1{\textbf{\hyperpage{#1}}}
8891
8760f7cdb326 \urlstyle{rm};
wenzelm
parents: 6643
diff changeset
    14
8760f7cdb326 \urlstyle{rm};
wenzelm
parents: 6643
diff changeset
    15
\urlstyle{rm}
30871
104b13484feb \nolinkurl for dvi mode recovers hyphenation of URLs -- this already works by default in PDF mode;
wenzelm
parents: 26919
diff changeset
    16
30873
105e887994d0 tuned white space;
wenzelm
parents: 30871
diff changeset
    17
\ifpdf\relax\else\renewcommand{\url}[1]{\nolinkurl{#1}}\fi