diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-06-03 10:57:58 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-06-03 10:57:58 -0700 |
commit | 3bc667281e4d5ceb580d865ef1c9df01bc86e7e4 (patch) | |
tree | 8e350bcda19b1c2d427d4ace08a64a8530132187 | |
parent | 0fdef55baebe817823809c004c2991cb775685fe (diff) | |
download | pandoc-3bc667281e4d5ceb580d865ef1c9df01bc86e7e4.tar.gz |
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).
-rw-r--r-- | default.latex | 30 |
1 files 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: |