git.iko.soy/typeable/pandoc
on master help sign in
LaTeX template: Load xcolor if available

The `xcolor` package must be loaded before the `footnote` package, which we load to fix foonotes in tables. Closes #4861.

commit275cedc59c4237b3aeb1ce986ad6ebf429a79daf authorAndrew Dunning <andunning@gmail.com> dateTue 1 Jan 2019, 14:45 (8 years ago) parentd410554
1 file changed+1−3
data/templates/default.latex+1−3
data/templates/default.latex+1−3
@@ -173,9 +173,7 @@ $endif$
173173$if(verbatim-in-note)$
174174\usepackage{fancyvrb}
175175$endif$
176−$if(colorlinks)$
177−\usepackage{xcolor}
178−$endif$
176+\IfFileExists{xcolor.sty}{\usepackage{xcolor}}{}
179177\usepackage{hyperref}
180178\hypersetup{
181179$if(title-meta)$