From 3bc667281e4d5ceb580d865ef1c9df01bc86e7e4 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 3 Jun 2012 10:57:58 -0700 Subject: [PATCH] LaTeX template: Use black for internal links. This ensures that the table of contents will not be colored. Also added commented-out code to use footnotes for internal links (for print purposes). --- default.latex | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/default.latex b/default.latex index 1419c05f1..8d6cd38c3 100644 --- a/default.latex +++ b/default.latex @@ -80,9 +80,6 @@ $if(tables)$ \usepackage{ctable} \usepackage{float} % provides the H option for float placement $endif$ -$if(url)$ -\usepackage{url} -$endif$ $if(graphics)$ \usepackage{graphicx} % We will generate all images so they have a width \maxwidth. This means @@ -98,23 +95,20 @@ $endif$ \ifxetex \usepackage[setpagesize=false, % page size defined by xetex unicode=false, % unicode breaks when used with xetex - xetex, - bookmarks=true, - pdfauthor={$author-meta$}, - pdftitle={$title-meta$}, - colorlinks=true, - urlcolor=blue, - linkcolor=blue]{hyperref} + xetex]{hyperref} \else - \usepackage[unicode=true, - bookmarks=true, - pdfauthor={$author-meta$}, - pdftitle={$title-meta$}, - colorlinks=true, - urlcolor=blue, - linkcolor=blue]{hyperref} + \usepackage[unicode=true]{hyperref} \fi -\hypersetup{breaklinks=true, pdfborder={0 0 0}} +\hypersetup{breaklinks=true, + bookmarks=true, + pdfauthor={$author-meta$}, + pdftitle={$title-meta$}, + colorlinks=true, + urlcolor=blue, + linkcolor=black, + pdfborder={0 0 0}} +% Uncomment next line if you want links as footnotes instead of hotlinks: +% \renewcommand{\href}[2]{#2\footnote{\url{#1}}} $if(strikeout)$ \usepackage[normalem]{ulem} % avoid problems with \sout in headers with hyperref: