author | wenzelm |
Fri, 19 Jan 2007 22:08:03 +0100 | |
changeset 22096 | fed088a475f9 |
parent 18527 | 88abdee3e23f |
child 22734 | 790f73fa8b36 |
permissions | -rw-r--r-- |
17698
e86cde1e5b12
more reliable check for PDF output using ifpdf.sty;
wenzelm
parents:
12636
diff
changeset
|
1 |
%% $Id$ |
e86cde1e5b12
more reliable check for PDF output using ifpdf.sty;
wenzelm
parents:
12636
diff
changeset
|
2 |
%% |
e86cde1e5b12
more reliable check for PDF output using ifpdf.sty;
wenzelm
parents:
12636
diff
changeset
|
3 |
%% smart url or hyperref setup -- special version for Isabelle documentation |
e86cde1e5b12
more reliable check for PDF output using ifpdf.sty;
wenzelm
parents:
12636
diff
changeset
|
4 |
%% |
e86cde1e5b12
more reliable check for PDF output using ifpdf.sty;
wenzelm
parents:
12636
diff
changeset
|
5 |
|
17725 | 6 |
\message{pdfsetup.sty v0.3 29/9/2005} |
7 |
||
8 |
\newif\ifpdfoutput |
|
9 |
\ifx\pdfoutput\undefined |
|
10 |
\else |
|
11 |
\ifx\pdfoutput\relax |
|
12 |
\else |
|
13 |
\ifcase\pdfoutput |
|
14 |
\else\pdfoutputtrue\fi |
|
15 |
\fi |
|
16 |
\fi |
|
17 |
||
18 |
\ifpdfoutput |
|
19 |
\message{PDF output} |
|
17698
e86cde1e5b12
more reliable check for PDF output using ifpdf.sty;
wenzelm
parents:
12636
diff
changeset
|
20 |
\usepackage{color}\definecolor{darkblue}{rgb}{0,0,0.5} |
e86cde1e5b12
more reliable check for PDF output using ifpdf.sty;
wenzelm
parents:
12636
diff
changeset
|
21 |
\usepackage[pdftex,colorlinks=true,linkcolor=darkblue,citecolor=darkblue,filecolor=darkblue,pagecolor=darkblue,urlcolor=darkblue]{hyperref} |
11413 | 22 |
%no a4paper because overall style sets this (not for Springer!) |
17698
e86cde1e5b12
more reliable check for PDF output using ifpdf.sty;
wenzelm
parents:
12636
diff
changeset
|
23 |
\newcommand{\hfootref}[2]{\href{#1}{#2}\footnote{\url{#1}}} |
e86cde1e5b12
more reliable check for PDF output using ifpdf.sty;
wenzelm
parents:
12636
diff
changeset
|
24 |
\gdef\fnote#1{\hyperpage{#1}n} |
e86cde1e5b12
more reliable check for PDF output using ifpdf.sty;
wenzelm
parents:
12636
diff
changeset
|
25 |
\gdef\bold#1{\textbf{\hyperpage{#1}}} |
e86cde1e5b12
more reliable check for PDF output using ifpdf.sty;
wenzelm
parents:
12636
diff
changeset
|
26 |
\else |
17725 | 27 |
\message{No PDF output} |
18527 | 28 |
\def\phantomsection{\relax} |
17698
e86cde1e5b12
more reliable check for PDF output using ifpdf.sty;
wenzelm
parents:
12636
diff
changeset
|
29 |
\usepackage{../url} |
e86cde1e5b12
more reliable check for PDF output using ifpdf.sty;
wenzelm
parents:
12636
diff
changeset
|
30 |
\newcommand{\hfootref}[2]{#2\footnote{\url{#1}}} |
e86cde1e5b12
more reliable check for PDF output using ifpdf.sty;
wenzelm
parents:
12636
diff
changeset
|
31 |
\fi |
8891 | 32 |
|
33 |
\urlstyle{rm} |