aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunning <adunning@users.noreply.github.com>2015-11-30 22:46:50 -0500
committerAndrew Dunning <adunning@users.noreply.github.com>2015-11-30 22:46:50 -0500
commit1811fb32eb04b55c19768444e9a32e04a4f6a87b (patch)
tree83de9ab8657391d7405fe74cfaadc68ed0ffdcbc
parent5e9fad4cafe45a883001dcd41e701b3453e08337 (diff)
downloadpandoc-1811fb32eb04b55c19768444e9a32e04a4f6a87b.tar.gz
Make color option change dependent on colorlinks.
The color options are only used for setting the link colour; it is otherwise redundant (someone wanting to add colour to other parts of the document will likely have more complex needs).
-rw-r--r--default.latex2
1 files changed, 2 insertions, 0 deletions
diff --git a/default.latex b/default.latex
index fa19f2bc1..4b62c8fcb 100644
--- a/default.latex
+++ b/default.latex
@@ -53,7 +53,9 @@ $if(geometry)$
\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
$endif$
\usepackage{hyperref}
+$if(colorlinks)$
\PassOptionsToPackage{usenames,dvipsnames}{color} % color is loaded by hyperref
+$endif$
\hypersetup{unicode=true,
$if(title-meta)$
pdftitle={$title-meta$},