From 275cedc59c4237b3aeb1ce986ad6ebf429a79daf Mon Sep 17 00:00:00 2001 From: Andrew Dunning Date: Tue, 1 Jan 2019 14:45:20 -0500 Subject: [PATCH] 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. --- data/templates/default.latex | 4 +--- 1 file changed, 1 insertion(+), 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)$