Commits

David Schneider committed b69e5cd

Conditionally use hyperref or url packages depending on the target

  • Participants
  • Parent commits dfb4ceb

Comments (0)

Files changed (1)

talk/vmil2012/paper.tex

 \usepackage{amsfonts}
 \usepackage[utf8]{inputenc}
 \usepackage{setspace}
-\usepackage[pdfpagelabels=true]{hyperref}
 \usepackage[colorinlistoftodos]{todonotes}
 \usepackage{flafter}
 \usepackage{enumitem}
 
 \usepackage[T1]{fontenc}
 \usepackage[scaled=0.81]{beramono}
+\usepackage{ifpdf}
 
 \newenvironment{zitemize}% zero - line spacing itemize environment
    {\begin{list}{--}{
   numbersep = -20pt,
 }
 
+\ifpdf
+\usepackage[pdfpagelabels=true,hidelinks]{hyperref}
 \hypersetup{%
   plainpages=false,%
-  %hyperfootnotes=false,%
-  colorlinks=true,%
-  urlcolor=black,%
-  citecolor=black,%
-  linkcolor=black,%
   pdftitle={The Efficient Handling of Guards in the Design of RPython's Tracing JIT},%
   pdfauthor={David Schneider},
 }
+\else
+\usepackage[hyphens]{url}
+\fi
 
 \newcommand{\bigtodo}[1]{\todo[inline,color=red!30]{#1}}