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).
This commit is contained in:
Andrew Dunning 2015-11-30 22:46:50 -05:00
parent 5e9fad4caf
commit 1811fb32eb

View file

@ -53,7 +53,9 @@ $if(geometry)$
\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry} \usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
$endif$ $endif$
\usepackage{hyperref} \usepackage{hyperref}
$if(colorlinks)$
\PassOptionsToPackage{usenames,dvipsnames}{color} % color is loaded by hyperref \PassOptionsToPackage{usenames,dvipsnames}{color} % color is loaded by hyperref
$endif$
\hypersetup{unicode=true, \hypersetup{unicode=true,
$if(title-meta)$ $if(title-meta)$
pdftitle={$title-meta$}, pdftitle={$title-meta$},