git.iko.soy/typeable/pandoc
on master help sign in
Use xcolor for colorlinks option

Beamer loads `xcolor` rather than `color`, and thus the `dvipsnames` option doesn't take effect. This also provides a wider range of colour selections with the `svgnames` option. Closes #3877.

commit3654c4373a2f4db8d4ab771937ad318a6921ac37 authorAndrew Dunning <adunning@users.noreply.github.com> dateThu 7 Sep 2017, 22:06 (9 years ago) parenta89aa1a
1 file changed+5−2
data/templates/default.latex+5−2
data/templates/default.latex+5−2
@@ -1,7 +1,7 @@
11\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
22\PassOptionsToPackage{hyphens}{url}
33$if(colorlinks)$
4−\PassOptionsToPackage{usenames,dvipsnames}{color}
4+\PassOptionsToPackage{dvipsnames,svgnames}{xcolor}
55$endif$
66%
77\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$if(beamer)$ignorenonframetext,$if(handout)$handout,$endif$$if(aspectratio)$aspectratio=$aspectratio$,$endif$$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
@@ -126,6 +126,9 @@ $endif$
126126$if(verbatim-in-note)$
127127\usepackage{fancyvrb}
128128$endif$
129+$if(colorlinks)$
130+\usepackage{xcolor}
131+$endif$
129132\usepackage{hyperref}
130133\hypersetup{
131134$if(title-meta)$
@@ -348,7 +351,7 @@ $if(beamer)$
348351$else$
349352{
350353$if(colorlinks)$
351−\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$black$endif$}
354+\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$$endif$}
352355$endif$
353356\setcounter{tocdepth}{$toc-depth$}
354357\tableofcontents