aboutsummaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorAndrew Dunning <andunning@gmail.com>2019-01-01 14:45:20 -0500
committerAndrew Dunning <andunning@gmail.com>2019-01-01 14:45:20 -0500
commit275cedc59c4237b3aeb1ce986ad6ebf429a79daf (patch)
treee5746de61b03984512f0ea5847b6fbeeca263963 /data/templates
parentd410554f46202b1a47ece7d2fc9d111dcbfd32cc (diff)
downloadpandoc-275cedc59c4237b3aeb1ce986ad6ebf429a79daf.tar.gz
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.
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/default.latex4
1 files changed, 1 insertions, 3 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex
index 6856f2cbe..4f85f3733 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -173,9 +173,7 @@ $endif$
$if(verbatim-in-note)$
\usepackage{fancyvrb}
$endif$
-$if(colorlinks)$
-\usepackage{xcolor}
-$endif$
+\IfFileExists{xcolor.sty}{\usepackage{xcolor}}{}
\usepackage{hyperref}
\hypersetup{
$if(title-meta)$