aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Olive <xavier@xoolive.org>2015-08-26 21:01:03 +0200
committerXavier Olive <xavier@xoolive.org>2015-10-04 21:03:26 +0200
commitdef68fce50ab56ee33359aed9dee9a6de6bc1834 (patch)
tree764b5f2782059c6551abfde580f5c999731ad713
parentf73de97de9a96fdbcea0f6d41427e3d6d137a99f (diff)
downloadpandoc-def68fce50ab56ee33359aed9dee9a6de6bc1834.tar.gz
Keep the same options when color is already passed
Use `\PassOptionsToPackage` instead of `\usepackage` when package color is already loaded. Resolves: #116 See also: #107
-rw-r--r--default.latex8
1 files changed, 4 insertions, 4 deletions
diff --git a/default.latex b/default.latex
index 92cfbc737..e9eaa08b7 100644
--- a/default.latex
+++ b/default.latex
@@ -63,10 +63,10 @@ $endif$
\usepackage[unicode=true]{hyperref}
\fi
}
-\makeatother
-\makeatletter
-\@ifpackageloaded{color}{}{%
-\usepackage[usenames,dvipsnames]{color}
+\@ifpackageloaded{color}{
+ \PassOptionsToPackage{usenames,dvipsnames}{color}
+}{%
+ \usepackage[usenames,dvipsnames]{color}
}
\makeatother
\hypersetup{breaklinks=true,