diff options
| author | Andrew Dunning <andunning@gmail.com> | 2019-01-01 14:45:20 -0500 |
|---|---|---|
| committer | Andrew Dunning <andunning@gmail.com> | 2019-01-01 14:45:20 -0500 |
| commit | 275cedc59c4237b3aeb1ce986ad6ebf429a79daf (patch) | |
| tree | e5746de61b03984512f0ea5847b6fbeeca263963 | |
| parent | d410554f46202b1a47ece7d2fc9d111dcbfd32cc (diff) | |
| download | pandoc-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.
| -rw-r--r-- | data/templates/default.latex | 4 |
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)$ |
