git.iko.soy/typeable/pandoc
on master help sign in
Use xcolor for colorlinks option
3654c43Andrew Dunning
data/templates/default.latex+5−2
@@ -1,7 +1,7 @@
1\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
1\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
2\PassOptionsToPackage{hyphens}{url}
2\PassOptionsToPackage{hyphens}{url}
3$if(colorlinks)$
3$if(colorlinks)$
4−\PassOptionsToPackage{usenames,dvipsnames}{color}
4+\PassOptionsToPackage{dvipsnames,svgnames}{xcolor}
5$endif$
5$endif$
6%
6%
7\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$}
7\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$
126$if(verbatim-in-note)$
126$if(verbatim-in-note)$
127\usepackage{fancyvrb}
127\usepackage{fancyvrb}
128$endif$
128$endif$
129+$if(colorlinks)$
130+\usepackage{xcolor}
131+$endif$
129\usepackage{hyperref}
132\usepackage{hyperref}
130\hypersetup{
133\hypersetup{
131$if(title-meta)$
134$if(title-meta)$
@@ -348,7 +351,7 @@ $if(beamer)$
348$else$
351$else$
349{
352{
350$if(colorlinks)$
353$if(colorlinks)$
351−\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$black$endif$}
354+\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$$endif$}
352$endif$
355$endif$
353\setcounter{tocdepth}{$toc-depth$}
356\setcounter{tocdepth}{$toc-depth$}
354\tableofcontents
357\tableofcontents